#include <OSGIndenter.h>
Public Member Functions | |
Constructors | |
| * | Indenter (UInt32 indent=0, UInt32 step=4) |
| Indenter (const Indenter &source) | |
Destructor | |
| *virtual | ~Indenter (void) |
Get | |
| *UInt32 | getIndent (void) const |
| UInt32 | getStep (void) const |
| std::string | str (void) const |
Set | |
| *void | setIndent (UInt32 indent) |
| void | setStep (UInt32 step) |
operators | |
| *void | operator++ (int) |
| void | operator++ (void) |
| void | operator-- (int) |
| void | operator-- (void) |
| Indenter & | operator= (const Indenter &source) |
Protected Attributes | |
Member | |
| *UInt32 | _indent |
| UInt32 | _step |
Definition at line 61 of file OSGIndenter.h.
|
||||||||||||
|
Constructor documentation Definition at line 64 of file OSGIndenter.cpp.
|
|
|
Constructor documentation Definition at line 69 of file OSGIndenter.cpp.
|
|
|
Definition at line 78 of file OSGIndenter.cpp.
|
|
|
Definition at line 48 of file OSGIndenter.inl. References _indent. Referenced by osg::StandardStringConversionState::getIndent(), and osg::OSGWriter::writeField(). 00049 { 00050 return _indent; 00051 }
|
|
|
Definition at line 54 of file OSGIndenter.inl. References _step. 00055 { 00056 return _step; 00057 }
|
|
|
Definition at line 60 of file OSGIndenter.inl. References _indent. Referenced by osg::StandardStringConversionState::addValueStr(), and osg::StandardStringConversionState::beginField(). 00061 { 00062 std::string indStr; 00063 00064 for(UInt32 i = 0; i < _indent; i++) 00065 { 00066 indStr.append(" "); 00067 } 00068 00069 return indStr; 00070 }
|
|
|
Definition at line 73 of file OSGIndenter.inl. References _indent. Referenced by osg::StandardStringConversionState::setIndent(), and osg::OSGWriter::write(). 00074 { 00075 _indent = indent; 00076 }
|
|
|
Definition at line 79 of file OSGIndenter.inl. References _step. 00080 { 00081 _step = step; 00082 }
|
|
|
increase indent by _step Definition at line 88 of file OSGIndenter.inl. References _indent, and _step.
|
|
|
increase indent by _step Definition at line 97 of file OSGIndenter.inl. References _indent, and _step.
|
|
|
decrease indent by _step Definition at line 107 of file OSGIndenter.inl. References _indent, and _step.
|
|
|
decrease indent by _step Definition at line 117 of file OSGIndenter.inl. References _indent, and _step.
|
|
|
increase indent by _step Definition at line 85 of file OSGIndenter.cpp. References _indent, and _step. 00086 { 00087 if(this == &source) 00088 return *this; 00089 00090 this->_indent = source._indent; 00091 this->_step = source._step; 00092 00093 return *this; 00094 }
|
|
|
Definition at line 122 of file OSGIndenter.h. Referenced by getIndent(), operator++(), operator--(), operator=(), setIndent(), and str(). |
|
|
Definition at line 123 of file OSGIndenter.h. Referenced by getStep(), operator++(), operator--(), operator=(), and setStep(). |
1.4.3