Config node.
More...
#include <config.h>
|
| virtual bool | isArray () const =0 |
| |
| virtual bool | isDictionary () const =0 |
| | Is this an array? More...
|
| |
| virtual bool | isValue () const =0 |
| | Is this a dictionary? More...
|
| |
| virtual void | getString (char *output, size_t output_capacity, const char *fallback="") const =0 |
| | Is this a value? More...
|
| |
| virtual size_t | getStringLength (const char *fallback="") const =0 |
| | Get the length of the string. More...
|
| |
| virtual int | getInt32 (int fallback=0) const =0 |
| | Get int32 value. More...
|
| |
| virtual unsigned int | getUInt32 (unsigned int fallback=0) const =0 |
| | Get uint32 value. More...
|
| |
| virtual float | getFloat (float fallback=0.0f) const =0 |
| | Get float value. More...
|
| |
| virtual double | getDouble (double fallback=0.0) const =0 |
| | Get double value. More...
|
| |
| virtual bool | getBoolean (bool fallback=0.0) const =0 |
| | Get boolean value. More...
|
| |
| std::string | getString (const char *fallback="") |
| | Get STL string value. More...
|
| |
| virtual Node * | get (int index) const =0 |
| | Get array item by index. More...
|
| |
| virtual Node * | get (const char *key) const =0 |
| | Get dictionary item by key. More...
|
| |
| virtual size_t | size () const =0 |
| | Get size of the node (for array and dictionary). More...
|
| |
| virtual allofw::Configuration::Node::~Node |
( |
| ) |
|
|
inlineprotectedvirtual |
| virtual Node* allofw::Configuration::Node::get |
( |
int |
index | ) |
const |
|
pure virtual |
| virtual Node* allofw::Configuration::Node::get |
( |
const char * |
key | ) |
const |
|
pure virtual |
Get dictionary item by key.
| virtual bool allofw::Configuration::Node::getBoolean |
( |
bool |
fallback = 0.0 | ) |
const |
|
pure virtual |
| virtual double allofw::Configuration::Node::getDouble |
( |
double |
fallback = 0.0 | ) |
const |
|
pure virtual |
| virtual float allofw::Configuration::Node::getFloat |
( |
float |
fallback = 0.0f | ) |
const |
|
pure virtual |
| virtual int allofw::Configuration::Node::getInt32 |
( |
int |
fallback = 0 | ) |
const |
|
pure virtual |
| virtual void allofw::Configuration::Node::getString |
( |
char * |
output, |
|
|
size_t |
output_capacity, |
|
|
const char * |
fallback = "" |
|
) |
| const |
|
pure virtual |
Is this a value?
Get string.
| std::string allofw::Configuration::Node::getString |
( |
const char * |
fallback = "" | ) |
|
|
inline |
| virtual size_t allofw::Configuration::Node::getStringLength |
( |
const char * |
fallback = "" | ) |
const |
|
pure virtual |
Get the length of the string.
| virtual unsigned int allofw::Configuration::Node::getUInt32 |
( |
unsigned int |
fallback = 0 | ) |
const |
|
pure virtual |
| virtual bool allofw::Configuration::Node::isArray |
( |
| ) |
const |
|
pure virtual |
| virtual bool allofw::Configuration::Node::isDictionary |
( |
| ) |
const |
|
pure virtual |
| virtual bool allofw::Configuration::Node::isValue |
( |
| ) |
const |
|
pure virtual |
| virtual size_t allofw::Configuration::Node::size |
( |
| ) |
const |
|
pure virtual |
Get size of the node (for array and dictionary).
The documentation for this class was generated from the following file: