7 #ifndef COMMUNICATIONCONFIG_H 8 #define COMMUNICATIONCONFIG_H 13 #include <unordered_map> 14 #include <yaml-cpp/yaml.h> 17 #include <boost/algorithm/string.hpp> 18 #include <unordered_set> 86 const YAML::Node& node,
87 std::unordered_map<std::string, std::shared_ptr<Channel>>& channels);
97 std::unordered_map<std::string, std::shared_ptr<CommandOptions>>&
104 const std::shared_ptr<Syntax> getSyntax()
const;
109 const std::shared_ptr<SerialInterfaceParams> getSerialInterfaceParams()
const;
114 const std::unordered_map<std::string, std::shared_ptr<Command>>&
120 const std::unordered_map<unsigned char, std::shared_ptr<SensorGroup>>&
121 getSensorGroups()
const;
125 std::unordered_map<std::string, std::shared_ptr<Command>>
127 std::unordered_map<unsigned char, std::shared_ptr<SensorGroup>>
130 std::unordered_map<std::string, std::shared_ptr<Channel>>
132 std::unordered_map<std::string, std::shared_ptr<CommandOptions>>
144 void insertCommand(
const YAML::Node& node);
151 void insertSensorGroup(
const YAML::Node& node);
156 void readSerialInterfaceConfig();
161 void readGeneralSyntax();
181 void readSensorGroups();
184 #endif // COMMUNICATIONCONFIG_H unsigned int serialTimeout
std::unordered_map< std::string, std::shared_ptr< Command > > commands
Header file for the Command class.
The Syntax class serves as a data struct to provide information about important symbols for the commu...
Header file for the SensorGroup class.
std::unordered_map< std::string, std::shared_ptr< CommandOptions > > options
unsigned int maxLineLength
The SerialInterfaceParams class serves as a data struct to configure the setup of a serial connection...
std::unordered_map< unsigned char, std::shared_ptr< SensorGroup > > sensorGroups
std::unordered_map< std::string, std::shared_ptr< Channel > > channels
std::string serialDevicesFolder
The CommunicationConfig class parses config files and provides configuration parameters to a Communca...
SerialInterfaceParams serialParams
void operator>>(const YAML::Node &node, Syntax &syntax)
Header file for the Syntax struct.