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

List of all members.

Public Types

typedef std::vector
< osg::ref_ptr< BaseSerializer > > 
SerializerList
typedef std::vector
< osg::ref_ptr
< FinishedObjectReadCallback > > 
FinishedObjectReadCallbackList

Public Member Functions

 ObjectWrapper (osg::Object *proto, const std::string &name, const std::string &associates)
void setUpdatedVersion (int ver)
const osg::ObjectgetProto () const
const std::string & getName () const
const StringListgetAssociates () const
void addSerializer (BaseSerializer *s, BaseSerializer::Type t=BaseSerializer::RW_UNDEFINED)
void markSerializerAsRemoved (const std::string &name)
BaseSerializergetSerializer (const std::string &name)
void addFinishedObjectReadCallback (FinishedObjectReadCallback *forc)
bool read (InputStream &, osg::Object &)
bool write (OutputStream &, const osg::Object &)
bool readSchema (const StringList &properties, const std::vector< int > &types)
void writeSchema (StringList &properties, std::vector< int > &types)
void resetSchema ()

Protected Member Functions

 ObjectWrapper ()
virtual ~ObjectWrapper ()

Protected Attributes

osg::ref_ptr< osg::Object_proto
std::string _name
StringList _associates
SerializerList _serializers
SerializerList _backupSerializers
std::vector< int > _typeList
FinishedObjectReadCallbackList _finishedObjectReadCallbacks
int _version

Member Typedef Documentation


Constructor & Destructor Documentation

osgDB::ObjectWrapper::ObjectWrapper ( osg::Object proto,
const std::string &  name,
const std::string &  associates 
)
osgDB::ObjectWrapper::ObjectWrapper ( ) [inline, protected]
virtual osgDB::ObjectWrapper::~ObjectWrapper ( ) [inline, protected, virtual]

Member Function Documentation

void osgDB::ObjectWrapper::addFinishedObjectReadCallback ( FinishedObjectReadCallback forc) [inline]
void osgDB::ObjectWrapper::addSerializer ( BaseSerializer s,
BaseSerializer::Type  t = BaseSerializer::RW_UNDEFINED 
)
const StringList& osgDB::ObjectWrapper::getAssociates ( ) const [inline]
const std::string& osgDB::ObjectWrapper::getName ( ) const [inline]
const osg::Object* osgDB::ObjectWrapper::getProto ( ) const [inline]
BaseSerializer* osgDB::ObjectWrapper::getSerializer ( const std::string &  name)
void osgDB::ObjectWrapper::markSerializerAsRemoved ( const std::string &  name)
bool osgDB::ObjectWrapper::read ( InputStream ,
osg::Object  
)
bool osgDB::ObjectWrapper::readSchema ( const StringList properties,
const std::vector< int > &  types 
)
void osgDB::ObjectWrapper::resetSchema ( ) [inline]
void osgDB::ObjectWrapper::setUpdatedVersion ( int  ver) [inline]
bool osgDB::ObjectWrapper::write ( OutputStream ,
const osg::Object  
)
void osgDB::ObjectWrapper::writeSchema ( StringList properties,
std::vector< int > &  types 
)

Member Data Documentation

std::string osgDB::ObjectWrapper::_name [protected]
std::vector<int> osgDB::ObjectWrapper::_typeList [protected]

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.