#include <stdr_parser_validator.h>
Static Public Member Functions | |
static void | parseMergableSpecifications (void) |
Parses the mergable specifications file. | |
static void | validate (std::string file_name, Node *n) |
Performs a required / allowed - validity check on the xml tree. | |
Private Member Functions | |
Validator (void) | |
Default constructor. | |
Static Private Member Functions | |
static void | parseSpecifications (TiXmlNode *node) |
Low-level recursive function for parsing the xml specifications file. | |
static void | validityAllowedCheck (std::string file_name, Node *n) |
Performs a allowed - validity check on the xml tree. | |
static void | validityRequiredCheck (std::string file_name, Node *n) |
Performs a required - validity check on the xml tree. |
Definition at line 37 of file stdr_parser_validator.h.
stdr_parser::Validator::Validator | ( | void | ) | [private] |
void stdr_parser::Validator::parseMergableSpecifications | ( | void | ) | [static] |
Parses the mergable specifications file.
Parses the mergable speciications file.
Definition at line 171 of file stdr_parser_validator.cpp.
void stdr_parser::Validator::parseSpecifications | ( | TiXmlNode * | node | ) | [static, private] |
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.
void stdr_parser::Validator::validate | ( | std::string | file_name, |
Node * | n | ||
) | [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.
void stdr_parser::Validator::validityAllowedCheck | ( | std::string | file_name, |
Node * | n | ||
) | [static, private] |
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.
void stdr_parser::Validator::validityRequiredCheck | ( | std::string | file_name, |
Node * | n | ||
) | [static, private] |
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.