#include <stdr_parser_validator.h>
Static Public Member Functions | |
static void | parseMergableSpecifications (void) |
Parses the mergable specifications file. More... | |
static void | validate (std::string file_name, Node *n) |
Performs a required / allowed - validity check on the xml tree. More... | |
Private Member Functions | |
Validator (void) | |
Default constructor. More... | |
Static Private Member Functions | |
static void | parseSpecifications (TiXmlNode *node) |
Low-level recursive function for parsing the xml specifications file. More... | |
static void | validityAllowedCheck (std::string file_name, Node *n) |
Performs a allowed - validity check on the xml tree. More... | |
static void | validityRequiredCheck (std::string file_name, Node *n) |
Performs a required - validity check on the xml tree. More... | |
Definition at line 37 of file stdr_parser_validator.h.
|
private |
|
static |
Parses the mergable specifications file.
Parses the mergable speciications file.
Definition at line 171 of file stdr_parser_validator.cpp.
|
staticprivate |
Low-level recursive function for parsing the xml specifications file.
node | [TiXmlNode*] The xml node to start from |
< Type = document
< Type = element
< Base specifications tag
< New base specifications tag
< Multiple base tags - error
< required or allowed tags
< Type = text
Definition at line 195 of file stdr_parser_validator.cpp.
|
static |
Performs a required / allowed - validity check on the xml tree.
file_name | [std::string] The filename from which the tree was created |
n | [Node*] The stdr xml tree node to begin |
Definition at line 284 of file stdr_parser_validator.cpp.
|
staticprivate |
Performs a allowed - validity check on the xml tree.
file_name | [std::string] The filename from which the node came from |
n | [Node*] The stdr xml tree node to begin |
< Immediately return if we have a value node
Definition at line 41 of file stdr_parser_validator.cpp.
|
staticprivate |
Performs a required - validity check on the xml tree.
file_name | [std::string] The filename from which the node came from |
n | [Node*] The stdr xml tree node to begin |
< Immediately return if we have a value node
Definition at line 110 of file stdr_parser_validator.cpp.