OpenSceneGraph  3.5.1
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 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 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)
 
 Referenced (const Referenced &)
 
Referencedoperator= (const Referenced &)
 
virtual void setThreadSafeRefUnref (bool threadSafe)
 Set whether to use a mutex to ensure ref() and unref() are thread safe. More...
 
bool getThreadSafeRefUnref () const
 Get whether a mutex is used to ensure ref() and unref() are thread safe. More...
 
OpenThreads::Mutex * getRefMutex () 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
 
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::Mutex * getGlobalReferencedMutex ()
 Get the optional global Referenced mutex, this can be shared between all osg::Referenced. More...
 
static void setThreadSafeReferenceCounting (bool enableThreadSafeReferenceCounting)
 Set whether reference counting should use a mutex for thread safe reference counting. More...
 
static bool getThreadSafeReferenceCounting ()
 Get whether reference counting is active. 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

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

Member Function Documentation

virtual void osgDB::OutputIterator::flush ( )
inlinevirtual
std::ostream* osgDB::OutputIterator::getStream ( )
inline
const std::ostream* osgDB::OutputIterator::getStream ( ) const
inline
bool osgDB::OutputIterator::getSupportBinaryBrackets ( ) const
inline
virtual bool osgDB::OutputIterator::isBinary ( ) const
pure virtual
bool osgDB::OutputIterator::isEndl ( std::ostream &(*)(std::ostream &)  fn)
inlineprotected
void osgDB::OutputIterator::setStream ( std::ostream *  ostream)
inline
void osgDB::OutputIterator::setSupportBinaryBrackets ( bool  b)
inline
virtual void osgDB::OutputIterator::writeBase ( std::ios_base &(*)(std::ios_base &)  fn)
pure virtual
virtual void osgDB::OutputIterator::writeBool ( bool  b)
pure virtual
virtual void osgDB::OutputIterator::writeChar ( char  c)
pure virtual
virtual void osgDB::OutputIterator::writeCharArray ( const char *  s,
unsigned int  size 
)
pure virtual
virtual void osgDB::OutputIterator::writeDouble ( double  d)
pure virtual
virtual void osgDB::OutputIterator::writeFloat ( float  f)
pure virtual
virtual void osgDB::OutputIterator::writeGLenum ( const ObjectGLenum value)
pure virtual
virtual void osgDB::OutputIterator::writeInt ( int  i)
pure virtual
virtual void osgDB::OutputIterator::writeLong ( long  l)
pure virtual
virtual void osgDB::OutputIterator::writeMark ( const ObjectMark mark)
pure virtual
virtual void osgDB::OutputIterator::writeProperty ( const ObjectProperty prop)
pure virtual
virtual void osgDB::OutputIterator::writeShort ( short  s)
pure virtual
virtual void osgDB::OutputIterator::writeStream ( std::ostream &(*)(std::ostream &)  fn)
pure virtual
virtual void osgDB::OutputIterator::writeString ( const std::string &  s)
pure virtual
virtual void osgDB::OutputIterator::writeUChar ( unsigned char  c)
pure virtual
virtual void osgDB::OutputIterator::writeUInt ( unsigned int  i)
pure virtual
virtual void osgDB::OutputIterator::writeULong ( unsigned long  l)
pure virtual
virtual void osgDB::OutputIterator::writeUShort ( unsigned short  s)
pure virtual
virtual void osgDB::OutputIterator::writeWrappedString ( const std::string &  str)
pure virtual

Member Data Documentation

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

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

osg logo
Generated at Wed Nov 11 2015 22:14:55 for the OpenSceneGraph by doxygen 1.8.10.