Public Member Functions | Public Attributes
stdr_parser::Node Class Reference

Implements the main functionalities of the stdr parser tree. More...

#include <stdr_parser_node.h>

List of all members.

Public Member Functions

bool checkForFilename (std::string base)
 Checks a node if a specific filename exists.
std::vector< int > getTag (std::string tag)
 Searches for a tag in the specific node.
void increasePriority (void)
 Increases the priority of the node.
 Node (void)
 Default constructor.
void printParsedXml (Node *n, std::string indent)
 Debug recursive function - Prints the xml tree.
void unallocateChildren (void)
 Unalloates the memory of the node's children.

Public Attributes

std::vector< Node * > elements
 File it was into.
std::string file_origin
 Row in the original file.
int file_row
int priority
 The node tag (if it not a value node)
std::string tag
 The node value (if it not a tag node)
std::string value
 The node children.

Detailed Description

Implements the main functionalities of the stdr parser tree.

Definition at line 37 of file stdr_parser_node.h.


Constructor & Destructor Documentation

Default constructor.

Returns:
void

Definition at line 30 of file stdr_parser_node.cpp.


Member Function Documentation

bool stdr_parser::Node::checkForFilename ( std::string  base)

Checks a node if a specific filename exists.

Returns:
void

Definition at line 39 of file stdr_parser_node.cpp.

std::vector< int > stdr_parser::Node::getTag ( std::string  tag)

Searches for a tag in the specific node.

Parameters:
tag[std::string] The tag to search for
Returns:
std::vector<int> : The indexes in elements where tag is found

Definition at line 56 of file stdr_parser_node.cpp.

Increases the priority of the node.

Returns:
void The node priority. Used in merging. Basically works inversely. Nodes in lower priority overwrite the ones in higher priority
void

Definition at line 73 of file stdr_parser_node.cpp.

void stdr_parser::Node::printParsedXml ( Node n,
std::string  indent 
)

Debug recursive function - Prints the xml tree.

Parameters:
n[Node*] The stdr xml tree node to begin
indent[std::string] The indentation for the specific node
Returns:
void

Definition at line 88 of file stdr_parser_node.cpp.

Unalloates the memory of the node's children.

Returns:
void

Definition at line 110 of file stdr_parser_node.cpp.


Member Data Documentation

File it was into.

Definition at line 79 of file stdr_parser_node.h.

Row in the original file.

Definition at line 82 of file stdr_parser_node.h.

Definition at line 83 of file stdr_parser_node.h.

The node tag (if it not a value node)

Definition at line 71 of file stdr_parser_node.h.

The node value (if it not a tag node)

Definition at line 73 of file stdr_parser_node.h.

The node children.

Definition at line 76 of file stdr_parser_node.h.


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