Kallisto Linux API
Library for interacting with Kallisto devices
KallistoCore Class Reference
Inheritance diagram for KallistoCore:
Collaboration diagram for KallistoCore:

Static Public Member Functions

static KallistoCoregetInstance ()
 
static SystemManagergetSystemManagerInstance ()
 
static KallistoManagergetKallistoManagerInstance ()
 
static SensorManagergetSensorManagerInstance ()
 
static error::KallistoDetailedResult init (kallisto::log::LoggerConfiguration &logger_configuration, kallisto::bluetooth::BluetoothScannerConfiguration &scanner_configuration, kallisto::bluetooth::BluetoothScannerFilter &scanner_filter)
 
static error::KallistoDetailedResult init ()
 

Protected Member Functions

 KallistoCore ()
 
virtual ~KallistoCore ()
 
 KallistoCore (KallistoCore const &)=delete
 
 KallistoCore (KallistoCore &&)=delete
 
void operator= (KallistoCore const &)=delete
 
void operator= (KallistoCore &&)=delete
 

Static Protected Attributes

static KallistoCores_instance
 
static SystemManagers_system_manager_instance
 
static KallistoManagers_kallisto_manager_instance
 
static SensorManagers_sensor_manager_instance
 

Constructor & Destructor Documentation

◆ KallistoCore() [1/2]

KallistoCore ( )
protected

Constructor. Private, doesn't allow creation unless is using getInstance().

◆ ~KallistoCore()

virtual ~KallistoCore ( )
protectedvirtual

Destructor.

◆ KallistoCore() [2/2]

KallistoCore ( KallistoCore const &  )
protecteddelete

Remove copy and move.

Member Function Documentation

◆ getInstance()

static KallistoCore* getInstance ( )
static

Returns the instance of the KallistoCore. It can be nullptr if KallistoCore::init() was not called or failed.

◆ getKallistoManagerInstance()

static KallistoManager* getKallistoManagerInstance ( )
static

Returns the instance of the KallistoManager. It can be nullptr if KallistoCore::init() was not called or failed.

◆ getSensorManagerInstance()

static SensorManager* getSensorManagerInstance ( )
static

Returns the instance of the SensorManager. It can be nullptr if KallistoCore::init() was not called or failed.

◆ getSystemManagerInstance()

static SystemManager* getSystemManagerInstance ( )
static

Returns the instance of the SystemManager. It can be nullptr if KallistoCore::init() was not called or failed.

◆ init() [1/2]

static error::KallistoDetailedResult init ( kallisto::log::LoggerConfiguration &  logger_configuration,
kallisto::bluetooth::BluetoothScannerConfiguration scanner_configuration,
kallisto::bluetooth::BluetoothScannerFilter scanner_filter 
)
static

Initializes the Kallisto system.

Parameters
logger_configuration
scanner_configuration
scanner_filter
Returns
A detailed result.

◆ init() [2/2]

static error::KallistoDetailedResult init ( )
static

Initializes the Kallisto system with default values.

Returns
A detailed result.

Field Documentation

◆ s_instance

KallistoCore* s_instance
staticprotected

◆ s_kallisto_manager_instance

KallistoManager* s_kallisto_manager_instance
staticprotected

◆ s_sensor_manager_instance

SensorManager* s_sensor_manager_instance
staticprotected

◆ s_system_manager_instance

SystemManager* s_system_manager_instance
staticprotected

The documentation for this class was generated from the following file: