|
My Project
|
a group of dynamic attributes More...
#include <DynamicAttributesSet.h>
Public Member Functions | |
| CDynamicAttributeField * | GetDynamicField (const std::string &sName) |
| Get a dynamic field with a given name. More... | |
| CDynamicAttributeField * | GetDynamicField (int nIndex) |
| Get a dynamic field with a given index. More... | |
| const char * | GetDynamicFieldNameByIndex (int nIndex) |
| get field name by index | |
| int | GetDynamicFieldIndex (const std::string &sName) |
| get field index More... | |
| int | GetDynamicFieldCount () |
| how many dynamic field this object currently have. More... | |
| int | SetDynamicField (const std::string &sName, const CVariable &value) |
| set a dynamic field with a given name. More... | |
| int | AddDynamicField (const std::string &sName, ATTRIBUTE_FIELDTYPE dwType) |
| add dynamic field and return field index | |
| void | RemoveAllDynamicFields () |
| remove all dynamic fields | |
| int | SaveDynamicFieldsToString (string &output) |
| save only text dynamic fields to fieldname = value text strings. More... | |
| int | LoadDynamicFieldsFromString (const string &input) |
| load only text dynamic fields from string More... | |
Public Member Functions inherited from ParaEngine::CRefCounted | |
| void | addref () const |
| add reference count of the object. More... | |
| bool | delref () const |
| decrease reference count of the object. More... | |
| int | GetRefCount () const |
| get the reference count | |
| virtual int | Release () |
| CRefCounted * | AddToAutoReleasePool () |
| addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More... | |
Additional Inherited Members | |
Protected Attributes inherited from ParaEngine::CRefCounted | |
| int | m_refcount |
a group of dynamic attributes
| CDynamicAttributeField * ParaEngine::CDynamicAttributesSet::GetDynamicField | ( | const std::string & | sName | ) |
Get a dynamic field with a given name.
| sName | name of the field to set |
| CDynamicAttributeField * ParaEngine::CDynamicAttributesSet::GetDynamicField | ( | int | nIndex | ) |
Get a dynamic field with a given index.
| sName | name of the field to set |
| int ParaEngine::CDynamicAttributesSet::GetDynamicFieldCount | ( | ) |
how many dynamic field this object currently have.
| int ParaEngine::CDynamicAttributesSet::GetDynamicFieldIndex | ( | const std::string & | sName | ) |
get field index
| int ParaEngine::CDynamicAttributesSet::LoadDynamicFieldsFromString | ( | const string & | input | ) |
load only text dynamic fields from string
| int ParaEngine::CDynamicAttributesSet::SaveDynamicFieldsToString | ( | string & | output | ) |
save only text dynamic fields to fieldname = value text strings.
one on each line. line separator is
.
| int ParaEngine::CDynamicAttributesSet::SetDynamicField | ( | const std::string & | sName, |
| const CVariable & | value | ||
| ) |
set a dynamic field with a given name.
if field not exist, it will create one.
| sName | name of the field to set : the value to add. if NULL, field will be removed. |
1.8.12