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

Search Toolkit Book for CMessage_Basic

Default IMessage implementation: text and severity only. More...

#include <corelib/ncbi_message.hpp>

+ Inheritance diagram for CMessage_Basic:
+ Collaboration diagram for CMessage_Basic:

Public Member Functions

 CMessage_Basic (const string &txt, EDiagSev sev, int err_code=0, int sub_code=0)
 
virtual string GetText (void) const
 Get text message. More...
 
virtual EDiagSev GetSeverity (void) const
 Get message severity. More...
 
virtual int GetCode (void) const
 Get error code. Zero = not set. More...
 
virtual int GetSubCode (void) const
 Get error subcode. Zero = not set. More...
 
virtual IMessageClone (void) const
 Create a copy of the message. More...
 
virtual void Write (CNcbiOstream &out) const
 Print the message and any additional information to the stream. More...
 
virtual string Compose (void) const
 Get the whole composed message as string. More...
 
- Public Member Functions inherited from IMessage
virtual ~IMessage (void)
 
- Public Member Functions inherited from IMessage_Base
virtual ~IMessage_Base (void)
 

Private Attributes

string m_Text
 
EDiagSev m_Severity
 
int m_ErrCode
 
int m_SubCode
 

Detailed Description

Default IMessage implementation: text and severity only.

Definition at line 137 of file ncbi_message.hpp.


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:31 2024 by modify_doxy.py rev. 669887