liballofw
Public Member Functions | Protected Member Functions | List of all members
allofw::Configuration::Node Class Referenceabstract

Config node. More...

#include <config.h>

Public Member Functions

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 Nodeget (int index) const =0
 Get array item by index. More...
 
virtual Nodeget (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...
 

Protected Member Functions

virtual ~Node ()
 

Detailed Description

Config node.

Constructor & Destructor Documentation

virtual allofw::Configuration::Node::~Node ( )
inlineprotectedvirtual

Member Function Documentation

virtual Node* allofw::Configuration::Node::get ( int  index) const
pure virtual

Get array item by index.

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

Get boolean value.

virtual double allofw::Configuration::Node::getDouble ( double  fallback = 0.0) const
pure virtual

Get double value.

virtual float allofw::Configuration::Node::getFloat ( float  fallback = 0.0f) const
pure virtual

Get float value.

virtual int allofw::Configuration::Node::getInt32 ( int  fallback = 0) const
pure virtual

Get int32 value.

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

Get STL string value.

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

Get uint32 value.

virtual bool allofw::Configuration::Node::isArray ( ) const
pure virtual
virtual bool allofw::Configuration::Node::isDictionary ( ) const
pure virtual

Is this an array?

virtual bool allofw::Configuration::Node::isValue ( ) const
pure virtual

Is this a dictionary?

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: