NCBI C++ ToolKit
|
Search Toolkit Book for CBlastAppDiagHandler
Class to capture message from diag handler. More...
#include <algo/blast/api/blast_aux.hpp>
Public Member Functions | |
CBlastAppDiagHandler () | |
Constructor. More... | |
~CBlastAppDiagHandler () | |
Destructor. More... | |
virtual void | Post (const SDiagMessage &mess) |
Save and post diag message. More... | |
void | ResetMessages (void) |
Reset messgae buffer, erase all saved message. More... | |
void | DoNotSaveMessages (void) |
Call to turn off saving diag message, discard all saved message. More... | |
list< CRef< objects::CBlast4_error > > & | GetMessages (void) |
Return list of saved diag messages. 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 string | GetLogName (void) |
Get current diag posts destination. More... | |
virtual void | Reopen (TReopenFlags) |
Reopen file to enable log rotation. More... | |
Private Attributes | |
CDiagHandler * | m_handler |
list< CRef< objects::CBlast4_error > > | m_messages |
bool | m_save |
Additional Inherited Members | |
Public Types inherited from CDiagHandler | |
enum | EReopenFlags { fTruncate = 0x01 , fCheck = 0x02 , fDefault = 0 } |
typedef int | TReopenFlags |
Class to capture message from diag handler.
Definition at line 248 of file blast_aux.hpp.