OpenSceneGraph 2.8.3

osgDB::EnumSerializer< C, P > Class Template Reference

Inheritance diagram for osgDB::EnumSerializer< C, P >:

List of all members.

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)
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
_default
GetterFunctionType _getter
SetterFunctionType _setter
IntLookup _lookup

template<typename C, typename P>
class osgDB::EnumSerializer< C, P >


Member Typedef Documentation

template<typename C , typename P >
typedef P(C::* osgDB::EnumSerializer< C, P >::GetterFunctionType)() const
template<typename C , typename P >
typedef void(C::* osgDB::EnumSerializer< C, P >::SetterFunctionType)(P)

Constructor & Destructor Documentation

template<typename C , typename P >
osgDB::EnumSerializer< C, P >::EnumSerializer ( const char *  fieldName,
defaultValue,
GetterFunctionType  getter,
SetterFunctionType  setter 
) [inline]

Member Function Documentation

template<typename C , typename P >
void osgDB::EnumSerializer< C, P >::add ( value,
const char *  str 
) [inline]
template<typename C , typename P >
const std::string& osgDB::EnumSerializer< C, P >::getString ( value) [inline]
template<typename C , typename P >
P osgDB::EnumSerializer< C, P >::getValue ( const char *  str) [inline]
template<typename C , typename P >
bool osgDB::EnumSerializer< C, P >::read ( osgDB::Input fr,
osg::Object obj,
bool &  itrAdvanced 
) [inline, virtual]

Member Data Documentation

template<typename C , typename P >
P osgDB::EnumSerializer< C, P >::_default
template<typename C , typename P >
std::string osgDB::EnumSerializer< C, P >::_fieldName
template<typename C , typename P >
GetterFunctionType osgDB::EnumSerializer< C, P >::_getter
template<typename C , typename P >
SetterFunctionType osgDB::EnumSerializer< C, P >::_setter

The documentation for this class was generated from the following file:

osg logo
Generated at Tue Mar 22 2011 13:20:25 for the OpenSceneGraph by doxygen 1.7.3.