OpenSceneGraph
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osgDB::OutputIterator Class Referenceabstract
Inheritance diagram for osgDB::OutputIterator:
Inheritance graph
[legend]

Public Member Functions

 OutputIterator ()
 
virtual ~OutputIterator ()
 
void setStream (std::ostream *ostream)
 
std::ostream * getStream ()
 
const std::ostream * getStream () const
 
void setOutputStream (OutputStream *outputStream)
 
OutputStreamgetOutputStream ()
 
const OutputStreamgetOutputStream () const
 
void setSupportBinaryBrackets (bool b)
 
bool getSupportBinaryBrackets () const
 
virtual bool isBinary () const =0
 
virtual void writeBool (bool b)=0
 
virtual void writeChar (char c)=0
 
virtual void writeUChar (unsigned char c)=0
 
virtual void writeShort (short s)=0
 
virtual void writeUShort (unsigned short s)=0
 
virtual void writeInt (int i)=0
 
virtual void writeUInt (unsigned int i)=0
 
virtual void writeLong (long l)=0
 
virtual void writeULong (unsigned long l)=0
 
virtual void writeInt64 (GLint64 ll)=0
 
virtual void writeUInt64 (GLuint64 ull)=0
 
virtual void writeFloat (float f)=0
 
virtual void writeDouble (double d)=0
 
virtual void writeString (const std::string &s)=0
 
virtual void writeStream (std::ostream &(*fn)(std::ostream &))=0
 
virtual void writeBase (std::ios_base &(*fn)(std::ios_base &))=0
 
virtual void writeGLenum (const ObjectGLenum &value)=0
 
virtual void writeProperty (const ObjectProperty &prop)=0
 
virtual void writeMark (const ObjectMark &mark)=0
 
virtual void writeCharArray (const char *s, unsigned int size)=0
 
virtual void writeWrappedString (const std::string &str)=0
 
virtual void flush ()
 
- Public Member Functions inherited from osg::Referenced
 Referenced ()
 
 Referenced (bool threadSafeRefUnref)
 Deprecated, Referenced is now always uses thread safe ref/unref, use default Referenced() constructor instead. More...
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool)
 Deprecated, Referenced is always theadsafe so there method now has no effect and does not need to be called. More...
 
bool getThreadSafeRefUnref () const
 Get whether a mutex is used to ensure ref() and unref() are thread safe. More...
 
OpenThreads::MutexgetRefMutex () const
 Get the mutex used to ensure thread safety of ref()/unref(). More...
 
int ref () const
 Increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
int unref () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int unref_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is no longer referencing it. More...
 
int referenceCount () const
 Return the number of pointers currently referencing this object. More...
 
ObserverSetgetObserverSet () const
 Get the ObserverSet if one is attached, otherwise return NULL. More...
 
ObserverSetgetOrCreateObserverSet () const
 Get the ObserverSet if one is attached, otherwise create an ObserverSet, attach it, then return this newly created ObserverSet. More...
 
void addObserver (Observer *observer) const
 Add a Observer that is observing this object, notify the Observer when this object gets deleted. More...
 
void removeObserver (Observer *observer) const
 Remove Observer that is observing this object. More...
 

Protected Member Functions

bool isEndl (std::ostream &(*fn)(std::ostream &))
 
- Protected Member Functions inherited from osg::Referenced
virtual ~Referenced ()
 
void signalObserversAndDelete (bool signalDelete, bool doDelete) const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

std::ostream * _out
 
osgDB::OutputStream_outputStream
 
bool _supportBinaryBrackets
 
- Protected Attributes inherited from osg::Referenced
OpenThreads::AtomicPtr _observerSet
 
OpenThreads::Atomic _refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from osg::Referenced
static OpenThreads::MutexgetGlobalReferencedMutex ()
 Get the optional global Referenced mutex, this can be shared between all osg::Referenced. More...
 
static void setDeleteHandler (DeleteHandler *handler)
 Set a DeleteHandler to which deletion of all referenced counted objects will be delegated. More...
 
static DeleteHandlergetDeleteHandler ()
 Get a DeleteHandler. More...
 

Constructor & Destructor Documentation

◆ OutputIterator()

osgDB::OutputIterator::OutputIterator ( )
inline

◆ ~OutputIterator()

