OpenSceneGraph  3.0.1
Public Types | Public Member Functions | Public Attributes | Protected Attributes
osgDB::EnumSerializer Class Reference
Inheritance diagram for osgDB::EnumSerializer:
Inheritance graph
[legend]

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

Member Typedef Documentation

typedef P(C::* osgDB::EnumSerializer::Getter)() const
typedef B(C::* osgDB::EnumSerializer::Setter)(P)

Constructor & Destructor Documentation

osgDB::EnumSerializer::EnumSerializer ( const char *  name,
def,
Getter  gf,
Setter  sf 
) [inline]

Member Function Documentation

void osgDB::EnumSerializer::add ( const char *  str,
value 
) [inline]

References _lookup, and osgDB::IntLookup::add().

const std::string& osgDB::EnumSerializer::getString ( value) [inline]

References _lookup, and osgDB::IntLookup::getString().

Referenced by write().

P osgDB::EnumSerializer::getValue ( const char *  str) [inline]

References _lookup, and osgDB::IntLookup::getValue().

Referenced by read().

virtual bool osgDB::EnumSerializer::read ( InputStream is,
osg::Object obj 
) [inline, virtual]
virtual bool osgDB::EnumSerializer::write ( osgDB::OutputStream os,
const osg::Object obj 
) [inline, virtual]

Member Data Documentation

Referenced by write().

Referenced by add(), getValue(), and getString().

Referenced by read().


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

osg logo
Generated at Mon Oct 3 2011 12:39:46 for the OpenSceneGraph by doxygen 1.7.5.