AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
CzXomlProperty Struct Reference

A basic XOML property. More...

#include <CzXoml.h>

List of all members.

Public Member Functions

 CzXomlProperty ()
 CzXomlProperty (const char *data)
 CzXomlProperty (float data)
 CzXomlProperty (bool data)
 CzXomlProperty (int data)
 CzXomlProperty (const CzVec2 &data)
 CzXomlProperty (const CzIVec2 &data)
 CzXomlProperty (const CzVec3 &data)
 CzXomlProperty (const CzVec4 &data)
 CzXomlProperty (const CzColour &data)
 CzXomlProperty (const CzRect &data)
 CzXomlProperty (const CzIRect &data)
 CzXomlProperty (IzXomlResource *data)
 CzXomlProperty (CzXomlVariable *data)
 CzXomlProperty (void *data)
 ~CzXomlProperty ()
bool setValue (const CzString &data, bool delta)
 Sets the value of the property from a string.
bool setValue (const CzXomlProperty &prop, bool delta)
 Sets the value of the property from a property.
void setToVariable (CzXomlVariable &var)
 Sets the property to a variable.
void toString (CzString &string) const

Static Public Member Functions

static CzXomlPropertycreateOfType (eCzXomlPropertyType type)
 Creates a property of the specified type.
static CzXomlPropertycreateOfType (const char *type_name)
 Creates a property of the specified named type.

Public Attributes

eCzXomlPropertyType Type
 Type of property.
bool OwnData
union {
   void *   p_data
 Value of property as string or object.
   bool   p_bool
 Value of property as a bool.
   float   p_float
 Value of property as a float.
   int   p_int
 Value of property as an integer.
   float   p_vec [4]
 Value of property as a vector.
}; 
 <If true then the property owns p_data

Detailed Description

A basic XOML property.


Constructor & Destructor Documentation

CzXomlProperty::CzXomlProperty ( const char *  data) [inline]
CzXomlProperty::CzXomlProperty ( float  data) [inline]
CzXomlProperty::CzXomlProperty ( bool  data) [inline]
CzXomlProperty::CzXomlProperty ( int  data) [inline]
CzXomlProperty::CzXomlProperty ( const CzVec2 data) [inline]
CzXomlProperty::CzXomlProperty ( const CzIVec2 data) [inline]
CzXomlProperty::CzXomlProperty ( const CzVec3 data) [inline]
CzXomlProperty::CzXomlProperty ( const CzVec4 data) [inline]
CzXomlProperty::CzXomlProperty ( const CzColour data) [inline]
CzXomlProperty::CzXomlProperty ( const CzRect data) [inline]
CzXomlProperty::CzXomlProperty ( const CzIRect data) [inline]
CzXomlProperty::CzXomlProperty ( void *  data) [inline]

Member Function Documentation

Creates a property of the specified type.

Parameters:
typeThe property type.
Returns:
The new property.
CzXomlProperty * CzXomlProperty::createOfType ( const char *  type_name) [static]

Creates a property of the specified named type.

Parameters:
typeThe property type.
Returns:
The new property.

Sets the property to a variable.

Parameters:
[out]varThe target variable.
bool CzXomlProperty::setValue ( const CzString data,
bool  delta 
)

Sets the value of the property from a string.

Parameters:
dataThe data.
deltatrue to add to the property.
Returns:
true if it succeeds, false if it fails.
bool CzXomlProperty::setValue ( const CzXomlProperty data,
bool  delta 
)

Sets the value of the property from a property.

Parameters:
dataThe data.
deltatrue to add to the property.
Returns:
true if it succeeds, false if it fails.
void CzXomlProperty::toString ( CzString string) const

Member Data Documentation

union { ... }

<If true then the property owns p_data

Value of property as a bool.

Value of property as string or object.

Value of property as a float.

Value of property as an integer.

Value of property as a vector.


The documentation for this struct was generated from the following files: