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

templog::non_incremental_write_policy_base< WritePolicy_, Endl_ > Class Template Reference

#include <logging.h>

Inheritance diagram for templog::non_incremental_write_policy_base< WritePolicy_, Endl_ >:

templog::write_policy_base< WritePolicy_, Endl_, false > List of all members.

Detailed Description

template<class WritePolicy_, bool Endl_>
class templog::non_incremental_write_policy_base< WritePolicy_, Endl_ >

non-incremental write policy base class

Derive from this class to create your own non-incremental write policy. Pass your derived class' type as the first template parameter, and a boolean indicating whether you need a '
' character appended to the end of each log message as the second.

Your derived class needs to implement the meta function template< int Sev_, int Aud_ > struct writes { enum { result = true }; }; which determines whether any given log message is filtered at compile-time, the static function static bool is_writing(int Sev, int Aud); which determines whether a given log message is filtered at run-time, and the function static void write_str(const std::string& str); which writes the log message to the sink.

See also:
write_policy_base

Definition at line 621 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