Pyrogenesis  trunk
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | List of all members
tinygettext::Log Class Reference

#include <log.hpp>

Public Types

typedef void(* log_callback_t) (const std::string &)
 

Public Member Functions

 Log (log_callback_t callback)
 
 ~Log ()
 
std::ostream & get ()
 

Static Public Member Functions

static void default_log_callback (const std::string &str)
 
static void set_log_info_callback (log_callback_t callback)
 
static void set_log_warning_callback (log_callback_t callback)
 
static void set_log_error_callback (log_callback_t callback)
 

Static Public Attributes

static log_callback_t log_info_callback = &Log::default_log_callback
 
static log_callback_t log_warning_callback = &Log::default_log_callback
 
static log_callback_t log_error_callback = &Log::default_log_callback
 

Private Attributes

log_callback_t callback
 
std::ostringstream out
 

Member Typedef Documentation

typedef void(* tinygettext::Log::log_callback_t) (const std::string &)

Constructor & Destructor Documentation

tinygettext::Log::Log ( log_callback_t  callback)
tinygettext::Log::~Log ( )

Member Function Documentation

void tinygettext::Log::default_log_callback ( const std::string &  str)
static
std::ostream & tinygettext::Log::get ( )
void tinygettext::Log::set_log_error_callback ( log_callback_t  callback)
static
void tinygettext::Log::set_log_info_callback ( log_callback_t  callback)
static
void tinygettext::Log::set_log_warning_callback ( log_callback_t  callback)
static

Member Data Documentation

log_callback_t tinygettext::Log::callback
private
Log::log_callback_t tinygettext::Log::log_error_callback = &Log::default_log_callback
static
Log::log_callback_t tinygettext::Log::log_info_callback = &Log::default_log_callback
static
Log::log_callback_t tinygettext::Log::log_warning_callback = &Log::default_log_callback
static
std::ostringstream tinygettext::Log::out
private

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