class OSGDB_EXPORT osgDB::Output

ofstream wrapper class for adding support for indenting.

Inheritance:


Public Methods

[more] Output()
[more] Output(const char* name)
[more]virtual ~Output()
[more]void open(const char* name)
[more]void open(const char* name, int mode)
[more]Output& indent()
[more]inline const int getIndentStep() const
[more]inline void setIndentStep(int step)
[more]inline const int getIndent() const
[more]inline void setIndent(int indent)
[more]inline const int getNumIndicesPerLine() const
[more]inline void setNumIndicesPerLine(int num)
[more]void moveIn()
[more]void moveOut()
[more]virtual bool writeObject(const osg::Object& obj)
[more]bool getUniqueIDForObject(const osg::Object* obj, std::string& uniqueID)
[more]bool createUniqueIDForObject(const osg::Object* obj, std::string& uniqueID)
[more]bool registerUniqueIDForObject(const osg::Object* obj, std::string& uniqueID)
[more]inline void setPathNameHint(const PathNameHint pnh)
[more]inline const PathNameHint getPathNameHint() const
[more]virtual const std::string getFileNameForOutput(const std::string& filename) const

Public Members

[more]enum PathNameHint

Protected Fields

[more]int _indent
[more]int _indentStep
[more]int _numIndicesPerLine
[more]std::string _filename
[more]PathNameHint _pathNameHint

Protected Methods

[more] Output(const Output&)
[more]Output& operator = (const Output&)
[more]virtual void init()

Protected Members

[more]typedef std::map<const osg::Object*,std::string> UniqueIDToLabelMapping UniqueIDToLabelMapping _objectToUniqueIDMap


Documentation

ofstream wrapper class for adding support for indenting. Used in output of .osg ASCII files to improve their readability.
o Output()

o Output(const char* name)

ovirtual ~Output()

ovoid open(const char* name)

ovoid open(const char* name, int mode)

oOutput& indent()

oinline const int getIndentStep() const

oinline void setIndentStep(int step)

oinline const int getIndent() const

oinline void setIndent(int indent)

oinline const int getNumIndicesPerLine() const

oinline void setNumIndicesPerLine(int num)

ovoid moveIn()

ovoid moveOut()

ovirtual bool writeObject(const osg::Object& obj)

obool getUniqueIDForObject(const osg::Object* obj, std::string& uniqueID)

obool createUniqueIDForObject(const osg::Object* obj, std::string& uniqueID)

obool registerUniqueIDForObject(const osg::Object* obj, std::string& uniqueID)

oenum PathNameHint

o AS_IS

o FULL_PATH

o RELATIVE_PATH

o FILENAME_ONLY

oinline void setPathNameHint(const PathNameHint pnh)

oinline const PathNameHint getPathNameHint() const

ovirtual const std::string getFileNameForOutput(const std::string& filename) const

o Output(const Output&)

oOutput& operator = (const Output&)

ovirtual void init()

oint _indent

oint _indentStep

oint _numIndicesPerLine

otypedef std::map<const osg::Object*,std::string> UniqueIDToLabelMapping UniqueIDToLabelMapping _objectToUniqueIDMap

ostd::string _filename

oPathNameHint _pathNameHint


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.