AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
#include <CzXomlVariables.h>
Public Member Functions | |
void | setPersistent (bool persist) |
bool | isPersistent () const |
void | setInstantSave (bool instant) |
bool | isInstantSave () const |
void | setValueText (const char *value) |
virtual void | setValue (const char *value, int count=-1) |
virtual void | addValue (const char *value, const char *limit=NULL) |
CzString & | getValue () |
virtual bool | isTrue () |
virtual bool | checkCondition (eCzXomlConditionOperator condition, const CzString &val) |
CzXomlVariable () | |
virtual | ~CzXomlVariable () |
virtual void | Update () |
bool | isArray () const |
bool | isXML () const |
virtual bool | Save () |
virtual bool | Load () |
Static Public Member Functions | |
static CzXomlVariable * | GetVariable (const CzString &value, IzXomlResource *parent) |
Public Attributes | |
CzXomlVariableManager * | Parent |
Parent manager. | |
CzString | Name |
Name of variable. | |
eCzXomlVariableType | Type |
Type of variable. | |
bool | Modified |
Modified since last read flag. | |
Protected Attributes | |
bool | Persist |
if true then this variable will persist when the app is closed down and restarted | |
bool | InstantSave |
if true then this variable will saved as soon as it is changed otherwise it will be saved when it is destroyed | |
CzString | Value |
Value of variable. | |
bool | Changed |
Internal changed status. |
CzXomlVariable::CzXomlVariable | ( | ) | [inline] |
virtual CzXomlVariable::~CzXomlVariable | ( | ) | [inline, virtual] |
virtual void CzXomlVariable::addValue | ( | const char * | value, |
const char * | limit = NULL |
||
) | [inline, virtual] |
Reimplemented in CzXomlVariableCondition, CzXomlVariableVec4, CzXomlVariableVec3, CzXomlVariableVec2, CzXomlVariableInt, CzXomlVariableFloat, and CzXomlVariableBool.
bool CzXomlVariable::checkCondition | ( | eCzXomlConditionOperator | condition, |
const CzString & | val | ||
) | [virtual] |
CzString& CzXomlVariable::getValue | ( | ) | [inline] |
CzXomlVariable * CzXomlVariable::GetVariable | ( | const CzString & | value, |
IzXomlResource * | parent | ||
) | [static] |
bool CzXomlVariable::isArray | ( | ) | const [inline] |
bool CzXomlVariable::isInstantSave | ( | ) | const [inline] |
bool CzXomlVariable::isPersistent | ( | ) | const [inline] |
virtual bool CzXomlVariable::isTrue | ( | ) | [inline, virtual] |
Reimplemented in CzXomlVariableCondition, CzXomlVariableVec4, CzXomlVariableVec3, CzXomlVariableVec2, CzXomlVariableInt, CzXomlVariableFloat, and CzXomlVariableBool.
bool CzXomlVariable::isXML | ( | ) | const [inline] |
bool CzXomlVariable::Load | ( | ) | [virtual] |
Reimplemented in CzXomlVariableArray.
bool CzXomlVariable::Save | ( | ) | [virtual] |
Reimplemented in CzXomlVariableArray.
void CzXomlVariable::setInstantSave | ( | bool | instant | ) | [inline] |
void CzXomlVariable::setPersistent | ( | bool | persist | ) | [inline] |
virtual void CzXomlVariable::setValue | ( | const char * | value, |
int | count = -1 |
||
) | [inline, virtual] |
void CzXomlVariable::setValueText | ( | const char * | value | ) | [inline] |
virtual void CzXomlVariable::Update | ( | ) | [inline, virtual] |
Reimplemented in CzXomlVariableArray.
bool CzXomlVariable::Changed [protected] |
Internal changed status.
bool CzXomlVariable::InstantSave [protected] |
if true then this variable will saved as soon as it is changed otherwise it will be saved when it is destroyed
Modified since last read flag.
Name of variable.
Parent manager.
bool CzXomlVariable::Persist [protected] |
if true then this variable will persist when the app is closed down and restarted
Type of variable.
CzString CzXomlVariable::Value [protected] |
Value of variable.