2018-04-25 11:06:38 +03:00
|
|
|
#include "api/api.h"
|
|
|
|
|
|
|
|
#include <glog/logging.h>
|
|
|
|
|
2018-04-26 04:22:29 +03:00
|
|
|
#include "mynteye/utils.h"
|
|
|
|
|
|
|
|
#include "device/device.h"
|
|
|
|
|
2018-04-25 11:06:38 +03:00
|
|
|
MYNTEYE_BEGIN_NAMESPACE
|
|
|
|
|
2018-04-26 04:22:29 +03:00
|
|
|
API::API(std::shared_ptr<Device> device) : device_(device) {
|
2018-04-25 11:06:38 +03:00
|
|
|
VLOG(2) << __func__;
|
|
|
|
}
|
|
|
|
|
|
|
|
API::~API() {
|
|
|
|
VLOG(2) << __func__;
|
|
|
|
}
|
|
|
|
|
2018-04-26 04:22:29 +03:00
|
|
|
std::shared_ptr<API> API::Create() {
|
|
|
|
return Create(device::select());
|
|
|
|
}
|
|
|
|
|
|
|
|
std::shared_ptr<API> API::Create(std::shared_ptr<Device> device) {
|
|
|
|
return std::make_shared<API>(device);
|
|
|
|
}
|
|
|
|
|
2018-04-25 11:06:38 +03:00
|
|
|
MYNTEYE_END_NAMESPACE
|