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

Search Toolkit Book for CBlastAppDiagHandler

Class to capture message from diag handler. More...

#include <algo/blast/api/blast_aux.hpp>

+ Inheritance diagram for CBlastAppDiagHandler:
+ Collaboration diagram for CBlastAppDiagHandler:

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

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

Detailed Description

Class to capture message from diag handler.

Definition at line 248 of file blast_aux.hpp.

The documentation for this class was generated from the following files:
Modified on Sun Feb 25 03:06:46 2024 by rev. 669887