#include <lobtracestream.h>
Inheritance diagram for LobTraceStream::

Public Methods | |
| LobTraceStream (LobTraceProvider *tp=&g_lobTraceProvider) | |
| const char * | getTraceOutput () |
| bool | getXmlTraceOutput (const char *srcString, char *xmlString, const int len) |
| Returns the trace in XML format. More... | |
| int | getContextModule () |
| int | getContextLevel () |
| int | getContextLine () |
| const char * | getContextFile () |
| LobTraceProvider * | getTraceProvider () |
| void | setContextInfo (int module, int level, const char *file, int line) |
| Set trace info needed by the LobTraceProvider. More... | |
| void | setTraceProvider (LobTraceProvider *tp) |
| Specify to which LobTraceProvider the trace buffer will be flushed. More... | |
| LobTraceStream & | operator<< (const int ¶m) |
| concatenates an integer to the trace buffer. More... | |
| LobTraceStream & | operator<< (const char *param) |
| concatenates a char* to the trace buffer. More... | |
| LobTraceStream & | operator<< (const double ¶m) |
| concatenates a double to the trace buffer. More... | |
| LobTraceStream & | operator<< (LobTraceStreamEnd ¶m) |
| this is the trigger that will write the buffer to the stream. More... | |
| void | traceException (int type=0, const char *msg=NULL) |
| writes a formated exception to the stream. More... | |
| virtual void | dump () |
| writes a complete XML description of this instance to cout. More... | |
Protected Attributes | |
| char | m_bufferString [BUFFERSTRING_SIZE] |
| LobTraceProvider * | m_pTraceProvider |
Friends | |
| ostream & | operator<< (ostream &os, LobTraceStream <s) |
| Provides a brief description of this LobTraceStream instance. More... | |
A LobTraceStream will help the user to construct a trace message.
Basicaly the LobTraceStream holds 3 major information: the message text, the module it belongs to, and the traceLevel.
The LobTraceStream will then be sent to the LobTraceProvider in order to be logged in an output stream (file/cout/other)
|
|
|
|
|
writes a complete XML description of this instance to cout.
Reimplemented in LobTraceStreamQt. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
Returns the trace in XML format.
Some characters like " or ' are not valid in XML and must first be replaced by XML tags.
|
|
|
this is the trigger that will write the buffer to the stream.
Reimplemented in LobTraceStreamQt. |
|
|
concatenates a double to the trace buffer.
Reimplemented in LobTraceStreamQt. |
|
|
concatenates a char* to the trace buffer.
Reimplemented in LobTraceStreamQt. |
|
|
concatenates an integer to the trace buffer.
Reimplemented in LobTraceStreamQt. |
|
||||||||||||||||||||
|
Set trace info needed by the LobTraceProvider.
Sets context info that will be used by LobTraceProvider when formating & printing the message.
|
|
|
Specify to which LobTraceProvider the trace buffer will be flushed.
|
|
||||||||||||
|
writes a formated exception to the stream.
|
|
||||||||||||
|
Provides a brief description of this LobTraceStream instance.
|
|
|
|
|
|
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001