NCBI C++ ToolKit
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CStreamDiagHandler_Base Class Reference

Search Toolkit Book for CStreamDiagHandler_Base

CStreamDiagHandler_Base –. More...

#include <corelib/ncbidiag.hpp>

+ Inheritance diagram for CStreamDiagHandler_Base:
+ Collaboration diagram for CStreamDiagHandler_Base:

Public Member Functions

 CStreamDiagHandler_Base (void)
 
virtual string GetLogName (void)
 Get current diag posts destination. More...
 
virtual CNcbiOstreamGetStream (void)
 
- Public Member Functions inherited from CDiagHandler
virtual ~CDiagHandler (void)
 Destructor. More...
 
virtual void Post (const SDiagMessage &mess)=0
 Post message to handler. 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...
 

Protected Member Functions

void SetLogName (const string &log_name)
 

Private Attributes

char m_LogName [2048]
 

Additional Inherited Members

- Public Types inherited from CDiagHandler
enum  EReopenFlags { fTruncate = 0x01 , fCheck = 0x02 , fDefault = 0 }
 
typedef int TReopenFlags
 

Detailed Description

CStreamDiagHandler_Base –.

Base class for stream and file based handlers

Definition at line 2573 of file ncbidiag.hpp.


The documentation for this class was generated from the following files:
Modified on Wed Apr 17 13:09:48 2024 by modify_doxy.py rev. 669887