Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
ConfigElement Class Reference

#include <configParser.hpp>

Inheritance diagram for ConfigElement:
Inheritance graph
Collaboration diagram for ConfigElement:
Collaboration graph

Public Member Functions

 ConfigElement (Node node)
 
NodeType::value getType ()
 
Node getNode ()
 
bool hasElement (string elementName)
 
vector< ConfigElementgetElements ()
 
ConfigElement getElement (string elementName)
 
bool getElement (ConfigElement *element, string elementName)
 
bool getElements (vector< ConfigElement > *vec)
 
ConfigElement operator[] (string elementName)
 
ConfigElement operator[] (int i)
 
template<typename T >
getElement (string elementName)
 
template<typename T >
bool getElement (T *res, string elementName)
 

Protected Attributes

Node node
 
NodeType::value type
 

Detailed Description

Definition at line 14 of file configParser.hpp.

Constructor & Destructor Documentation

◆ ConfigElement()

ConfigElement::ConfigElement ( Node  node)
inline

Definition at line 17 of file configParser.hpp.

Member Function Documentation

◆ getElement() [1/4]

bool ConfigElement::getElement ( ConfigElement element,
string  elementName 
)

Definition at line 50 of file configParser.cpp.

◆ getElement() [2/4]

ConfigElement ConfigElement::getElement ( string  elementName)

Definition at line 23 of file configParser.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getElement() [3/4]

template<typename T >
T ConfigElement::getElement ( string  elementName)
inline

Definition at line 46 of file configParser.hpp.

◆ getElement() [4/4]

template<typename T >
bool ConfigElement::getElement ( T *  res,
string  elementName 
)
inline

Definition at line 47 of file configParser.hpp.

◆ getElements() [1/2]

vector< ConfigElement > ConfigElement::getElements ( )

Definition at line 7 of file configParser.cpp.

Here is the caller graph for this function:

◆ getElements() [2/2]

bool ConfigElement::getElements ( vector< ConfigElement > *  vec)

Definition at line 60 of file configParser.cpp.

◆ getNode()

Node ConfigElement::getNode ( )

Definition at line 5 of file configParser.cpp.

◆ getType()

NodeType::value ConfigElement::getType ( )

Definition at line 3 of file configParser.cpp.

◆ hasElement()

bool ConfigElement::hasElement ( string  elementName)

Definition at line 37 of file configParser.cpp.

Here is the caller graph for this function:

◆ operator[]() [1/2]

ConfigElement ConfigElement::operator[] ( int  i)
inline

Definition at line 38 of file configParser.hpp.

◆ operator[]() [2/2]

ConfigElement ConfigElement::operator[] ( string  elementName)
inline

Definition at line 30 of file configParser.hpp.

Member Data Documentation

◆ node

Node ConfigElement::node
protected

Definition at line 54 of file configParser.hpp.

◆ type

NodeType::value ConfigElement::type
protected

Definition at line 55 of file configParser.hpp.


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