Go to the documentation of this file.
248 emitter.
emit(cfg, ss);
257 if (reader.
value(
"x", x) && reader.
value(
"y", y) && reader.
value(
"z", z))
263 reader.
value(
"bla", bla);
270 if (reader.
value(
"x", x))
278 if (reader.
value(
"bar", bar))
287 reader.
value(
"bla", bla);
290 if (reader.
value(
"x", x) && reader.
value(
"y", y) && reader.
value(
"z", z))
316 for(
unsigned int i = 0; i < 10; ++i)
bool nextArrayItem()
nextArrayItem go to the next item in the array, wrapping next() for readbility
void setValue(const std::string &name, int value)
bool endArrayItem()
endArrayItem go back to the array level
bool value(const std::string &name, T &value, const RequiredOrOptional=REQUIRED) const
value read value of child with key 'name'
bool value(const std::string &name, int &value)
bool writeArray(const std::string &name)
writeArray starts writing an array. Or start extending it, if it already exists.
bool endArrayItem()
endArrayItem go back to the array level
bool writeGroup(const std::string &name)
writeGroup starts writing a group. Or start extending it, if it already exists.
bool addArrayItem()
addArrayItem create a new item in the array
bool readArray(const std::string &name, const RequiredOrOptional opt=OPTIONAL)
readArray read the child with key 'name', which should be an array
bool readGroup(const std::string &name, const RequiredOrOptional opt=OPTIONAL)
readGroup read the child with key 'name', which should be a group
std::string toYAMLString() const
toYAMLString convert data (from current reading/writing point) to yaml string
unsigned int byte_size() const
bool endGroup()
endGroup go to the parrent of current group, wrapping end() for readbility
bool endGroup()
endGroup go to the parrent of current group, wrapping end() for readbility
const char * dataPointer() const
void test2_foo(tue::Configuration config)
bool endArray()
endArray go to parrent of current array, wrapping end() for readibility
bool writeGroup(const std::string &name)
writeGroup starts writing a group. Or start extending it, if it already exists.
bool read(const std::string &name)
bool value(const std::string &name, T &value, RequiredOrOptional opt=REQUIRED)
value read value of child with key 'name'
void setValue(const std::string &name, const T &value)
setValue set child value with key 'name' and value 'value'
void writeGroup(const std::string &name)
ReaderWriter limitScope() const
limitScope Limit the data to the current position. All parents and siblings incl. their child aren't ...
bool writeArray(const std::string &name)
writeArray starts writing an array. Or start extending it, if it already exists.
void emit(const tue::config::DataConstPointer &cfg, std::ostream &out, const std::string &indent="")
bool add(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
bool readArray(const std::string &name, const RequiredOrOptional opt=OPTIONAL)
readArray read the child with key 'name', which should be an array
bool endArray()
endArray go to parrent of current array, wrapping end() for readibility
void test2_bar(tue::Configuration config)
void writeArray(const std::string &name)
bool addArrayItem()
addArrayItem create a new item in the array
bool endArray()
endArray go to parrent of current array, wrapping end() for readibility
bool nextArrayItem()
nextArrayItem go to the next item in the array, wrapping next() for readbility
void setValue(const std::string &name, const T &value)
setValue set child value with key 'name' and value 'value'
tue::config::ReaderWriter config