ADD: added function to get all sensors as vector and map
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <sys/types.h>
|
||||
#include <vector>
|
||||
namespace Entities
|
||||
{
|
||||
|
||||
@@ -69,6 +70,20 @@ namespace Entities
|
||||
*/
|
||||
std::shared_ptr<Sensor::SensorControl> getSensorByUUID(std::string uuid);
|
||||
|
||||
/**
|
||||
* @brief Get the Sensor List As Vector of shared pointer of sensorcontrols
|
||||
*
|
||||
* @return std::vector<std::shared_ptr<Sensor::SensorControl>>
|
||||
*/
|
||||
std::vector<std::shared_ptr<Sensor::SensorControl>> getSensorListAsVector();
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get the Sensor List As Map of shared pointer of sensorcontrols
|
||||
*
|
||||
* @return std::map<std::string, std::shared_ptr<Sensor::SensorControl>>
|
||||
*/
|
||||
std::map<std::string, std::shared_ptr<Sensor::SensorControl>> getSensorListAsMap();
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user