OpenSceneGraph 2.8.4
|
Public Types | |
typedef P(C::* | GetterFunctionType )() const |
typedef void(C::* | SetterFunctionType )(P) |
Public Member Functions | |
EnumSerializer (const char *fieldName, P defaultValue, GetterFunctionType getter, SetterFunctionType setter) | |
void | add (P value, const char *str) |
P | getValue (const char *str) |
const std::string & | getString (P value) |
bool | write (osgDB::Output &fw, const osg::Object &obj) |
bool | read (osgDB::Input &fr, osg::Object &obj, bool &itrAdvanced) |
Public Attributes | |
std::string | _fieldName |
P | _default |
GetterFunctionType | _getter |
SetterFunctionType | _setter |
IntLookup | _lookup |
typedef P(C::* osgDB::EnumSerializer< C, P >::GetterFunctionType)() const |
typedef void(C::* osgDB::EnumSerializer< C, P >::SetterFunctionType)(P) |
osgDB::EnumSerializer< C, P >::EnumSerializer | ( | const char * | fieldName, |
P | defaultValue, | ||
GetterFunctionType | getter, | ||
SetterFunctionType | setter | ||
) | [inline] |
void osgDB::EnumSerializer< C, P >::add | ( | P | value, |
const char * | str | ||
) | [inline] |
References osgDB::EnumSerializer< C, P >::_lookup, and osgDB::IntLookup::add().
const std::string& osgDB::EnumSerializer< C, P >::getString | ( | P | value | ) | [inline] |
References osgDB::EnumSerializer< C, P >::_lookup, and osgDB::IntLookup::getString().
Referenced by osgDB::EnumSerializer< C, P >::write().
P osgDB::EnumSerializer< C, P >::getValue | ( | const char * | str | ) | [inline] |
References osgDB::EnumSerializer< C, P >::_lookup, and osgDB::IntLookup::getValue().
Referenced by osgDB::EnumSerializer< C, P >::read().
bool osgDB::EnumSerializer< C, P >::read | ( | osgDB::Input & | fr, |
osg::Object & | obj, | ||
bool & | itrAdvanced | ||
) | [inline, virtual] |
bool osgDB::EnumSerializer< C, P >::write | ( | osgDB::Output & | fw, |
const osg::Object & | obj | ||
) | [inline, virtual] |
P osgDB::EnumSerializer< C, P >::_default |
Referenced by osgDB::EnumSerializer< C, P >::write().
std::string osgDB::EnumSerializer< C, P >::_fieldName |
Referenced by osgDB::EnumSerializer< C, P >::read(), and osgDB::EnumSerializer< C, P >::write().
GetterFunctionType osgDB::EnumSerializer< C, P >::_getter |
Referenced by osgDB::EnumSerializer< C, P >::write().
IntLookup osgDB::EnumSerializer< C, P >::_lookup |
SetterFunctionType osgDB::EnumSerializer< C, P >::_setter |
Referenced by osgDB::EnumSerializer< C, P >::read().
![]() | Generated at Sun Jan 8 2012 13:16:32 for the OpenSceneGraph by doxygen 1.7.4. |