My Project
|
for a single attribute field More...
#include <AttributeField.h>
Classes | |
union | any_offset |
Public Member Functions | |
void | SetFieldname (const string &sFieldname) |
const string & | GetFieldname () const |
size_t | GetHash () const |
const char * | GetTypeAsString () |
get the field type as string More... | |
bool | HasGetFunction () |
whether has get function. More... | |
bool | HasSetFunction () |
whether has set function. More... | |
HRESULT | Call (void *obj) |
HRESULT | Get (void *obj) |
template<class datatype > | |
HRESULT | Set (void *obj, datatype p1) |
HRESULT | Set (void *obj, const Matrix4 &p1) |
template<class datatype > | |
HRESULT | Set (void *obj, datatype p1, datatype p2) |
template<class datatype > | |
HRESULT | Set (void *obj, datatype p1, datatype p2, datatype p3) |
template<class datatype > | |
HRESULT | Set (void *obj, datatype p1, datatype p2, datatype p3, datatype p4) |
template<class datatype > | |
HRESULT | Get (void *obj, datatype *p1) |
template<class datatype > | |
HRESULT | Get (void *obj, datatype *p1, datatype *p2) |
template<class datatype > | |
HRESULT | Get (void *obj, datatype *p1, datatype *p2, datatype *p3) |
template<class datatype > | |
HRESULT | Get (void *obj, datatype *p1, datatype *p2, datatype *p3, datatype *p4) |
const char * | GetSchematicsType () |
parse the schema type from the schema string. More... | |
bool | GetSchematicsMinMax (float &fMin, float &fMax) |
parse the schema min max value from the schema string. More... | |
Static Public Member Functions | |
static const char * | GetSimpleSchema (SIMPLE_SCHEMA schema) |
attribute schematics: All simple schematics start with ':', they are mostly used in script. More... | |
static const char * | GetSimpleSchemaOfRGB () |
static const char * | GetSimpleSchemaOfFile () |
static const char * | GetSimpleSchemaOfScript () |
static const char * | GetSimpleSchemaOfInt (int nMin, int nMax) |
static const char * | GetSimpleSchemaOfFloat (float nMin, float nMax) |
Public Attributes | |
any_offset | m_offsetSetFunc |
any_offset | m_offsetGetFunc |
DWORD | m_type |
see ATTRIBUTE_FIELDTYPE | |
string | m_sSchematics |
additional schematics for describing the display format of the data. More... | |
string | m_sHelpString |
a help string. More... | |
Static Public Attributes | |
static std::hash< string > | HashFunc |
Protected Attributes | |
string | m_sFieldname |
field name: e.g. More... | |
size_t | m_hash |
for a single attribute field
bool CAttributeField::GetSchematicsMinMax | ( | float & | fMin, |
float & | fMax | ||
) |
parse the schema min max value from the schema string.
fMin | : [out]if the schema does not contain a min value, the default value which is smallest float. |
fMax | : [out]if the schema does not contain a max value, the default value which is largest float. |
const char * CAttributeField::GetSchematicsType | ( | ) |
parse the schema type from the schema string.
|
static |
attribute schematics: All simple schematics start with ':', they are mostly used in script.
color3 ":rgb" file ":file" script ":script" integer ":int{min, max}" float ":float{min, max}"
schema |
const char * CAttributeField::GetTypeAsString | ( | ) |
get the field type as string
|
inline |
whether has get function.
|
inline |
whether has set function.
|
protected |
field name: e.g.
"base.position"
string ParaEngine::CAttributeField::m_sHelpString |
a help string.
string ParaEngine::CAttributeField::m_sSchematics |
additional schematics for describing the display format of the data.
Different attribute type have different schematics.