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

◆ log_callback_t

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

Constructor & Destructor Documentation

◆ Log()

tinygettext::Log::Log ( log_callback_t  callback)

◆ ~Log()

tinygettext::Log::~Log ( )

Member Function Documentation

◆ default_log_callback()

void tinygettext::Log::default_log_callback ( const std::string &  str)
static

◆ get()

std::ostream & tinygettext::Log::get ( )

◆ set_log_error_callback()

void tinygettext::Log::set_log_error_callback ( log_callback_t  callback)
static

◆ set_log_info_callback()

void tinygettext::Log::set_log_info_callback ( log_callback_t  callback)
static

◆ set_log_warning_callback()

void tinygettext::Log::set_log_warning_callback ( log_callback_t  callback)
static

Member Data Documentation

◆ callback

log_callback_t tinygettext::Log::callback
private

◆ log_error_callback

Log::log_callback_t tinygettext::Log::log_error_callback = &Log::default_log_callback
static

◆ log_info_callback

Log::log_callback_t tinygettext::Log::log_info_callback = &Log::default_log_callback
static

◆ log_warning_callback

Log::log_callback_t tinygettext::Log::log_warning_callback = &Log::default_log_callback
static

◆ out

std::ostringstream tinygettext::Log::out
private

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