Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

templog::write_policy_base< WritePolicy_, Endl_, Incremental_ > Class Template Reference

#include <logging.h>

Inheritance diagram for templog::write_policy_base< WritePolicy_, Endl_, Incremental_ >:

templog::incremental_write_policy_base< stderr_write_policy, true > templog::non_incremental_write_policy_base< dynamic_write_policy, true > templog::non_incremental_write_policy_base< windbg_write_policy, true > templog::stderr_write_policy templog::dynamic_write_policy templog::windbg_write_policy List of all members.

Public Types

typedef templ_meta::boolean<
Incremental_ > 
incremental_write_support
typedef templ_meta::boolean<
Endl_ > 
needs_endl

Static Public Member Functions

template<class FormattingPolicy_, int Sev_, int Aud_, class ParamList_>
static void write_msg (TEMPLOG_SOURCE_SIGN, const ParamList_ &parameters)

Detailed Description

template<class WritePolicy_, bool Endl_, bool Incremental_>
class templog::write_policy_base< WritePolicy_, Endl_, Incremental_ >

write policy base class

Write policy determine how and where log messages get written to. They need to closely collaborate with formatting policies, in order to achieve a high degree of inlining and thus performance.

Write policies either allow incremental (e.g. stream-like) writing or non-incremental writing (which need to write a whole log message as one string).

There already are a few pre-defined write policies. If you want to write your own, this class provides all the boiler-plate code for doing so. For convenience, you can derive from either incremental_write_policy_base or non_incremental_write_policy_base.

See also:
formatting_policy_base

incremental_write_policy_base

non_incremental_write_policy_base

Definition at line 564 of file logging.h.


Member Typedef Documentation

template<class WritePolicy_, bool Endl_, bool Incremental_>
typedef templ_meta::boolean<Incremental_> templog::write_policy_base< WritePolicy_, Endl_, Incremental_ >::incremental_write_support
 

Definition at line 566 of file logging.h.

template<class WritePolicy_, bool Endl_, bool Incremental_>
typedef templ_meta::boolean<Endl_> templog::write_policy_base< WritePolicy_, Endl_, Incremental_ >::needs_endl
 

Definition at line 567 of file logging.h.


Member Function Documentation

template<class WritePolicy_, bool Endl_, bool Incremental_>
template<class FormattingPolicy_, int Sev_, int Aud_, class ParamList_>
static void templog::write_policy_base< WritePolicy_, Endl_, Incremental_ >::write_msg TEMPLOG_SOURCE_SIGN  ,
const ParamList_ &  parameters
[inline, static]
 

Definition at line 570 of file logging.h.


The documentation for this class was generated from the following file:
Generated on Sun Jan 11 15:57:20 2009 for templog library by  doxygen 1.4.2