Go to the documentation of this file. 1 #ifndef TUE_CONFIG_WRITER_H_
2 #define TUE_CONFIG_WRITER_H_
53 cfg_->nodes[
idx_]->setValue(label, var);
68 cfg_->nodes[
idx_]->setValue(label, var);
void setValue(const std::string &name, std::string value)
setValue<string> set child value with key 'name' and value 'value', value is stripped from leading an...
static void trim(std::string &s)
bool endArrayItem()
endArrayItem go back to the array level
boost::shared_ptr< Data > cfg_
bool endGroup()
endGroup go to the parrent of current group, wrapping end() for readbility
bool writeGroup(const std::string &name)
writeGroup starts writing a group. Or start extending it, if it already exists.
bool writeArray(const std::string &name)
writeArray starts writing an array. Or start extending it, if it already exists.
bool endArray()
endArray go to parrent of current array, wrapping end() for readibility
DataConstPointer data() const
data get the data from the current reading/writing point
bool addArrayItem()
addArrayItem create a new item in the array
bool end()
end go to parent node.
void setValue(const std::string &name, const T &value)
setValue set child value with key 'name' and value 'value'
tue::config::ReaderWriter config