An adapter class that allows to use regular formatters as file name generators. More...
#include <text_multifile_backend.hpp>
Public Types | |
typedef filesystem::path | result_type |
Functor result type. More... | |
typedef result_type::string_type::value_type | native_char_type |
File name character type. More... | |
typedef FormatterT | formatter_type |
The adopted formatter type. More... | |
typedef basic_formatting_ostream < native_char_type > | stream_type |
Formatting stream type. More... | |
Public Member Functions | |
file_name_composer_adapter (formatter_type const &formatter, std::locale const &loc=std::locale()) | |
Initializing constructor. More... | |
file_name_composer_adapter (file_name_composer_adapter const &that) | |
Copy constructor. More... | |
file_name_composer_adapter & | operator= (file_name_composer_adapter const &that) |
Assignment. More... | |
result_type | operator() (record_view const &rec) const |
The operator generates a file name based on the log record. More... | |
An adapter class that allows to use regular formatters as file name generators.
typedef FormatterT boost::sinks::file::file_name_composer_adapter< FormatterT >::formatter_type |
The adopted formatter type.
typedef result_type::string_type::value_type boost::sinks::file::file_name_composer_adapter< FormatterT >::native_char_type |
File name character type.
typedef filesystem::path boost::sinks::file::file_name_composer_adapter< FormatterT >::result_type |
Functor result type.
typedef basic_formatting_ostream< native_char_type > boost::sinks::file::file_name_composer_adapter< FormatterT >::stream_type |
Formatting stream type.
|
inlineexplicit |
Initializing constructor.
References boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::exceptions(), boost::regex_constants::failbit, and boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::imbue().
|
inline |
|
inline |
The operator generates a file name based on the log record.
References boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::flush().
|
inline |
Assignment.