Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

osgDB::Output Class Reference

ofstream wrapper class for adding support for indenting. More...

List of all members.

Public Types

enum  PathNameHint { AS_IS, FULL_PATH, RELATIVE_PATH, FILENAME_ONLY }

Public Methods

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

Protected Types

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

Protected Methods

 Output (const Output &)
Output & operator= (const Output &)
virtual void init ()

Protected Attributes

int _indent
int _indentStep
int _numIndicesPerLine
UniqueIDToLabelMapping _objectToUniqueIDMap
std::string _filename
PathNameHint _pathNameHint


Detailed Description

ofstream wrapper class for adding support for indenting.

Used in output of .osg ASCII files to improve their readability.


Member Typedef Documentation

typedef std::map<const osg::Object*,std::string> osgDB::Output::UniqueIDToLabelMapping [protected]
 


Member Enumeration Documentation

enum osgDB::Output::PathNameHint
 

Enumeration values:
AS_IS 
FULL_PATH 
RELATIVE_PATH 
FILENAME_ONLY 


Constructor & Destructor Documentation

osgDB::Output::Output  
 

osgDB::Output::Output const char *    name
 

virtual osgDB::Output::~Output   [virtual]
 

osgDB::Output::Output const Output &    [protected]
 


Member Function Documentation

bool osgDB::Output::createUniqueIDForObject const osg::Object   obj,
std::string &    uniqueID
 

virtual const std::string osgDB::Output::getFileNameForOutput const std::string &    filename const [virtual]
 

const int osgDB::Output::getIndent   const [inline]
 

const int osgDB::Output::getIndentStep   const [inline]
 

const int osgDB::Output::getNumIndicesPerLine   const [inline]
 

const PathNameHint osgDB::Output::getPathNameHint   const [inline]
 

bool osgDB::Output::getUniqueIDForObject const osg::Object   obj,
std::string &    uniqueID
 

Output& osgDB::Output::indent  
 

virtual void osgDB::Output::init   [protected, virtual]
 

void osgDB::Output::moveIn  
 

void osgDB::Output::moveOut  
 

void osgDB::Output::open const char *    name
 

Output& osgDB::Output::operator= const Output &    [protected]
 

bool osgDB::Output::registerUniqueIDForObject const osg::Object   obj,
std::string &    uniqueID
 

void osgDB::Output::setIndent int    indent [inline]
 

void osgDB::Output::setIndentStep int    step [inline]
 

void osgDB::Output::setNumIndicesPerLine int    num [inline]
 

void osgDB::Output::setPathNameHint const PathNameHint    pnh [inline]
 

virtual bool osgDB::Output::writeObject const osg::Object   obj [virtual]
 


Member Data Documentation

std::string osgDB::Output::_filename [protected]
 

int osgDB::Output::_indent [protected]
 

int osgDB::Output::_indentStep [protected]
 

int osgDB::Output::_numIndicesPerLine [protected]
 

UniqueIDToLabelMapping osgDB::Output::_objectToUniqueIDMap [protected]
 

PathNameHint osgDB::Output::_pathNameHint [protected]
 


The documentation for this class was generated from the following file:
Generated at Wed Sep 18 13:55:48 2002 for the Open Scene Graph by doxygen 1.2.16.