Public Member Functions | Public Attributes | Private Member Functions
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.
 ~Node (void)
 Destructor who also destroys all its 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.

Private Member Functions

void unallocateChildren (void)
 Unalloates the memory of the node's 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.

Destructor who also destroys all its children.

Returns:
void

Definition at line 35 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 44 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 61 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 78 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 93 of file stdr_parser_node.cpp.

void stdr_parser::Node::unallocateChildren ( void  ) [private]

Unalloates the memory of the node's children.

Unallocates the memory of the node's children.

Returns:
void

Definition at line 115 of file stdr_parser_node.cpp.


Member Data Documentation

File it was into.

Definition at line 91 of file stdr_parser_node.h.

Row in the original file.

Definition at line 94 of file stdr_parser_node.h.

Definition at line 95 of file stdr_parser_node.h.

The node tag (if it not a value node)

Definition at line 83 of file stdr_parser_node.h.

The node value (if it not a tag node)

Definition at line 85 of file stdr_parser_node.h.

The node children.

Definition at line 88 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 Thu Jun 6 2019 18:57:14