Namespace for parsing xml configuration files exported from the psenScan Configurator. More...
Classes | |
class | XMLConfigurationParserException |
Functions | |
const tinyxml2::XMLElement * | getFirstChildElement (const tinyxml2::XMLElement *parent, const char *name) |
const char * | getText (const tinyxml2::XMLElement *element) |
bool | isEncoderEnabled (const tinyxml2::XMLConstHandle &doc_handle) |
ZoneSetConfiguration | parseFile (const char *filename) |
std::vector< ZoneSetSpeedRange > | parseSpeedRanges (const tinyxml2::XMLConstHandle &doc_handle) |
ZoneSetConfiguration | parseString (const char *xml) |
ZoneSetConfiguration | parseTinyXML (const tinyxml2::XMLDocument &doc) |
ZoneSet | parseZoneSetMaster (const tinyxml2::XMLElement *xml_set_element) |
std::vector< ZoneSet > | parseZoneSets (const tinyxml2::XMLConstHandle &doc_handle) |
ZoneSetSpeedRange | parseZoneSetSpeedRange (const tinyxml2::XMLElement *xml_zone_set_select_element) |
ZoneSet | parseZoneSetSub0 (const tinyxml2::XMLElement *xml_set_element, ZoneSet set) |
ZoneSet | parseZoneSetSub1 (const tinyxml2::XMLElement *xml_set_element, ZoneSet set) |
ZoneSet | parseZoneSetSub2 (const tinyxml2::XMLElement *xml_set_element, ZoneSet set) |
std::vector< unsigned long > | ro_string_to_vec (const std::string &ro_string) |
Convert string from a <ro> element to values. More... | |
unsigned long | ro_value_to_uint (const std::string &ro_value) |
Converts a quadrupel <ro> value into the respective length in mm. More... | |
bool | textIsEqual (const tinyxml2::XMLElement *element, const char *str) |
Namespace for parsing xml configuration files exported from the psenScan Configurator.
|
inline |
Definition at line 28 of file xml_configuration_parsing.cpp.
const char* psen_scan_v2_standalone::configuration::xml_config_parsing::getText | ( | const tinyxml2::XMLElement * | element | ) |
Definition at line 40 of file xml_configuration_parsing.cpp.
bool psen_scan_v2_standalone::configuration::xml_config_parsing::isEncoderEnabled | ( | const tinyxml2::XMLConstHandle & | doc_handle | ) |
Definition at line 291 of file xml_configuration_parsing.cpp.
ZoneSetConfiguration psen_scan_v2_standalone::configuration::xml_config_parsing::parseFile | ( | const char * | filename | ) |
Definition at line 487 of file xml_configuration_parsing.cpp.
std::vector<ZoneSetSpeedRange> psen_scan_v2_standalone::configuration::xml_config_parsing::parseSpeedRanges | ( | const tinyxml2::XMLConstHandle & | doc_handle | ) |
Definition at line 424 of file xml_configuration_parsing.cpp.
ZoneSetConfiguration psen_scan_v2_standalone::configuration::xml_config_parsing::parseString | ( | const char * | xml | ) |
Definition at line 499 of file xml_configuration_parsing.cpp.
ZoneSetConfiguration psen_scan_v2_standalone::configuration::xml_config_parsing::parseTinyXML | ( | const tinyxml2::XMLDocument & | doc | ) |
Definition at line 453 of file xml_configuration_parsing.cpp.
ZoneSet psen_scan_v2_standalone::configuration::xml_config_parsing::parseZoneSetMaster | ( | const tinyxml2::XMLElement * | xml_set_element | ) |
Definition at line 56 of file xml_configuration_parsing.cpp.
std::vector<ZoneSet> psen_scan_v2_standalone::configuration::xml_config_parsing::parseZoneSets | ( | const tinyxml2::XMLConstHandle & | doc_handle | ) |
Definition at line 314 of file xml_configuration_parsing.cpp.
ZoneSetSpeedRange psen_scan_v2_standalone::configuration::xml_config_parsing::parseZoneSetSpeedRange | ( | const tinyxml2::XMLElement * | xml_zone_set_select_element | ) |
Definition at line 266 of file xml_configuration_parsing.cpp.
ZoneSet psen_scan_v2_standalone::configuration::xml_config_parsing::parseZoneSetSub0 | ( | const tinyxml2::XMLElement * | xml_set_element, |
ZoneSet | set | ||
) |
Definition at line 110 of file xml_configuration_parsing.cpp.
ZoneSet psen_scan_v2_standalone::configuration::xml_config_parsing::parseZoneSetSub1 | ( | const tinyxml2::XMLElement * | xml_set_element, |
ZoneSet | set | ||
) |
Definition at line 162 of file xml_configuration_parsing.cpp.
ZoneSet psen_scan_v2_standalone::configuration::xml_config_parsing::parseZoneSetSub2 | ( | const tinyxml2::XMLElement * | xml_set_element, |
ZoneSet | set | ||
) |
Definition at line 214 of file xml_configuration_parsing.cpp.
std::vector<unsigned long> psen_scan_v2_standalone::configuration::xml_config_parsing::ro_string_to_vec | ( | const std::string & | ro_string | ) |
Convert string from a <ro> element to values.
The value in a <ro> element is a string with length 4*N where N is the number of distance values. 4 succedding values form a set that can be transformed into the lenth in mm.
ro_string |
Definition at line 74 of file xml_configuration_parsing.h.
unsigned long psen_scan_v2_standalone::configuration::xml_config_parsing::ro_value_to_uint | ( | const std::string & | ro_value | ) |
Converts a quadrupel <ro> value into the respective length in mm.
The conversion of 4 characters follows the rule "abcd" -> 0xcdab Examples: "D307" -> 0x07D3 -> 2003mm "ED03" -> 0x03ED -> 1005mm "2B01" -> 0x012B -> 299mm "8913" -> 0x1389 -> 5001mm
ro_value | string containing a quadrupel of hex values |
Definition at line 57 of file xml_configuration_parsing.h.
|
inline |
Definition at line 51 of file xml_configuration_parsing.cpp.