Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Class template format_date_time_actor

boost::log::expressions::format_date_time_actor

Synopsis

// In header: <boost/log/expressions/formatters/date_time.hpp>

template<typename T, typename FallbackPolicyT, typename CharT, 
         template< typename > class ActorT = phoenix::actor> 
class format_date_time_actor : public phoenix::actor< format_date_time_terminal< T, FallbackPolicyT, CharT > >
{
public:
  // types
  typedef T                                                                   value_type;               // Attribute value type. 
  typedef CharT                                                               char_type;                // Character type. 
  typedef FallbackPolicyT                                                     fallback_policy;          // Fallback policy. 
  typedef format_date_time_terminal< value_type, fallback_policy, char_type > terminal_type;            // Base terminal type. 
  typedef terminal_type::formatter_function_type                              formatter_function_type;  // Formatter function. 
  typedef ActorT< terminal_type >                                             base_type;                // Base actor type. 

  // construct/copy/destruct
  explicit format_date_time_actor(base_type const &);

  // public member functions
  attribute_name get_name() const;
  fallback_policy const & get_fallback_policy() const;
  formatter_function_type const & get_formatter_function() const;
};

Description

Date and time formatter actor.

format_date_time_actor public construct/copy/destruct

  1. explicit format_date_time_actor(base_type const & act);
    Initializing constructor.

format_date_time_actor public member functions

  1. attribute_name get_name() const;

    Returns:

    The attribute name

  2. fallback_policy const & get_fallback_policy() const;

    Returns:

    Fallback policy

  3. formatter_function_type const & get_formatter_function() const;

    Returns:

    Formatter function


PrevUpHomeNext