My Project
|
derived attribute class. More...
#include <AttributeClass.h>
Public Types | |
typedef T | classType |
![]() | |
enum | Field_Order { Sort_ByName, Sort_ByCategory, Sort_ByInstallOrder } |
Public Member Functions | |
CAttributeClassImp (int nClassID, const char *sClassName, const char *sClassDescription) | |
virtual IAttributeFields * | Create () |
see class reference if classType::Create is not defined. More... | |
![]() | |
CAttributeClass (int nClassID, const char *sClassName, const char *sClassDescription) | |
void | AddField (const char *sFieldname, DWORD Type, void *offsetSetFunc, void *offsetGetFunc, const char *sSchematics, const char *sHelpString, bool bOverride) |
add a new field. More... | |
void | AddField_Deprecated (const char *fieldName, bool bOverride=true) |
use of deprecated field takes no effect and will output warning in the log. More... | |
bool | RemoveField (const char *sFieldname) |
remove a field, return true if moved. More... | |
void | RemoveAllFields () |
int | GetClassID () const |
class ID | |
const char * | GetClassName () const |
class name | |
const char * | GetClassDescription () const |
class description | |
void | SetOrder (Field_Order order) |
Set which order fields are saved. More... | |
Field_Order | GetOrder () |
get which order fields are saved. More... | |
int | GetFieldNum () |
get the total number of field. More... | |
CAttributeField * | GetField (int nIndex) |
get field at the specified index. More... | |
int | GetFieldIndex (const char *sFieldname) |
get field index of a given field name. More... | |
int | GetFieldIndex (const std::string &sFieldname) |
CAttributeField * | GetField (const char *sFieldname) |
return NULL, if the field does not exists | |
CAttributeField * | GetField (const std::string &sFieldname) |
Additional Inherited Members | |
![]() | |
int | m_nClassID |
const char * | m_sClassName |
const char * | m_sClassDescription |
vector< CAttributeField > | m_attributes |
Field_Order | m_nCurrentOrder |
bool | m_bSort |
derived attribute class.
Class T should add following macro to its header in order to use this factory class ATTRIBUTE_SUPPORT_CREATE_FACTORY(CWeatherEffect); or T should have Create() method manually defined.
|
inlinevirtual |
see class reference if classType::Create is not defined.
Reimplemented from ParaEngine::CAttributeClass.