HermesCommon  2.0
Hermes::Mixins::Loggable Class Reference

Class the output of which is loggable, i.e. that uses functionality of info(), warn() Contains the class Static with the following usage: Anywhere in your program you can write Hermes::Mixins::Loggable::Static::info("whatever you want to output"). More...

#include <mixins.h>

+ Inheritance diagram for Hermes::Mixins::Loggable:

Classes

class  Static
 For static logging in user programs. More...
 

Public Member Functions

void set_verbose_output (bool to_set)
 Sets the attribute verbose_output to the paramater option passed.
 
bool get_verbose_output () const
 Returns the current value of verbose_output;.
 
void set_verbose_callback (callbackFn callback)
 
callbackFn get_verbose_callback () const
 Returns the current value of verbose_callback;.
 

Protected Member Functions

 Loggable (bool verbose_output=false, callbackFn verbose_callback=NULL)
 
void info (const char *msg,...) const
 
void info_if (bool cond, const char *msg,...) const
 
void warn (const char *msg,...) const
 
void warn_if (bool cond, const char *msg,...) const
 
void error (const char *msg,...) const
 
void error_if (bool cond, const char *msg,...) const
 
void hermes_fwrite (const void *ptr, size_t size, size_t nitems, FILE *stream) const
 
void hermes_fread (void *ptr, size_t size, size_t nitems, FILE *stream) const
 

Detailed Description

Class the output of which is loggable, i.e. that uses functionality of info(), warn() Contains the class Static with the following usage: Anywhere in your program you can write Hermes::Mixins::Loggable::Static::info("whatever you want to output").

Definition at line 47 of file mixins.h.

Member Function Documentation

void Hermes::Mixins::Loggable::set_verbose_callback ( callbackFn  callback)

Provides a callback for logging.

Parameters
[in]callbackFunction to be called for the messaging when verbose_output is set to yes.

Definition at line 488 of file mixins.cpp.


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