|
liballofw
|
YAML-based configuration reader. More...
#include <config.h>
Classes | |
| class | Node |
| Config node. More... | |
Public Member Functions | |
| virtual Node * | getNode (const char *key)=0 |
| Get a node with a key (pair with destroyNode). More... | |
| virtual void | destroyNode (Node *node)=0 |
| Destroy the node. More... | |
| virtual void | getString (const char *path, char *output, size_t output_capacity, const char *fallback="")=0 |
| Get the string at a given path. More... | |
| virtual size_t | getStringLength (const char *path, const char *fallback="")=0 |
| Get the length of the string at a give path. More... | |
| virtual int | getInt32 (const char *path, int fallback=0)=0 |
| Get int32 at a given path. More... | |
| virtual unsigned int | getUInt32 (const char *path, unsigned int fallback=0)=0 |
| Get uint32 at a given path. More... | |
| virtual float | getFloat (const char *path, float fallback=0.0f)=0 |
| Get float at a given path. More... | |
| virtual double | getDouble (const char *path, double fallback=0.0)=0 |
| Get double at a given path. More... | |
| virtual bool | getBoolean (const char *path, bool fallback=0.0)=0 |
| Get boolean at a given path. More... | |
| virtual void | parseFile (const char *path)=0 |
| Parse a YAML file. More... | |
| virtual void | parseFile (const char *path, const char *key)=0 |
| Parse a YAML file to a give key. More... | |
| std::string | getString (const char *path, const char *fallback="") |
| Get STL string at a given path. More... | |
| virtual | ~Configuration () |
Static Public Member Functions | |
| static Configuration * | Create () |
| Create Configuration object. More... | |
| static Configuration * | ParseMainArgs (int argc, char *argv[]) |
| Create Configuration object by C++ main() arguments. More... | |
| static Configuration * | CreateFromFile (const char *args=nullptr) |
| Create Configuration object from file. More... | |
YAML-based configuration reader.
|
inlinevirtual |
|
static |
Create Configuration object.
|
static |
Create Configuration object from file.
|
pure virtual |
Destroy the node.
|
pure virtual |
Get boolean at a given path.
|
pure virtual |
Get double at a given path.
|
pure virtual |
Get float at a given path.
|
pure virtual |
Get int32 at a given path.
|
pure virtual |
Get a node with a key (pair with destroyNode).
|
pure virtual |
Get the string at a given path.
|
inline |
Get STL string at a given path.
|
pure virtual |
Get the length of the string at a give path.
|
pure virtual |
Get uint32 at a given path.
|
pure virtual |
Parse a YAML file.
|
pure virtual |
Parse a YAML file to a give key.
|
static |
Create Configuration object by C++ main() arguments.
1.8.11