virtual osgDB::OutputIterator::~OutputIterator ( )
inlinevirtual

Member Function Documentation

◆ flush()

virtual void osgDB::OutputIterator::flush ( )
inlinevirtual

◆ getOutputStream() [1/2]

OutputStream* osgDB::OutputIterator::getOutputStream ( )
inline

◆ getOutputStream() [2/2]

const OutputStream* osgDB::OutputIterator::getOutputStream ( ) const
inline

◆ getStream() [1/2]

std::ostream* osgDB::OutputIterator::getStream ( )
inline

◆ getStream() [2/2]

const std::ostream* osgDB::OutputIterator::getStream ( ) const
inline

◆ getSupportBinaryBrackets()

bool osgDB::OutputIterator::getSupportBinaryBrackets ( ) const
inline

◆ isBinary()

virtual bool osgDB::OutputIterator::isBinary ( ) const
pure virtual

◆ isEndl()

bool osgDB::OutputIterator::isEndl ( std::ostream &(*)(std::ostream &)  fn)
inlineprotected

◆ setOutputStream()

void osgDB::OutputIterator::setOutputStream ( OutputStream outputStream)
inline

◆ setStream()

void osgDB::OutputIterator::setStream ( std::ostream *  ostream)
inline

◆ setSupportBinaryBrackets()

void osgDB::OutputIterator::setSupportBinaryBrackets ( bool  b)
inline

◆ writeBase()

virtual void osgDB::OutputIterator::writeBase ( std::ios_base &(*)(std::ios_base &)  fn)
pure virtual

◆ writeBool()

virtual void osgDB::OutputIterator::writeBool ( bool  b)
pure virtual

◆ writeChar()

virtual void osgDB::OutputIterator::writeChar ( char  c)
pure virtual

◆ writeCharArray()

virtual void osgDB::OutputIterator::writeCharArray ( const char *  s,
unsigned int  size 
)
pure virtual

◆ writeDouble()

virtual void osgDB::OutputIterator::writeDouble ( double  d)
pure virtual

◆ writeFloat()

virtual void osgDB::OutputIterator::writeFloat ( float  f)
pure virtual

◆ writeGLenum()

virtual void osgDB::OutputIterator::writeGLenum ( const ObjectGLenum value)
pure virtual

◆ writeInt()

virtual void osgDB::OutputIterator::writeInt ( int  i)
pure virtual

◆ writeInt64()

virtual void osgDB::OutputIterator::writeInt64 ( GLint64  ll)
pure virtual

◆ writeLong()

virtual void osgDB::OutputIterator::writeLong ( long  l)
pure virtual

◆ writeMark()

virtual void osgDB::OutputIterator::writeMark ( const ObjectMark mark)
pure virtual

◆ writeProperty()

virtual void osgDB::OutputIterator::writeProperty ( const ObjectProperty prop)
pure virtual

◆ writeShort()

virtual void osgDB::OutputIterator::writeShort ( short  s)
pure virtual

◆ writeStream()

virtual void osgDB::OutputIterator::writeStream ( std::ostream &(*)(std::ostream &)  fn)
pure virtual

◆ writeString()

virtual void osgDB::OutputIterator::writeString ( const std::string &  s)
pure virtual

◆ writeUChar()

virtual void osgDB::OutputIterator::writeUChar ( unsigned char  c)
pure virtual

◆ writeUInt()

virtual void osgDB::OutputIterator::writeUInt ( unsigned int  i)
pure virtual

◆ writeUInt64()

virtual void osgDB::OutputIterator::writeUInt64 ( GLuint64  ull)
pure virtual

◆ writeULong()

virtual void osgDB::OutputIterator::writeULong ( unsigned long  l)
pure virtual

◆ writeUShort()

virtual void osgDB::OutputIterator::writeUShort ( unsigned short  s)
pure virtual

◆ writeWrappedString()

virtual void osgDB::OutputIterator::writeWrappedString ( const std::string &  str)
pure virtual

Member Data Documentation

◆ _out

std::ostream* osgDB::OutputIterator::_out
protected

◆ _outputStream

osgDB::OutputStream* osgDB::OutputIterator::_outputStream
protected

◆ _supportBinaryBrackets

bool osgDB::OutputIterator::_supportBinaryBrackets
protected

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