Go to the documentation of this file. 1 #ifndef TUE_CONFIG_READER_H_
2 #define TUE_CONFIG_READER_H_
36 if (!
cfg_->getLabel(name, label))
40 if (!
cfg_->nodes[
idx_]->value(label, v))
136 boost::shared_ptr<const Data>
cfg_;
bool next()
next go to next item in an array
bool nextArrayItem()
nextArrayItem go to the next item in the array, wrapping next() for readbility
bool value(const std::string &name, T &value, const RequiredOrOptional=REQUIRED) const
value read value of child with key 'name'
bool hasGroup(const std::string &name)
hasGroup check if current node has a child, which is a group, with the key 'name'
boost::shared_ptr< const Data > cfg_
bool readGroup(const std::string &name, const RequiredOrOptional opt=OPTIONAL)
readGroup read the child with key 'name', which should be a group
Reader(const DataConstPointer &ptr)
DataConstPointer data() const
data get the data from the current reading/writing point
bool hasChild(const std::string &name, NodeType type) const
hasChild check if node has a child with key 'name' and type ARRAY or MAP
bool endGroup()
endGroup go to the parrent of current group, wrapping end() for readbility
bool hasArray(const std::string &name)
hasArray check if current node has a child, which is an array, with the key 'name'
bool read(const std::string &name, const NodeType type, const RequiredOrOptional opt=OPTIONAL)
read read child with key 'name' of type ARRAY or MAP
bool readArray(const std::string &name, const RequiredOrOptional opt=OPTIONAL)
readArray read the child with key 'name', which should be an array
bool end()
end go to parent node.
bool endArray()
endArray go to parrent of current array, wrapping end() for readibility
tue::config::ReaderWriter config