openscenegraph
|
Public Member Functions | |
TemplateSerializer (const char *name, P def) | |
virtual bool | read (InputStream &is, osg::Object &obj)=0 |
virtual bool | write (OutputStream &os, const osg::Object &obj)=0 |
virtual const std::string & | getName () const |
Protected Attributes | |
std::string | _name |
P | _defaultValue |
osgDB::TemplateSerializer< P >::TemplateSerializer | ( | const char * | name, |
P | def | ||
) | [inline] |
virtual const std::string& osgDB::TemplateSerializer< P >::getName | ( | ) | const [inline, virtual] |
Implements osgDB::BaseSerializer.
virtual bool osgDB::TemplateSerializer< P >::read | ( | InputStream & | is, |
osg::Object & | obj | ||
) | [pure virtual] |
Implements osgDB::BaseSerializer.
Implemented in osgDB::PropByValSerializer< C, P >, osgDB::PropByRefSerializer< C, P >, osgDB::MatrixSerializer< C >, osgDB::GLenumSerializer< C, P >, osgDB::StringSerializer< C >, osgDB::ObjectSerializer< C, P >, osgDB::ImageSerializer< C, P >, and osgDB::EnumSerializer< C, P, B >.
virtual bool osgDB::TemplateSerializer< P >::write | ( | OutputStream & | os, |
const osg::Object & | obj | ||
) | [pure virtual] |
Implements osgDB::BaseSerializer.
Implemented in osgDB::PropByValSerializer< C, P >, osgDB::PropByRefSerializer< C, P >, osgDB::MatrixSerializer< C >, osgDB::GLenumSerializer< C, P >, osgDB::StringSerializer< C >, osgDB::ObjectSerializer< C, P >, osgDB::ImageSerializer< C, P >, and osgDB::EnumSerializer< C, P, B >.
P osgDB::TemplateSerializer< P >::_defaultValue [protected] |
Referenced by osgDB::EnumSerializer< C, P, B >::read(), osgDB::GLenumSerializer< C, P >::read(), osgDB::PropByRefSerializer< C, P >::read(), osgDB::PropByValSerializer< C, P >::read(), osgDB::EnumSerializer< C, P, B >::write(), osgDB::GLenumSerializer< C, P >::write(), osgDB::PropByRefSerializer< C, P >::write(), and osgDB::PropByValSerializer< C, P >::write().
std::string osgDB::TemplateSerializer< P >::_name [protected] |
Referenced by osgDB::TemplateSerializer< std::string >::getName(), osgDB::EnumSerializer< C, P, B >::read(), osgDB::GLenumSerializer< C, P >::read(), osgDB::PropByRefSerializer< C, P >::read(), osgDB::PropByValSerializer< C, P >::read(), osgDB::EnumSerializer< C, P, B >::write(), osgDB::GLenumSerializer< C, P >::write(), osgDB::PropByRefSerializer< C, P >::write(), and osgDB::PropByValSerializer< C, P >::write().