#include <reader.h>
|  | 
| DataConstPointer | data () const | 
|  | data get the data from the current reading/writing point  More... 
 | 
|  | 
| bool | endArray () | 
|  | endArray go to parrent of current array, wrapping end() for readibility  More... 
 | 
|  | 
| bool | endGroup () | 
|  | endGroup go to the parrent of current group, wrapping end() for readbility  More... 
 | 
|  | 
| bool | hasArray (const std::string &name) | 
|  | hasArray check if current node has a child, which is an array, with the key 'name'  More... 
 | 
|  | 
| bool | hasGroup (const std::string &name) | 
|  | hasGroup check if current node has a child, which is a group, with the key 'name'  More... 
 | 
|  | 
| bool | nextArrayItem () | 
|  | nextArrayItem go to the next item in the array, wrapping next() for readbility  More... 
 | 
|  | 
| bool | readArray (const std::string &name, const RequiredOrOptional opt=OPTIONAL) | 
|  | readArray read the child with key 'name', which should be an array  More... 
 | 
|  | 
|  | Reader (const DataConstPointer &ptr) | 
|  | 
| bool | readGroup (const std::string &name, const RequiredOrOptional opt=OPTIONAL) | 
|  | readGroup read the child with key 'name', which should be a group  More... 
 | 
|  | 
| template<typename T > | 
| bool | value (const std::string &name, T &value, const RequiredOrOptional=REQUIRED) const | 
|  | value read value of child with key 'name'  More... 
 | 
|  | 
| virtual | ~Reader () | 
|  | 
Definition at line 16 of file reader.h.
 
◆ Reader()
◆ ~Reader()
  
  | 
        
          | tue::config::Reader::~Reader | ( |  | ) |  |  | virtual | 
 
 
◆ data()
◆ end()
  
  | 
        
          | bool tue::config::Reader::end | ( |  | ) |  |  | private | 
 
end go to parent node. 
- Returns
- indicates succes, can fail if current node doesn't have a parent 
Definition at line 43 of file reader.cpp.
 
 
◆ endArray()
  
  | 
        
          | bool tue::config::Reader::endArray | ( |  | ) |  |  | inline | 
 
endArray go to parrent of current array, wrapping end() for readibility 
- Returns
- indicates succes, see end() for more information 
Definition at line 69 of file reader.h.
 
 
◆ endGroup()
  
  | 
        
          | bool tue::config::Reader::endGroup | ( |  | ) |  |  | inline | 
 
endGroup go to the parrent of current group, wrapping end() for readbility 
- Returns
- indicates succes, see end() for more information 
Definition at line 75 of file reader.h.
 
 
◆ hasArray()
  
  | 
        
          | bool tue::config::Reader::hasArray | ( | const std::string & | name | ) |  |  | inline | 
 
hasArray check if current node has a child, which is an array, with the key 'name' 
- Parameters
- 
  
    | name | key of the possible child array |  
 
- Returns
- indicates succes, can fail if key isn't avalaible or child is an array instead of a group 
Definition at line 88 of file reader.h.
 
 
◆ hasChild()
hasChild check if node has a child with key 'name' and type ARRAY or MAP 
- Parameters
- 
  
    | name | key of the child |  | type | node type of the child, ARRAY or MAP |  
 
- Returns
- indicates succes, can fail if key isn't avalaible or child is a group instead of an array 
Definition at line 76 of file reader.cpp.
 
 
◆ hasGroup()
  
  | 
        
          | bool tue::config::Reader::hasGroup | ( | const std::string & | name | ) |  |  | inline | 
 
hasGroup check if current node has a child, which is a group, with the key 'name' 
- Parameters
- 
  
    | name | key of the possible child group |  
 
- Returns
- indicates succes, can fail if key isn't avalaible or child is a group instead of an array 
Definition at line 95 of file reader.h.
 
 
◆ next()
  
  | 
        
          | bool tue::config::Reader::next | ( |  | ) |  |  | private | 
 
next go to next item in an array 
- Returns
- indicates succes, can fail if current node isn't in an array or if it is the last item in the array 
Definition at line 60 of file reader.cpp.
 
 
◆ nextArrayItem()
  
  | 
        
          | bool tue::config::Reader::nextArrayItem | ( |  | ) |  |  | inline | 
 
nextArrayItem go to the next item in the array, wrapping next() for readbility 
- Returns
- indicates succes, can fail if current node isn't in an array or if it is the last item in the array 
Definition at line 81 of file reader.h.
 
 
◆ read()
read read child with key 'name' of type ARRAY or MAP 
- Parameters
- 
  
    | name | key of the child |  | type | node type of the child, ARRAY or MAP |  | opt | RequiredOrOptional |  
 
- Returns
- indicates succes, can fail if key isn't avalaible or child is of incorrect type 
Definition at line 24 of file reader.cpp.
 
 
◆ readArray()
readArray read the child with key 'name', which should be an array 
- Parameters
- 
  
    | name | key of the array |  | opt | RequiredOrOptional |  
 
- Returns
- indicates succes, can fail if key isn't available or child is a group instead of an array 
Definition at line 55 of file reader.h.
 
 
◆ readGroup()
readGroup read the child with key 'name', which should be a group 
- Parameters
- 
  
    | name | key of the group |  | opt | RequiredOrOptional |  
 
- Returns
- indicates succes, can fail if key isn't avalaible or child is an array instead of a group 
Definition at line 63 of file reader.h.
 
 
◆ value()
template<typename T > 
  
  | 
        
          | bool tue::config::Reader::value | ( | const std::string & | name, |  
          |  |  | T & | value, |  
          |  |  | const | RequiredOrOptional = REQUIRED |  
          |  | ) |  | const |  | inline | 
 
value read value of child with key 'name' 
- Parameters
- 
  
    | name | name of the key |  | value | object to write the value to |  | opt | RequiredOrOptional |  
 
- Returns
- indicates succes, can fail if key not available or variable type isn't matching 
Definition at line 33 of file reader.h.
 
 
◆ cfg_
  
  | 
        
          | boost::shared_ptr<const Data> tue::config::Reader::cfg_ |  | private | 
 
 
◆ idx_
The documentation for this class was generated from the following files: