Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

osgDB::DotOsgWrapper Class Reference

Inheritance diagram for osgDB::DotOsgWrapper:
osg::Referenced

List of all members.

Public Types

enum  ReadWriteMode { READ_AND_WRITE, READ_ONLY }
typedef std::vector< std::string > Associates
typedef bool(* ReadFunc )(osg::Object &, osgDB::Input &)
typedef bool(* WriteFunc )(const osg::Object &, osgDB::Output &)

Public Member Functions

 DotOsgWrapper (osg::Object *proto, const std::string &name, const std::string &associates, ReadFunc readFunc, WriteFunc writeFunc, ReadWriteMode readWriteMode=READ_AND_WRITE)
const osg::Object * getPrototype () const
const std::string & getName () const
const Associates & getAssociates () const
ReadFunc getReadFunc () const
WriteFunc getWriteFunc () const
ReadWriteMode getReadWriteMode () const

Protected Member Functions

 DotOsgWrapper ()
 protected to prevent inappropriate creation of wrappers.
 DotOsgWrapper (DotOsgWrapper &)
 protected to prevent inappropriate creation of wrappers.
virtual ~DotOsgWrapper ()
 protected to prevent wrapper being created on stack.

Protected Attributes

osg::ref_ptr< osg::Object > _prototype
std::string _name
Associates _associates
ReadFunc _readFunc
WriteFunc _writeFunc
ReadWriteMode _readWriteMode

Detailed Description

Wrapper class for specifying read and write functions for extending the .osg file format.


Member Typedef Documentation

typedef std::vector<std::string> osgDB::DotOsgWrapper::Associates

Member Enumeration Documentation

Enumerator:
READ_AND_WRITE 
READ_ONLY 

Constructor & Destructor Documentation

osgDB::DotOsgWrapper::DotOsgWrapper ( osg::Object *  proto,
const std::string &  name,
const std::string &  associates,
ReadFunc  readFunc,
WriteFunc  writeFunc,
ReadWriteMode  readWriteMode = READ_AND_WRITE 
)
osgDB::DotOsgWrapper::DotOsgWrapper (  )  [inline, protected]

protected to prevent inappropriate creation of wrappers.

osgDB::DotOsgWrapper::DotOsgWrapper ( DotOsgWrapper &   )  [inline, protected]

protected to prevent inappropriate creation of wrappers.

virtual osgDB::DotOsgWrapper::~DotOsgWrapper (  )  [inline, protected, virtual]

protected to prevent wrapper being created on stack.


Member Function Documentation

const Associates& osgDB::DotOsgWrapper::getAssociates (  )  const [inline]
const std::string& osgDB::DotOsgWrapper::getName (  )  const [inline]
const osg::Object* osgDB::DotOsgWrapper::getPrototype (  )  const [inline]
ReadFunc osgDB::DotOsgWrapper::getReadFunc (  )  const [inline]
ReadWriteMode osgDB::DotOsgWrapper::getReadWriteMode (  )  const [inline]
WriteFunc osgDB::DotOsgWrapper::getWriteFunc (  )  const [inline]

Member Data Documentation

std::string osgDB::DotOsgWrapper::_name [protected]

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