Static Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
stdr_parser::Validator Class Reference

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

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

void stdr_parser::Validator::parseMergableSpecifications ( void  )
static

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)
staticprivate

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 
)
staticprivate

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 
)
staticprivate

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 Mon Jun 10 2019 15:14:54