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

templog::dynamic_write_policy Class Reference

#include <logging.h>

Inheritance diagram for templog::dynamic_write_policy:

templog::non_incremental_write_policy_base< dynamic_write_policy, true > templog::write_policy_base< WritePolicy_, Endl_, Incremental_ > List of all members.

Static Public Member Functions

static bool is_writing (int sev, int aud)
static void write_str (const std::string &str)
static const writer_baseset_writer (const writer_base *pw)

Classes

class  auto_writer
class  writer
class  writer_base
struct  writes

Detailed Description

Pre-defined write policy.

This non-incremental write policy allows switiching of write policies at run-time.

Note:
This disallows filtering at compile-time. All log messages passed to this policy are filtered at run-time.
See also:
visual_studio_formating_policy

Definition at line 674 of file logging.h.


Member Function Documentation

static bool templog::dynamic_write_policy::is_writing int  sev,
int  aud
[inline, static]
 

Definition at line 706 of file logging.h.

References templog::dynamic_write_policy::writer_base::is_writing().

static void templog::dynamic_write_policy::write_str const std::string &  str  )  [inline, static]
 

Definition at line 709 of file logging.h.

References templog::dynamic_write_policy::writer_base::write_str().

static const writer_base* templog::dynamic_write_policy::set_writer const writer_base pw  )  [inline, static]
 

sets a dynamic write policy as the current writer

Returns:
previous write policy, NULL if there isn't one

Definition at line 717 of file logging.h.

Referenced by templog::dynamic_write_policy::auto_writer< WritePolicy_ >::auto_writer(), and templog::dynamic_write_policy::auto_writer< WritePolicy_ >::~auto_writer().


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