22 #ifndef STDR_PARSER_BASE 23 #define STDR_PARSER_BASE 54 static void parse(std::string file_name);
102 T msg = MessageCreator::createMessage<T>(
base_node_,0);
116 if(file_name.find(
".xml") != std::string::npos)
120 else if(file_name.find(
".yaml") != std::string::npos)
Implements the main functionalities of the high-level parser.
static void messageToFile(T msg, std::string file_name)
Creates an yaml file from a message - template member function.
Parser(void)
Default constructor.
static T createMessage(std::string file_name)
Creates a message from a file.
static Node * base_node_
< Base node of the parsed file
The main namespace for STDR GUI XML parser.
static void parse(std::string file_name)
Parses an xml file.
static void saveMessage(T msg, std::string file_name)
Saves a stdr_msgs::Noise message to a file.
static bool eliminateFilenames(Node *n)
Recursive function - Expands the 'filename' nodes and eliminates them.
static void mergeNodesValues(Node *n)
Merges the leaves of the xml tree, which are the value nodes.
static bool mergeNodes(Node *n)
Recursive function - Merges the nodes that do not exist in non_mergable_tags_.
Implements the main functionalities of the stdr parser tree.
static void messageToFile(T msg, std::string file_name)
Creates an xml file from a message - template member function.
Provides a parser exception. Publicly inherits from std::runtime_error. Used in robot handler...