42 #ifndef KALLISTO_FACTORY_HPP 43 #define KALLISTO_FACTORY_HPP 47 #include "../util/log/easylogging++.h" 49 #include "../bluetooth/adapter/bluetooth_adapter.hpp" 88 return std::unique_ptr<KallistoImpl>(
new KallistoImpl(bluetooth_device, record, legacy_discovery, event_dispatcher, m_sensor_factory));
90 catch (std::exception& e) {
91 LOG(ERROR) <<
"Failed to create " << bluetooth_device.
getName() <<
" @ " << bluetooth_device.
getAddress() <<
": " << e.what();
101 #endif // KALLISTO_FACTORY_HPP ~KallistoFactory()
Definition: kallisto_factory.hpp:71
Definition: bluetooth_adapter.hpp:52
std::string getAddress() const
Definition: bluetooth_device.hpp:114
Definition: bluetooth_device.hpp:58
std::unique_ptr< KallistoImpl > build(kallisto::bluetooth::BluetoothDevice &bluetooth_device, const bluetooth::BluetoothAdapter::ScanListener::ScanRecord &record, bool legacy_discovery, util::Executor &event_dispatcher)
Definition: kallisto_factory.hpp:83
std::string getName() const
Definition: bluetooth_device.hpp:106
Definition: executor.hpp:71
Definition: sensor_factory.hpp:60
Definition: bluetooth_adapter.hpp:111
KallistoFactory(SensorFactory &sensor_factory)
Definition: kallisto_factory.hpp:66
Definition: kallisto_impl.hpp:70
Definition: kallisto_factory.hpp:56