2018-04-04 05:50:27 +03:00
|
|
|
#ifndef MYNTEYE_CONTEXT_H_ // NOLINT
|
|
|
|
#define MYNTEYE_CONTEXT_H_
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "mynteye/mynteye.h"
|
|
|
|
|
|
|
|
MYNTEYE_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
namespace uvc {
|
|
|
|
|
|
|
|
struct context;
|
|
|
|
|
|
|
|
} // namespace uvc
|
|
|
|
|
|
|
|
class Device;
|
|
|
|
|
2018-04-23 18:11:11 +03:00
|
|
|
class MYNTEYE_API Context {
|
2018-04-04 05:50:27 +03:00
|
|
|
public:
|
|
|
|
Context();
|
|
|
|
~Context();
|
|
|
|
|
|
|
|
std::vector<std::shared_ptr<Device>> devices() const {
|
|
|
|
return devices_;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::shared_ptr<uvc::context> context_;
|
|
|
|
std::vector<std::shared_ptr<Device>> devices_;
|
|
|
|
};
|
|
|
|
|
|
|
|
MYNTEYE_END_NAMESPACE
|
|
|
|
|
|
|
|
#endif // MYNTEYE_CONTEXT_H_ NOLINT
|