Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::sinks::file::file_name_composer_adapter< FormatterT > Class Template Reference

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_adapteroperator= (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...
 

Detailed Description

template<typename FormatterT>
class boost::sinks::file::file_name_composer_adapter< FormatterT >

An adapter class that allows to use regular formatters as file name generators.

Member Typedef Documentation

template<typename FormatterT>
typedef FormatterT boost::sinks::file::file_name_composer_adapter< FormatterT >::formatter_type

The adopted formatter type.

File name character type.

template<typename FormatterT>
typedef filesystem::path boost::sinks::file::file_name_composer_adapter< FormatterT >::result_type

Functor result type.

Formatting stream type.

Constructor & Destructor Documentation

template<typename FormatterT>
boost::sinks::file::file_name_composer_adapter< FormatterT >::file_name_composer_adapter ( formatter_type const &  formatter,
std::locale const &  loc = std::locale() 
)
inlineexplicit

Member Function Documentation

template<typename FormatterT>
result_type boost::sinks::file::file_name_composer_adapter< FormatterT >::operator() ( record_view const &  rec) const
inline

The operator generates a file name based on the log record.

References boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::flush().

template<typename FormatterT>
file_name_composer_adapter& boost::sinks::file::file_name_composer_adapter< FormatterT >::operator= ( file_name_composer_adapter< FormatterT > const &  that)
inline

Assignment.


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