Stgs Pile
version 0.0.1
Stgs pile.
|
brief description More...
#include <stgs.h>
Public Member Functions | |
Stgs () | |
Default constructor. More... | |
virtual | ~Stgs () |
Destructor. More... | |
void | setVersion (int version) |
Select current version. | |
int | version () const |
Tell current version. | |
virtual bool | beginGroup (const PERST_STRING &name) |
Starts a group; internal state is altered. | |
virtual bool | endGroup (const PERST_STRING &name="") |
Ends a group; internal state is altered. | |
virtual bool | beginWriteArray (const PERST_STRING &name, int predicted_count=-1) |
Starts writing an array; internal state is altered. | |
virtual int | beginReadArray (const PERST_STRING &name) |
Starts reading an array; internal state is altered. | |
virtual bool | endArray (const PERST_STRING &name="") |
Ends an array; internal state is altered. | |
virtual int | arrayIndex () const |
Get current index of an array. | |
virtual bool | setArrayIndex (int index) |
Set current index of an array. | |
virtual PERST_STRING | group () const |
Tell the name of current group (arrays are also groups). | |
virtual PERST_SLIST | groupPath () const |
Tell the full path of current group (arrays are also groups). | |
virtual bool | hasKey (const PERST_STRING &name) |
Tell if a given key exists (relative to current group). | |
virtual bool | hasKey (const PERST_SLIST &name) |
Tell if a given path exists (relative to current group). | |
virtual PERST_STRING | valueS (const PERST_STRING &name) |
Get the string value for a key; the value type MUST be string. | |
virtual PERST_SLIST | valueSList (const PERST_STRING &name) |
Get the string list for a key; the value type MUST be an array of strings. | |
virtual int64_t | valueInt (const PERST_STRING &name) |
Get the integer value for a key; the value type MUST be integer. | |
virtual uint64_t | valueUInt (const PERST_STRING &name) |
Get the integer value for a key; the value type MUST be integer. | |
virtual double | valueDbl (const PERST_STRING &name) |
Get the real value for a key; the value type MUST be real. | |
PERST_STRING | valueS (const PERST_STRING &name, const PERST_STRING &default_val) |
Get the string value for a key; the value type MUST be string. | |
PERST_SLIST | valueSList (const PERST_STRING &name, const PERST_SLIST &default_val) |
Get the string list for a key; the value type MUST be an array of strings. | |
int64_t | valueInt (const PERST_STRING &name, int64_t default_val) |
Get the integer value for a key; the value type MUST be integer. | |
uint64_t | valueUInt (const PERST_STRING &name, uint64_t default_val) |
Get the integer value for a key; the value type MUST be integer. | |
double | valueDbl (const PERST_STRING &name, double default_val) |
Get the real value for a key; the value type MUST be real. | |
virtual bool | setValue (const PERST_STRING &name, const PERST_STRING &value) |
Set the string value for a key. | |
virtual bool | setValue (const PERST_STRING &name, const PERST_SLIST &value) |
Set the string list for a key. | |
virtual bool | setValue (const PERST_STRING &name, int64_t value) |
Set the integer value for a key. | |
virtual bool | setValue (const PERST_STRING &name, uint64_t value) |
Set the integer value for a key. | |
virtual bool | setValue (const PERST_STRING &name, int value) |
Set the integer value for a key. | |
virtual bool | setValue (const PERST_STRING &name, double value) |
Set the real value for a key. | |
QByteArray | valueBA (const PERST_STRING &name, const QByteArray &default_val) |
Get the real value for a key; the value type MUST be real. | |
QByteArray | valueBA (const PERST_STRING &name) |
virtual bool | setValue (const PERST_STRING &name, const QByteArray &value) |
Set the real value for a key. | |
bool | valueB (const PERST_STRING &name, bool default_val) |
Get the real value for a key; the value type MUST be real. | |
bool | valueB (const PERST_STRING &name) |
virtual bool | setValue (const PERST_STRING &name, bool value) |
Set the real value for a key. | |
QDate | valueDate (const PERST_STRING &name, const QDate &default_val) |
Get the string list for a key; the value type MUST be an array of strings. | |
QDate | valueDate (const PERST_STRING &name) |
Get the string list for a key; the value type MUST be an array of strings. | |
virtual bool | setValue (const PERST_STRING &name, const QDate &value) |
Set the real value for a key. | |
QTime | valueTime (const PERST_STRING &name, const QTime &default_val) |
Get the string list for a key; the value type MUST be an array of strings. | |
QTime | valueTime (const PERST_STRING &name) |
Get the string list for a key; the value type MUST be an array of strings. | |
virtual bool | setValue (const PERST_STRING &name, const QTime &value) |
Set the real value for a key. | |
QDateTime | valueDateTime (const PERST_STRING &name, const QDateTime &default_val) |
Get the string list for a key; the value type MUST be an array of strings. | |
QDateTime | valueDateTime (const PERST_STRING &name) |
Get the string list for a key; the value type MUST be an array of strings. | |
virtual bool | setValue (const PERST_STRING &name, const QDateTime &value) |
Set the real value for a key. | |
brief description
Detailed description.
Stgs::Stgs | ( | ) |
Default constructor.
Detailed description for constructor.
|
virtual |
Destructor.
Detailed description for destructor.