#include <writer.h>
Definition at line 12 of file writer.h.
◆ Writer() [1/2]
tue::config::Writer::Writer |
( |
| ) |
|
◆ Writer() [2/2]
◆ ~Writer()
tue::config::Writer::~Writer |
( |
| ) |
|
|
virtual |
◆ addArrayItem()
bool tue::config::Writer::addArrayItem |
( |
| ) |
|
addArrayItem create a new item in the array
- Returns
- indicates succes, can fail if current node isn't in an array
Definition at line 82 of file writer.cpp.
◆ data()
◆ end()
bool tue::config::Writer::end |
( |
| ) |
|
|
private |
end go to parent node.
- Returns
- indicates succes, can fail if current node doesn't have a parent
Definition at line 104 of file writer.cpp.
◆ endArray()
bool tue::config::Writer::endArray |
( |
| ) |
|
|
inline |
endArray go to parrent of current array, wrapping end() for readibility
- Returns
- indicates succes, see end() for more information
Definition at line 75 of file writer.h.
◆ endArrayItem()
bool tue::config::Writer::endArrayItem |
( |
| ) |
|
|
inline |
endArrayItem go back to the array level
- Returns
- indicates succes, can fail if current node ins't an array item
Definition at line 87 of file writer.h.
◆ endGroup()
bool tue::config::Writer::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 81 of file writer.h.
◆ setValue() [1/2]
template<typename T >
void tue::config::Writer::setValue |
( |
const std::string & |
name, |
|
|
const T & |
value |
|
) |
| |
|
inline |
setValue set child value with key 'name' and value 'value'
- Parameters
-
name | name of the key |
value | value of the value |
Definition at line 49 of file writer.h.
◆ setValue() [2/2]
setValue<string> set child value with key 'name' and value 'value', value is stripped from leading and trailing whitespace
- Parameters
-
name | name of the key |
value | value of the value |
Definition at line 62 of file writer.h.
◆ writeArray()
bool tue::config::Writer::writeArray |
( |
const std::string & |
name | ) |
|
writeArray starts writing an array. Or start extending it, if it already exists.
- Parameters
-
- Returns
- indicates succes
Definition at line 61 of file writer.cpp.
◆ writeGroup()
bool tue::config::Writer::writeGroup |
( |
const std::string & |
name | ) |
|
writeGroup starts writing a group. Or start extending it, if it already exists.
- Parameters
-
- Returns
- indicates succes
Definition at line 40 of file writer.cpp.
◆ cfg_
boost::shared_ptr<Data> tue::config::Writer::cfg_ |
|
private |
◆ idx_
The documentation for this class was generated from the following files: