operator()
on the formatters , and operator()
on the destinations.
More...
operator()
on the formatters , and operator()
on the destinations.
Cares for the clear_format()
commands.
msg_type | The message to pass to the formatter. This is the type that is passed to the formatter objects and to the destination objects. Thus, it needs to be convertible to the argument to be sent to the formatter objects and to the argument to be sent to the destination objects. Usually, it's the argument you pass on to your destination classes. |
destination::base
, this type can be destination::base::raw_param
(see below).
string_type | [optional] A class that can hold a string (that is, a copy of the message) |
typedef destination::base<const std::string &> dest_base; // in this case : msg_type = std::string = dest_base::raw_param struct write_to_cout : dest_base { void operator()(param msg) const { std::cout << msg ; } }; typedef destination::base<const std::string &> dest_base; // in this case : msg_type = cache_string = dest_base::raw_param struct write_to_file : dest_base, ... { void operator()(param msg) const { context() << msg ; } };