15 #include <boost/range/algorithm/remove_if.hpp> 46 std::vector<std::shared_ptr<Channel>>
48 std::vector<std::pair<std::shared_ptr<CommandOptions>, std::string>>
97 std::shared_ptr<Syntax> syntax);
102 void processResponse(
const std::string& response);
118 const std::string& getName()
const;
124 void createSensorGroupCommand(
Command& cmd, std::string& command)
const;
132 const bool verifyResponseOnComand(
Command& cmd,
133 const std::string& response)
const;
142 template <
typename T>
145 if (!channelValues.isParamInMap(name))
147 channelValues.getParameterValue(name, value);
157 const bool getChannelValueConverted(
const std::string& name,
158 double& value)
const;
169 std::unordered_map<std::string, std::shared_ptr<Channel>>
channelMap;
186 void parseResponse(
const std::string& response);
189 #endif // SENSORGROUP_H static const std::string ENCODING_B64
std::vector< std::pair< std::shared_ptr< CommandOptions >, std::string > > options
const bool getChannelValue(const std::string &name, T &value) const
Get a received value from a certain channel.
boost::function< void(SensorGroup *)> responseCallback
Header file for the Command class.
valueErrorCallbackPtr valueError
The Channel class serves as a data struct to store sensor channel parameter.
The Parameter::ParameterMap class provides a map functionality for Parameter::Parameter objects conta...
The SensorGroupParameter class serves as a data struct to configure SensorGroup objects.
std::shared_ptr< Syntax > syntax
The SensorGroup class builds the syntactic template for its specific command that results from the se...
std::vector< std::shared_ptr< Channel > > channelList
std::vector< std::string > optionsList
responseCallback callbackFunction
std::unordered_map< std::string, std::shared_ptr< Channel > > channelMap
static const std::string ENCODING_ASCII
static const std::string ENCODING_HEX
std::vector< std::shared_ptr< Channel > > channels
Parameter::ParameterMap cmdInputParams
Parameter::ParameterMap optionValues
std::vector< std::string > optionVariableList
std::string responseEncoding
Parameter::ParameterMap channelValues
The Command class builds the syntactic template for a specific command defined in a CommandParams str...
boost::function< void(const std::string &)> valueErrorCallbackPtr
Header file for the Syntax struct.
Header file for the Parameter::Parameter, Parameter::GenericParameter and Parameter::ParameterMap cla...
This library provides functions to convert a base64 encoded value to 32bit signed/unsigned integer...