toast::log::HeaderPolicyConcept< Policy > Struct Template Reference
[toast logging library]

#include <toast/log/header_policies.hpp>

List of all members.


Detailed Description

template<typename Policy>
struct toast::log::HeaderPolicyConcept< Policy >

The HeaderPolicyConcept describes the interface of a HeaderPolicy. Currently the library provides three HeaderPolicies: toast::log::no_header, toast::log::microseconds, and toast::log::severity.

As long as a type meets this interface it may be used with the toast::logger class. An HeaderPolicy must have a member function named header that takes an int (or some type that can be created from an int), and return something that can be converted to a std::string.

Public Member Functions

void constraints ()
 Tests that an HeaderPolicy meets the correct interface. Should only be used in accordance with the boost concept library.


The documentation for this struct was generated from the following file:

SourceForge.net Logo