#include <S2_Debug.h>
Standard ostream output operators and friend methods | |
| DebugStream & | operator<< (const bool &val) |
| DebugStream & | operator<< (const short &val) |
| DebugStream & | operator<< (const unsigned short &val) |
| DebugStream & | operator<< (const int &val) |
| DebugStream & | operator<< (const unsigned int &val) |
| DebugStream & | operator<< (const long &val) |
| DebugStream & | operator<< (const unsigned long &val) |
| DebugStream & | operator<< (const float &val) |
| DebugStream & | operator<< (const double &val) |
| DebugStream & | operator<< (const long double &val) |
| DebugStream & | operator<< (const void *&val) |
| DebugStream & | operator<< (std::ostream &(*pf)(std::ostream &)) |
| Redefined to insert tabs for endl. | |
| DebugStream & | operator<< (std::ios &(*pf)(std::ios &)) |
| DebugStream & | operator<< (std::ios_base &(*pf)(std::ios_base &)) |
| DebugStream & | operator<< (DebugStream &ds, char ch) |
| DebugStream & | operator<< (DebugStream &ds, signed char ch) |
| DebugStream & | operator<< (DebugStream &ds, unsigned char ch) |
| DebugStream & | operator<< (DebugStream &ds, const char *str) |
| DebugStream & | operator<< (DebugStream &ds, const signed char *str) |
| DebugStream & | operator<< (DebugStream &ds, const unsigned char *str) |
Public Member Functions | |
| DebugStream (const char *file=NULL) | |
| ~DebugStream () | |
| bool | Open (const char *file) |
| void | Close () |
| bool | IsOpen () |
Nested sections management. | |
| void | BeginSection (const char *title=NULL) |
| void | EndSection (const char *endtitle=NULL) |
S2 types output operators. | |
| DebugStream & | operator<< (const V3D &v) |
| DebugStream & | operator<< (const Quat &q) |
| DebugStream & | operator<< (const M3D &m) |
Private Attributes | |
| unsigned int | m_TabLevel |
| Current level of indentation. | |
| std::ofstream | m_Ofstream |
| Internal ofstream used for actual output. | |
The DebugStream class defines most of std::ostream output operators (and friend functions) and new ones for the Saphyre2 specific data types.
Uses an std::ofstream internally to do the final output on a file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Redefined to insert tabs for endl. Captures std::endl calls and inserts current tabulation at the beginning of the next line. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Internal ofstream used for actual output.
|
|
|
Current level of indentation.
|
1.3.5