fesa::FrameworkDiagnostics Class Reference

Framework side diagnostic infrastructure. More...

#include <FrameworkDiagnostics.h>

List of all members.

Public Member Functions

 FrameworkDiagnostics ()
 Constructor.
 ~FrameworkDiagnostics ()
 Destructor.
const
DiagnosticUtils::DiagnosticTopics
getTopics () const
 Get diagnostic topics.
void log (const std::string &topic, DiagnosticUtils::DiagnosticMessage &diagMsg)
 Log a diagnostic message.
void enable (const std::string &topic) const
 Enable logging for the given topic.
void disable (const std::string &topic) const
 Disable logging for the given topic.

Private Member Functions

FrameworkDiagnosticsoperator= (const FrameworkDiagnostics &diagnostics)

Private Attributes

DiagnosticUtils::DiagnosticTopics topics_
std::map< std::string, int64_t > messageCounters_

Detailed Description

Framework side diagnostic infrastructure.

Definition at line 16 of file FrameworkDiagnostics.h.


Constructor & Destructor Documentation

fesa::FrameworkDiagnostics::FrameworkDiagnostics (  ) 
fesa::FrameworkDiagnostics::~FrameworkDiagnostics (  ) 

Destructor.

Definition at line 41 of file FrameworkDiagnostics.cpp.


Member Function Documentation

void fesa::FrameworkDiagnostics::disable ( const std::string &  topic  )  const

Disable logging for the given topic.

Parameters:
[in] topic The diagnostic topic to disable logging for

Definition at line 75 of file FrameworkDiagnostics.cpp.

References fesa::DiagnosticUtils::fwkDiagLoggerNamePrefix.

Referenced by fesa::Diagnostics::disable().

void fesa::FrameworkDiagnostics::enable ( const std::string &  topic  )  const

Enable logging for the given topic.

Parameters:
[in] topic The diagnostic topic to enable logging for

Definition at line 67 of file FrameworkDiagnostics.cpp.

References fesa::DiagnosticUtils::fwkDiagLoggerNamePrefix.

Referenced by fesa::Diagnostics::enable().

const DiagnosticUtils::DiagnosticTopics & fesa::FrameworkDiagnostics::getTopics (  )  const

Get diagnostic topics.

Returns:
List of diagnostic topics

Definition at line 47 of file FrameworkDiagnostics.cpp.

References topics_.

Referenced by fesa::Diagnostics::getTopics().

void fesa::FrameworkDiagnostics::log ( const std::string &  topic,
DiagnosticUtils::DiagnosticMessage diagMsg 
)

Log a diagnostic message.

Parameters:
[in] topic The diagnostic topic which the diagnostic message is concerned with
[in] diagnosticMessage The diagnostic message to log

Definition at line 54 of file FrameworkDiagnostics.cpp.

References fesa::DiagnosticUtils::DiagnosticMessage::count, fesa::DiagnosticUtils::formatMessage(), fesa::DiagnosticUtils::fwkDiagLoggerNamePrefix, and messageCounters_.

Referenced by fesa::Diagnostics::log().

FrameworkDiagnostics& fesa::FrameworkDiagnostics::operator= ( const FrameworkDiagnostics diagnostics  )  [private]

Member Data Documentation

std::map<std::string, int64_t> fesa::FrameworkDiagnostics::messageCounters_ [private]

Definition at line 52 of file FrameworkDiagnostics.h.

Referenced by log().

Definition at line 51 of file FrameworkDiagnostics.h.

Referenced by FrameworkDiagnostics(), and getTopics().


The documentation for this class was generated from the following files:

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1