NCBI C++ ToolKit
|
Search Toolkit Book for CCompatStreamDiagHandler
Public Member Functions | |
CCompatStreamDiagHandler (CNcbiOstream *os, bool quick_flush=true, FDiagCleanup cleanup=0, void *cleanup_data=0, const string &stream_name=kEmptyStr) | |
~CCompatStreamDiagHandler (void) | |
Public Member Functions inherited from CStreamDiagHandler | |
CStreamDiagHandler (CNcbiOstream *os, bool quick_flush=true, const string &stream_name="") | |
Constructor. More... | |
virtual void | Post (const SDiagMessage &mess) |
Post message to the handler. More... | |
virtual CNcbiOstream * | GetStream (void) |
Public Member Functions inherited from CStreamDiagHandler_Base | |
CStreamDiagHandler_Base (void) | |
virtual string | GetLogName (void) |
Get current diag posts destination. More... | |
Public Member Functions inherited from CDiagHandler | |
virtual | ~CDiagHandler (void) |
Destructor. More... | |
virtual void | PostToConsole (const SDiagMessage &mess) |
Post message to console regardless of its severity. More... | |
virtual bool | AllowAsyncWrite (const SDiagMessage &msg) const |
Check if the handler supports async writes. More... | |
virtual string | ComposeMessage (const SDiagMessage &msg, EDiagFileType *file_type) const |
Compose message without writing it. More... | |
virtual void | WriteMessage (const char *buf, size_t len, EDiagFileType file_type) |
Write string to the log. More... | |
virtual void | Reopen (TReopenFlags) |
Reopen file to enable log rotation. More... | |
Private Attributes | |
FDiagCleanup | m_Cleanup |
void * | m_CleanupData |
Additional Inherited Members | |
Public Types inherited from CDiagHandler | |
enum | EReopenFlags { fTruncate = 0x01 , fCheck = 0x02 , fDefault = 0 } |
typedef int | TReopenFlags |
Protected Member Functions inherited from CStreamDiagHandler_Base | |
void | SetLogName (const string &log_name) |
Protected Attributes inherited from CStreamDiagHandler | |
CNcbiOstream * | m_Stream |
Diagnostic stream. More... | |
Definition at line 8057 of file ncbidiag.cpp.
|
inline |
Definition at line 8060 of file ncbidiag.cpp.
|
inline |
Definition at line 8070 of file ncbidiag.cpp.
References m_Cleanup, and m_CleanupData.
|
private |
Definition at line 8078 of file ncbidiag.cpp.
Referenced by ~CCompatStreamDiagHandler().
|
private |
Definition at line 8079 of file ncbidiag.cpp.
Referenced by ~CCompatStreamDiagHandler().