osgDB::DotOsgWrapper Class Reference

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

Inheritance diagram for osgDB::DotOsgWrapper:

Inheritance graph
[legend]

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::ObjectgetPrototype () const
const std::string & getName () const
const AssociatesgetAssociates () 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

typedef bool(* osgDB::DotOsgWrapper::ReadFunc)(osg::Object &, osgDB::Input &)

typedef bool(* osgDB::DotOsgWrapper::WriteFunc)(const osg::Object &, osgDB::Output &)


Member Enumeration Documentation

enum osgDB::DotOsgWrapper::ReadWriteMode

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 osg::Object* osgDB::DotOsgWrapper::getPrototype (  )  const [inline]

const std::string& osgDB::DotOsgWrapper::getName (  )  const [inline]

const Associates& osgDB::DotOsgWrapper::getAssociates (  )  const [inline]

ReadFunc osgDB::DotOsgWrapper::getReadFunc (  )  const [inline]

WriteFunc osgDB::DotOsgWrapper::getWriteFunc (  )  const [inline]

ReadWriteMode osgDB::DotOsgWrapper::getReadWriteMode (  )  const [inline]


Member Data Documentation

osg::ref_ptr<osg::Object> osgDB::DotOsgWrapper::_prototype [protected]

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

Associates osgDB::DotOsgWrapper::_associates [protected]

ReadFunc osgDB::DotOsgWrapper::_readFunc [protected]

WriteFunc osgDB::DotOsgWrapper::_writeFunc [protected]

ReadWriteMode osgDB::DotOsgWrapper::_readWriteMode [protected]


The documentation for this class was generated from the following file:
Generated at Sun Oct 14 02:12:20 2007 for the OpenSceneGraph by doxygen 1.5.3.