![]() |
|
PhoenixFileParser
1.5.1
Set of tools to ease file parsing
|
Iterator of the ConfigNode. More...
#include <ConfigNodeIter.h>
Collaboration diagram for ConfigNodeIter:Public Member Functions | |
| ConfigNodeIter (const ConfigNodeIter &other) | |
| Copy constructor of ConfigNodeIter. | |
| bool | down (const PString &childName) |
| Move to the child of the current node. | |
| template<typename T> | |
| bool | getChildValue (const PString &childName, T &data, const GenericConfigCheck *checker=NULL) |
| Get a value from the current ConfigNode and check data. | |
| std::ostream * | getOut () |
| Get the pointer of the output stream. | |
| template<typename T> | |
| bool | getValue (T &data) const |
| Get a value from the current ConfigNode. | |
| template<typename T> | |
| bool | getValue (T &data, const GenericConfigCheck *checker) const |
| Get a value from the current ConfigNode and check data. | |
| bool | isWriteMode () const |
| Say if the iterator is in write mode. | |
| ConfigNode * | operator-> () |
| Get the current ConfigNode. | |
| ConfigNodeIter & | operator= (const ConfigNodeIter &other) |
| Definition of equal operator of ConfigNodeIter. | |
| void | up () |
| Move to the parent of the current node. | |
| virtual | ~ConfigNodeIter () |
| Destructor of ConfigNodeIter. | |
Public Attributes | |
| friend | ConfigNode |
Protected Member Functions | |
| void | copyConfigNodeIter (const ConfigNodeIter &other) |
| Copy function of ConfigNodeIter. | |
Private Member Functions | |
| ConfigNodeIter (const ConfigNode *current, std::ostream *out, bool isWriteMode) | |
| Default constructor of ConfigNodeIter. | |
| void | initialisationConfigNodeIter () |
| Initialisation function of the class ConfigNodeIter. | |
Private Attributes | |
| ConfigNode * | p_current |
| Current ConfigNode. | |
| bool | p_isWriteMode |
| True if the ConfigNodeIter is in writing mode. | |
| std::ostream * | p_out |
| std::ostream to be used for the error messages | |
Iterator of the ConfigNode.
Definition at line 16 of file ConfigNodeIter.h.
| ConfigNodeIter::ConfigNodeIter | ( | const ConfigNodeIter & | other | ) |
Copy constructor of ConfigNodeIter.
| other | : class to copy |
Definition at line 23 of file ConfigNodeIter.cpp.
References ConfigNodeIter(), and copyConfigNodeIter().
Referenced by ConfigNodeIter(), copyConfigNodeIter(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:
|
virtual |
|
private |
Default constructor of ConfigNodeIter.
| current | : pointer to the current ConfigNode |
| out | : std::ostream to be used for the error messages |
Definition at line 14 of file ConfigNodeIter.cpp.
References ConfigNode, initialisationConfigNodeIter(), isWriteMode(), p_current, p_isWriteMode, and p_out.
Here is the call graph for this function:
|
protected |
Copy function of ConfigNodeIter.
| other | : class to copy |
Definition at line 94 of file ConfigNodeIter.cpp.
References ConfigNodeIter(), p_current, p_isWriteMode, and p_out.
Referenced by ConfigNodeIter(), and operator=().
Here is the call graph for this function:
Here is the caller graph for this function:| bool ConfigNodeIter::down | ( | const PString & | childName | ) |
Move to the child of the current node.
| childName | : name of the child |
Definition at line 67 of file ConfigNodeIter.cpp.
References ConfigNode, p_current, p_isWriteMode, and p_out.
Referenced by getChildValue().
Here is the caller graph for this function:| bool ConfigNodeIter::getChildValue | ( | const PString & | childName, |
| T & | data, | ||
| const GenericConfigCheck * | checker = NULL ) |
Get a value from the current ConfigNode and check data.
| childName | : name of the child to get value | |
| [out] | data | : value to get |
| checker | : checker of given data |
Definition at line 66 of file ConfigNodeIter_impl.h.
References down(), getValue(), and up().
Here is the call graph for this function:| std::ostream * ConfigNodeIter::getOut | ( | ) |
Get the pointer of the output stream.
Definition at line 51 of file ConfigNodeIter.cpp.
References p_out.
| bool ConfigNodeIter::getValue | ( | T & | data | ) | const |
Get a value from the current ConfigNode.
| [out] | data | : value to get |
Definition at line 18 of file ConfigNodeIter_impl.h.
References p_current, p_isWriteMode, and p_out.
Referenced by getChildValue(), and getValue().
Here is the caller graph for this function:| bool ConfigNodeIter::getValue | ( | T & | data, |
| const GenericConfigCheck * | checker ) const |
Get a value from the current ConfigNode and check data.
| [out] | data | : value to get |
| checker | : checker of given data |
Definition at line 38 of file ConfigNodeIter_impl.h.
References getValue(), GenericConfigCheck::isOk(), p_current, p_isWriteMode, and p_out.
Here is the call graph for this function:
|
private |
Initialisation function of the class ConfigNodeIter.
Definition at line 101 of file ConfigNodeIter.cpp.
Referenced by ConfigNodeIter().
Here is the caller graph for this function:| bool ConfigNodeIter::isWriteMode | ( | ) | const |
Say if the iterator is in write mode.
Definition at line 87 of file ConfigNodeIter.cpp.
References p_isWriteMode.
Referenced by ConfigNodeIter().
Here is the caller graph for this function:| ConfigNode * ConfigNodeIter::operator-> | ( | ) |
Get the current ConfigNode.
Definition at line 44 of file ConfigNodeIter.cpp.
References ConfigNode, and p_current.
| ConfigNodeIter & ConfigNodeIter::operator= | ( | const ConfigNodeIter & | other | ) |
Definition of equal operator of ConfigNodeIter.
| other | : class to copy |
Definition at line 36 of file ConfigNodeIter.cpp.
References ConfigNodeIter(), and copyConfigNodeIter().
Here is the call graph for this function:| void ConfigNodeIter::up | ( | ) |
Move to the parent of the current node.
Definition at line 56 of file ConfigNodeIter.cpp.
References ConfigNode, and p_current.
Referenced by getChildValue().
Here is the caller graph for this function:| friend ConfigNodeIter::ConfigNode |
Definition at line 18 of file ConfigNodeIter.h.
Referenced by ConfigNodeIter(), down(), operator->(), and up().
|
private |
Current ConfigNode.
Definition at line 46 of file ConfigNodeIter.h.
Referenced by ConfigNodeIter(), copyConfigNodeIter(), down(), getValue(), getValue(), operator->(), and up().
|
private |
True if the ConfigNodeIter is in writing mode.
Definition at line 50 of file ConfigNodeIter.h.
Referenced by ConfigNodeIter(), copyConfigNodeIter(), down(), getValue(), getValue(), and isWriteMode().
|
private |
std::ostream to be used for the error messages
Definition at line 48 of file ConfigNodeIter.h.
Referenced by ConfigNodeIter(), copyConfigNodeIter(), down(), getOut(), getValue(), and getValue().