Class that provides generic formmatting ostream formatting for special values. More...
#include <special_values_formatter.hpp>
Public Types | |
typedef std::basic_string< CharT > | string_type |
typedef CharT | char_type |
typedef std::vector< string_type > | collection_type |
Public Member Functions | |
special_values_formatter () | |
Construct special values formatter using default strings. More... | |
special_values_formatter (const char_type *const *begin, const char_type *const *end) | |
Construct special values formatter from array of strings. More... | |
special_values_formatter (typename collection_type::iterator beg, typename collection_type::iterator end) | |
OutItrT | put_special (OutItrT next, const boost::date_time::special_values &value) const |
Static Public Attributes | |
static const char_type | default_special_value_names [3][17] |
Storage for the strings used to indicate special values. More... | |
Protected Attributes | |
collection_type | m_special_value_names |
Class that provides generic formmatting ostream formatting for special values.
This class provides for the formmating of special values to an output stream. In particular, it produces strings for the values of negative and positive infinity as well as not_a_date_time.
While not a facet, this class is used by the date and time facets for formatting special value types.
typedef CharT boost::date_time::special_values_formatter< CharT, OutItrT >::char_type |
typedef std::vector<string_type> boost::date_time::special_values_formatter< CharT, OutItrT >::collection_type |
typedef std::basic_string<CharT> boost::date_time::special_values_formatter< CharT, OutItrT >::string_type |
|
inline |
Construct special values formatter using default strings.
Default strings are not-a-date-time -infinity +infinity
|
inline |
Construct special values formatter from array of strings.
This constructor will take pair of iterators from an array of strings that represent the special values and copy them for use in formatting special values.
|
inline |
|
inline |
|
static |
Storage for the strings used to indicate special values.
|
protected |