Base template class for enum properties.
Definition at line 1725 of file fbproperties.h.
#include <fbproperties.h>
Public Member Functions | |
FBPropertyBaseAnimatableEnum () | |
Constructor. | |
~FBPropertyBaseAnimatableEnum () | |
Destructor. | |
FBPropertyBaseAnimatableEnum (const FBPropertyBaseAnimatableEnum< tType > &pValue) | |
FBPropertyBaseAnimatableEnum. | |
operator tType () const | |
Overloaded cast to tType operator. | |
virtual const char * | EnumList (int pIndex) override |
Return the string of an enum value. | |
virtual const char * | AsString (FBDataAsStringFlag pFlag=kFBDataAsStringUI) override |
Get as string. | |
virtual bool | SetString (const char *pString) override |
Set string as enum value. | |
void | operator= (tType pValue) |
Overloaded = operator. | |
Static Public Attributes | |
static const char * | mStrings [] |
String list. |
FBPropertyBaseAnimatableEnum | ( | ) | [inline] |
~FBPropertyBaseAnimatableEnum | ( | ) | [inline] |
FBPropertyBaseAnimatableEnum | ( | const FBPropertyBaseAnimatableEnum< tType > & | pValue | ) | [inline] |
pValue | FBPropertyBaseAnimatableEnum. |
Definition at line 1744 of file fbproperties.h.
{ operator=((tType)pValue ); }
void operator= | ( | tType | pValue | ) | [inline] |
Overloaded = operator.
Set the value of the current object using Set function.
pValue | Value to set for object. |
Definition at line 1751 of file fbproperties.h.
{ SetData( &pValue ); }
operator tType | ( | ) | const [inline] |
Overloaded cast to tType operator.
Get the value of the current object using Get fuction.
Definition at line 1758 of file fbproperties.h.
{ tType Value; GetData( &Value,sizeof(Value) ); return Value; }
virtual const char* EnumList | ( | int | pIndex | ) | [inline, override, virtual] |
Return the string of an enum value.
pIndex | Enum value to get string for. |
pIndex
. Reimplemented from FBProperty.
Definition at line 1760 of file fbproperties.h.
{ if( IsInternal() ) { return FBProperty::EnumList( pIndex ); } else if(mStrings) { return mStrings[pIndex]; } else { assert(mStrings || IsInternal()); return NULL; } }
virtual const char* AsString | ( | FBDataAsStringFlag | pFlag = kFBDataAsStringUI | ) | [inline, override, virtual] |
Get as string.
pFlag | Specifies the purpose of returned string it defaults to kFBDataAsStringUI. |
Reimplemented from FBProperty.
Definition at line 1781 of file fbproperties.h.
virtual bool SetString | ( | const char * | pString | ) | [inline, override, virtual] |
Set string as enum value.
pString | String to set, with format same as AsString(kFBDataAsStringPersistence) |
Reimplemented from FBProperty.
Definition at line 1787 of file fbproperties.h.
const char* mStrings[] [static] |