OpenSceneGraph/doc/doc++/osgDB/Output.html

256 lines
11 KiB
HTML
Raw Normal View History

2003-04-18 00:22:51 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class OSGDB_EXPORT osgDB::Output</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.10">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class OSGDB_EXPORT <A HREF="#DOC.DOCU">osgDB::Output</A></H2></H2><BLOCKQUOTE>ofstream wrapper class for adding support for indenting.</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
<param name=classes value="Mstd::ofstream,M,COutput,MOutput.html">
<param name=before value="M,M">
<param name=after value="Md_,M">
<param name=indent value="0,1">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.29.1">Output</A></B>()
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.29.2">Output</A></B>(const char* name)
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual <B><A HREF="#DOC.2.29.3">~Output</A></B>()
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.29.4">open</A></B>(const char* name)
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Output.html">Output</A>&amp; <B><A HREF="#DOC.2.29.5">indent</A></B>()
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>std::string <B><A HREF="#DOC.2.29.6">wrapString</A></B>(const std::string&amp; str)
2003-04-18 00:22:51 +08:00
<DD><I>wrap a string with "" quotes and use \" for any internal quotes</I>
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.29.7">setIndentStep</A></B>(int step)
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline int <B><A HREF="#DOC.2.29.8">getIndentStep</A></B>() const
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.29.9">setIndent</A></B>(int <!1><A HREF="Output.html#DOC.2.29.5">indent</A>)
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline int <B><A HREF="#DOC.2.29.10">getIndent</A></B>() const
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.29.11">setNumIndicesPerLine</A></B>(int num)
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline int <B><A HREF="#DOC.2.29.12">getNumIndicesPerLine</A></B>() const
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.29.13">moveIn</A></B>()
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.29.14">moveOut</A></B>()
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual bool <B><A HREF="#DOC.2.29.15">writeObject</A></B>(const osg::Object&amp; obj)
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.29.16">getUniqueIDForObject</A></B>(const osg::Object* obj, std::string&amp; uniqueID)
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.29.17">createUniqueIDForObject</A></B>(const osg::Object* obj, std::string&amp; uniqueID)
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.29.18">registerUniqueIDForObject</A></B>(const osg::Object* obj, std::string&amp; uniqueID)
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.29.20">setPathNameHint</A></B>(const <!1><A HREF="Output.html#DOC.2.29.19">PathNameHint</A> pnh)
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Output.html#DOC.2.29.19">PathNameHint</A> <B><A HREF="#DOC.2.29.21">getPathNameHint</A></B>() const
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual std::string <B><A HREF="#DOC.2.29.22">getFileNameForOutput</A></B>(const std::string&amp; filename) const
2003-04-18 00:22:51 +08:00
</DL></P>
<P><DL>
<DT><H3>Public Members</H3><DD><DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.29.19">PathNameHint</A></B>
2003-04-18 00:22:51 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Fields</H3><DD><DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.29.24">_indent</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.29.25">_indentStep</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.2.29.26">_numIndicesPerLine</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Output.html#DOC.2.29.27">UniqueIDToLabelMapping</A> <B><A HREF="#DOC.2.29.28">_objectToUniqueIDMap</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>std::string <B><A HREF="#DOC.2.29.29">_filename</A></B>
2003-04-18 00:22:51 +08:00
<DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif><!1><A HREF="Output.html#DOC.2.29.19">PathNameHint</A> <B><A HREF="#DOC.2.29.30">_pathNameHint</A></B>
2003-04-18 00:22:51 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Methods</H3><DD><DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual void <B><A HREF="#DOC.2.29.23">init</A></B>()
2003-04-18 00:22:51 +08:00
</DL></P>
<P><DL>
<DT><H3>Protected Members</H3><DD><DT>
2003-07-23 19:27:31 +08:00
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>typedef std::map&lt;const osg::Object*,std::string&gt; <B><A HREF="#DOC.2.29.27">UniqueIDToLabelMapping</A></B>
2003-04-18 00:22:51 +08:00
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>ofstream wrapper class for adding support for indenting.
Used in output of .osg ASCII files to improve their readability.</BLOCKQUOTE>
<DL>
<A NAME="Output"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.1"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Output()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="Output"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.2"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Output(const char* name)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="~Output"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.3"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual ~Output()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="open"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.4"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void open(const char* name)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="indent"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.5"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Output.html">Output</A>&amp; indent()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="wrapString"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.6"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>std::string wrapString(const std::string&amp; str)</B></TT>
<DD>wrap a string with "" quotes and use \" for any internal quotes
<DL><DT><DD></DL><P>
<A NAME="setIndentStep"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.7"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setIndentStep(int step)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getIndentStep"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.8"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline int getIndentStep() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setIndent"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setIndent(int <!1><A HREF="Output.html#DOC.2.29.5">indent</A>)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="getIndent"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.10"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline int getIndent() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setNumIndicesPerLine"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.11"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setNumIndicesPerLine(int num)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getNumIndicesPerLine"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.12"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline int getNumIndicesPerLine() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="moveIn"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.13"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void moveIn()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="moveOut"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.14"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void moveOut()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="writeObject"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.15"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual bool writeObject(const osg::Object&amp; obj)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getUniqueIDForObject"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.16"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool getUniqueIDForObject(const osg::Object* obj, std::string&amp; uniqueID)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="createUniqueIDForObject"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.17"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool createUniqueIDForObject(const osg::Object* obj, std::string&amp; uniqueID)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="registerUniqueIDForObject"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.18"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool registerUniqueIDForObject(const osg::Object* obj, std::string&amp; uniqueID)</B></TT>
<DL><DT><DD></DL><P>
<A NAME="PathNameHint"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.19"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum PathNameHint</B></TT>
<DL><DT><DD></DL><P><DL>
<A NAME="AS_IS"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.19.1"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> AS_IS</B></TT>
<DL><DT><DD></DL><P>
<A NAME="FULL_PATH"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.19.2"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> FULL_PATH</B></TT>
<DL><DT><DD></DL><P>
<A NAME="RELATIVE_PATH"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.19.3"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> RELATIVE_PATH</B></TT>
<DL><DT><DD></DL><P>
<A NAME="FILENAME_ONLY"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.19.4"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> FILENAME_ONLY</B></TT>
<DL><DT><DD></DL><P></DL>
<A NAME="setPathNameHint"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.20"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setPathNameHint(const <!1><A HREF="Output.html#DOC.2.29.19">PathNameHint</A> pnh)</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="getPathNameHint"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.21"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Output.html#DOC.2.29.19">PathNameHint</A> getPathNameHint() const </B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="getFileNameForOutput"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.22"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual std::string getFileNameForOutput(const std::string&amp; filename) const </B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="init"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.23"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual void init()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_indent"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.24"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _indent</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_indentStep"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.25"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _indentStep</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_numIndicesPerLine"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.26"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int _numIndicesPerLine</B></TT>
<DL><DT><DD></DL><P>
<A NAME="UniqueIDToLabelMapping"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.27"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>typedef std::map&lt;const osg::Object*,std::string&gt; UniqueIDToLabelMapping</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_objectToUniqueIDMap"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.28"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Output.html#DOC.2.29.27">UniqueIDToLabelMapping</A> _objectToUniqueIDMap</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P>
<A NAME="_filename"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.29"></A>
2003-04-18 00:22:51 +08:00
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>std::string _filename</B></TT>
<DL><DT><DD></DL><P>
<A NAME="_pathNameHint"></A>
2003-07-23 19:27:31 +08:00
<A NAME="DOC.2.29.30"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B><!1><A HREF="Output.html#DOC.2.29.19">PathNameHint</A> _pathNameHint</B></TT>
2003-04-18 00:22:51 +08:00
<DL><DT><DD></DL><P></DL>
<HR><DL><DT><B>This class has no child classes.</B></DL>
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>