Static Public Member Functions | Private Member Functions | Static Private Member Functions
stdr_parser::Validator Class Reference

#include <stdr_parser_validator.h>

List of all members.

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.

Detailed Description

Definition at line 37 of file stdr_parser_validator.h.


Constructor & Destructor Documentation

stdr_parser::Validator::Validator ( void  ) [private]

Default constructor.

Returns:
void

Definition at line 30 of file stdr_parser_validator.cpp.


Member Function Documentation

Parses the mergable specifications file.

Parses the mergable speciications file.

Returns:
void

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.

Parameters:
node[TiXmlNode*] The xml node to start from
Returns:
void

< 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.

Parameters:
file_name[std::string] The filename from which the tree was created
n[Node*] The stdr xml tree node to begin
Returns:
void

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.

Parameters:
file_name[std::string] The filename from which the node came from
n[Node*] The stdr xml tree node to begin
Returns:
void

< 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.

Parameters:
file_name[std::string] The filename from which the node came from
n[Node*] The stdr xml tree node to begin
Returns:
void

< Immediately return if we have a value node

Definition at line 110 of file stdr_parser_validator.cpp.


The documentation for this class was generated from the following files:


stdr_parser
Author(s): Manos Tsardoulias, Chris Zalidis, Aris Thallas
autogenerated on Wed Sep 2 2015 03:36:18