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

Search Toolkit Book for CFlatFileMessageReporter

#include "flatfile_message_reporter.hpp"
(Private to src/objtools/flatfile.)

+ Collaboration diagram for CFlatFileMessageReporter:

Public Member Functions

void SetListener (IObjtoolsListener *pMessageListener)
void Report (const string &module, EDiagSev severity, int code, int subcode, const string &text, int lineNum=-1)

Static Public Member Functions

static CFlatFileMessageReporterGetInstance ()

Private Member Functions

 CFlatFileMessageReporter (void)

Private Attributes

IObjtoolsListenerm_pMessageListener = nullptr

Detailed Description

Definition at line 44 of file flatfile_message_reporter.hpp.

Constructor & Destructor Documentation

◆ CFlatFileMessageReporter()

CFlatFileMessageReporter::CFlatFileMessageReporter ( void  )

Definition at line 48 of file flatfile_message_reporter.cpp.

Member Function Documentation

◆ GetInstance()

CFlatFileMessageReporter & CFlatFileMessageReporter::GetInstance ( void  )

◆ Report()

void CFlatFileMessageReporter::Report ( const string module,
EDiagSev  severity,
int  code,
int  subcode,
const string text,
int  lineNum = -1 

Definition at line 57 of file flatfile_message_reporter.cpp.

References m_pMessageListener, IObjtoolsListener::PutMessage(), and text().

Referenced by Nlm_ErrPostEx().

◆ SetListener()

void CFlatFileMessageReporter::SetListener ( IObjtoolsListener pMessageListener)

Definition at line 51 of file flatfile_message_reporter.cpp.

References m_pMessageListener.

Referenced by CFlatFileParser::CFlatFileParser().

Member Data Documentation

◆ m_pMessageListener

IObjtoolsListener* CFlatFileMessageReporter::m_pMessageListener = nullptr

Definition at line 59 of file flatfile_message_reporter.hpp.

Referenced by Report(), and SetListener().

The documentation for this class was generated from the following files:
Modified on Wed Jun 19 17:03:53 2024 by rev. 669887