Date and time formatter terminal. More...
#include <date_time.hpp>
Public Types | |
typedef void | _is_boost_log_terminal |
Internal typedef for type categorization. More... | |
typedef T | value_type |
Attribute value type. More... | |
typedef FallbackPolicyT | fallback_policy |
Fallback policy. More... | |
typedef CharT | char_type |
Character type. More... | |
typedef std::basic_string < char_type > | string_type |
String type. More... | |
typedef basic_formatting_ostream < char_type > | stream_type |
Formatting stream type. More... | |
typedef boost::log::aux::light_function < void(stream_type &, value_type const &) > | formatter_function_type |
Formatter function. More... | |
typedef string_type | result_type |
Function result type. More... | |
Public Member Functions | |
format_date_time_terminal (attribute_name const &name, fallback_policy const &fallback, string_type const &format) | |
Initializing constructor. More... | |
format_date_time_terminal (format_date_time_terminal const &that) | |
Copy constructor. More... | |
attribute_name | get_name () const |
Returns attribute name. More... | |
fallback_policy const & | get_fallback_policy () const |
Returns fallback policy. More... | |
formatter_function_type const & | get_formatter_function () const |
Retruns formatter function. More... | |
template<typename ContextT > | |
result_type | operator() (ContextT const &ctx) |
Invokation operator. More... | |
template<typename ContextT > | |
result_type | operator() (ContextT const &ctx) const |
Invokation operator. More... | |
Date and time formatter terminal.
typedef void boost::expressions::format_date_time_terminal< T, FallbackPolicyT, CharT >::_is_boost_log_terminal |
Internal typedef for type categorization.
typedef CharT boost::expressions::format_date_time_terminal< T, FallbackPolicyT, CharT >::char_type |
Character type.
typedef FallbackPolicyT boost::expressions::format_date_time_terminal< T, FallbackPolicyT, CharT >::fallback_policy |
Fallback policy.
typedef boost::log::aux::light_function< void (stream_type&, value_type const&) > boost::expressions::format_date_time_terminal< T, FallbackPolicyT, CharT >::formatter_function_type |
Formatter function.
typedef string_type boost::expressions::format_date_time_terminal< T, FallbackPolicyT, CharT >::result_type |
Function result type.
typedef basic_formatting_ostream< char_type > boost::expressions::format_date_time_terminal< T, FallbackPolicyT, CharT >::stream_type |
Formatting stream type.
typedef std::basic_string< char_type > boost::expressions::format_date_time_terminal< T, FallbackPolicyT, CharT >::string_type |
String type.
typedef T boost::expressions::format_date_time_terminal< T, FallbackPolicyT, CharT >::value_type |
Attribute value type.
|
inline |
Initializing constructor.
|
inline |
Copy constructor.
|
inline |
Returns fallback policy.
References boost::value_visitor_invoker< T, FallbackPolicyT >::get_fallback_policy().
|
inline |
Retruns formatter function.
|
inline |
Returns attribute name.
|
inline |
Invokation operator.
References boost::python::args(), boost::phoenix::env(), boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::flush(), boost::move(), and boost::str().
|
inline |
Invokation operator.
References boost::python::args(), boost::phoenix::env(), boost::basic_formatting_ostream< CharT, TraitsT, AllocatorT >::flush(), boost::move(), and boost::str().