Kallisto Linux API
Library for interacting with Kallisto devices
kallisto_core.hpp
Go to the documentation of this file.
1 
42 #ifndef KALLISTO_CORE_HPP_
43 #define KALLISTO_CORE_HPP_
44 
45 #include "../util/error/kallisto_error.hpp"
46 #include "../util/log/logger_configuration.hpp"
47 #include "../bluetooth/scanner/bluetooth_scanner_configuration.hpp"
48 #include "../bluetooth/scanner/bluetooth_scanner_filter.hpp"
52 
53 #include <memory>
54 
55 namespace kallisto {
56 namespace core {
57 
58 class KallistoCore {
59 
60 protected:
62  static KallistoCore* s_instance; //Pointer to the core instance
63 
65  static SystemManager* s_system_manager_instance; //Pointer to the System Manager instance
67  static KallistoManager* s_kallisto_manager_instance; //Pointer to the Kallisto Manager instance
69  static SensorManager* s_sensor_manager_instance; //Pointer to the Sensor Manager instance
70 
74  KallistoCore();
75 
79  virtual ~KallistoCore();
80 
84  KallistoCore(KallistoCore const&) = delete;
85  KallistoCore(KallistoCore&&) = delete;
86  void operator=(KallistoCore const&) = delete;
87  void operator=(KallistoCore &&) = delete;
88 
89 public:
90 
95  static KallistoCore* getInstance();
96 
102 
108 
114 
122  static error::KallistoDetailedResult init(kallisto::log::LoggerConfiguration& logger_configuration,
125 
131 };
132 
133 } /* namespace core */
134 } /* namespace kallisto */
135 
136 #endif /* KALLISTO_CORE_HPP_ */
137 
138 
Definition: kallisto_manager.hpp:57
Definition: bluetooth_adapter.hpp:52
Class that encapsulates a result.
Definition: kallisto_error.hpp:81
Definition: system_manager.hpp:59
Definition: bluetooth_scanner_filter.hpp:64
Definition: bluetooth_scanner_configuration.hpp:92
static SensorManager * getSensorManagerInstance()
static KallistoManager * getKallistoManagerInstance()
Definition: kallisto_core.hpp:57
static KallistoCore * s_instance
Definition: kallisto_core.hpp:61
static SensorManager * s_sensor_manager_instance
Definition: kallisto_core.hpp:68
static error::KallistoDetailedResult init()
static KallistoManager * s_kallisto_manager_instance
Definition: kallisto_core.hpp:66
Definition: sensor_manager.hpp:58
static SystemManager * getSystemManagerInstance()
static KallistoCore * getInstance()
static SystemManager * s_system_manager_instance
Definition: kallisto_core.hpp:64