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

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

osgDB::TemplateSerializer< P > osgDB::BaseSerializer osg::Referenced

List of all members.

Public Types

typedef TemplateSerializer< P > ParentType
typedef P(C::* Getter )() const
typedef B(C::* Setter )(P)

Public Member Functions

 EnumSerializer (const char *name, P def, Getter gf, Setter sf)
void add (const char *str, P value)
getValue (const char *str)
const std::string & getString (P value)
virtual bool read (InputStream &is, osg::Object &obj)
virtual bool write (osgDB::OutputStream &os, const osg::Object &obj)

Public Attributes

Getter _getter
Setter _setter

Protected Attributes

IntLookup _lookup

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


Member Typedef Documentation

template<typename C, typename P, typename B>
typedef TemplateSerializer<P> osgDB::EnumSerializer< C, P, B >::ParentType

template<typename C, typename P, typename B>
typedef P(C::* osgDB::EnumSerializer< C, P, B >::Getter)() const

template<typename C, typename P, typename B>
typedef B(C::* osgDB::EnumSerializer< C, P, B >::Setter)(P)


Constructor & Destructor Documentation

template<typename C, typename P, typename B>
osgDB::EnumSerializer< C, P, B >::EnumSerializer ( const char *  name,
def,
Getter  gf,
Setter  sf 
) [inline]


Member Function Documentation

template<typename C, typename P, typename B>
void osgDB::EnumSerializer< C, P, B >::add ( const char *  str,
value 
) [inline]

template<typename C, typename P, typename B>
P osgDB::EnumSerializer< C, P, B >::getValue ( const char *  str  )  [inline]

template<typename C, typename P, typename B>
const std::string& osgDB::EnumSerializer< C, P, B >::getString ( value  )  [inline]

template<typename C, typename P, typename B>
virtual bool osgDB::EnumSerializer< C, P, B >::read ( InputStream is,
osg::Object obj 
) [inline, virtual]

template<typename C, typename P, typename B>
virtual bool osgDB::EnumSerializer< C, P, B >::write ( osgDB::OutputStream os,
const osg::Object obj 
) [inline, virtual]


Member Data Documentation

template<typename C, typename P, typename B>
Getter osgDB::EnumSerializer< C, P, B >::_getter

template<typename C, typename P, typename B>
Setter osgDB::EnumSerializer< C, P, B >::_setter

template<typename C, typename P, typename B>
IntLookup osgDB::EnumSerializer< C, P, B >::_lookup [protected]


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

Generated on Sat Mar 20 12:34:01 2010 for openscenegraph by  doxygen 1.5.6