#include <OStream.hpp>
Public Types | |
| enum | Type { standard, error, null, qt_standard, qt_error } |
Public Member Functions | |
| void | setType (const OStream::Type &type) |
| template<typename T> | |
| OStream & | operator<< (const T &t) |
| OStream (const OStream::Type &type) | |
| virtual | ~OStream () |
Private Member Functions | |
| template<typename T> | |
| void | _writes (const T &t) |
Private Attributes | |
| Type | __type |
Definition at line 26 of file OStream.hpp.
| enum OStream::Type |
Definition at line 29 of file OStream.hpp.
00029 { 00030 standard, 00031 error, 00032 null, 00033 qt_standard, 00034 qt_error 00035 };
| OStream::OStream | ( | const OStream::Type & | type | ) | [inline] |
| virtual OStream::~OStream | ( | ) | [inline, virtual] |
| void OStream::_writes | ( | const T & | t | ) | [inline, private] |
Definition at line 41 of file OStream.hpp.
References __type, error, StaticBase< Console >::instance(), null, qt_error, qt_standard, standard, Console::writeError(), and Console::writeStd().
Referenced by operator<<().
00042 { 00043 switch(__type) { 00044 case standard: { 00045 std::cout << t; 00046 break; 00047 } 00048 case error: { 00049 std::cerr << t; 00050 break; 00051 } 00052 case qt_standard: { 00053 Console::instance().writeStd(t); 00054 break; 00055 } 00056 case qt_error: { 00057 Console::instance().writeError(t); 00058 break; 00059 } 00060 case null: { 00061 break; 00062 } 00063 } 00064 }

| void OStream::setType | ( | const OStream::Type & | type | ) | [inline] |
| OStream& OStream::operator<< | ( | const T & | t | ) | [inline] |
Definition at line 73 of file OStream.hpp.
References _writes().
00074 { 00075 this->_writes(t); 00076 return *this; 00077 }

Type OStream::__type [private] |
1.5.6