EnOcean Link
1.14.0.0
Middleware to Connect EnOcean easily to other Projects
|
Manages the devices. More...
#include <eoDeviceManager.h>
Public Member Functions | |
eoDeviceManager () | |
eoDevice * | Add (uint32_t id) |
eoDevice * | Get (uint32_t id) |
void | Remove (uint32_t id) |
void | RemoveAll () |
const id_device_map & | GetDeviceList () const |
uint32_t | Size () const |
uint8_t | Serialize (eoArchive &a) |
Serialization Function which will be called by the eoStorageManager. More... | |
Manages the devices.
The DeviceManagaer helps you to manage different devices. Using it functions you can get a eoDevice Pointer to the Devices.
eoDeviceManager::eoDeviceManager | ( | ) |
Constructor
eoDevice* eoDeviceManager::Add | ( | uint32_t | id | ) |
It a device with same id already exist, returns a pointer to this Device otherwise adds a device with the id to the device manager
id | The SourceID of the Device |
eoDevice* eoDeviceManager::Get | ( | uint32_t | id | ) |
Searches for the id in the DeviceManager and returns a Device pointer if there was a device found otherwise NULL
id | The SourceID of the Device |
const id_device_map& eoDeviceManager::GetDeviceList | ( | ) | const |
Returns the map containing all the Devices.
void eoDeviceManager::Remove | ( | uint32_t | id | ) |
Removes the Device from the DeviceManager if the Device exists
id | of the Device to Delete |
void eoDeviceManager::RemoveAll | ( | ) |
Removes all the Device from the DeviceManager
|
virtual |
Serialization Function which will be called by the eoStorageManager.
This function will be called by the eoArchive(inside of the eoStorageManager) and allows the class to be Serialized.
arch | archive where to Load or to Store. |
Implements eoISerialize.
uint32_t eoDeviceManager::Size | ( | ) | const |
Gets the number of Devices in the DeviceManager