Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::date_time::special_values_parser< date_type, charT > Class Template Reference

Class for special_value parsing. More...

#include <special_values_parser.hpp>

Inheritance diagram for boost::date_time::special_values_parser< date_type, charT >:

Public Types

typedef std::basic_string< charT > string_type
 
typedef
std::istreambuf_iterator
< charT > 
stream_itr_type
 
typedef date_type::duration_type duration_type
 
typedef string_parse_tree< charT > parse_tree_type
 
typedef
parse_tree_type::parse_match_result_type 
match_results
 
typedef std::vector
< std::basic_string< charT > > 
collection_type
 
typedef charT char_type
 

Public Member Functions

 special_values_parser ()
 Creates a special_values_parser with the default set of "sv_strings". More...
 
 special_values_parser (const string_type &nadt_str, const string_type &neg_inf_str, const string_type &pos_inf_str, const string_type &min_dt_str, const string_type &max_dt_str)
 Creates a special_values_parser using a user defined set of element strings. More...
 
 special_values_parser (typename collection_type::iterator beg, typename collection_type::iterator end)
 
 special_values_parser (const special_values_parser< date_type, charT > &svp)
 
void sv_strings (const string_type &nadt_str, const string_type &neg_inf_str, const string_type &pos_inf_str, const string_type &min_dt_str, const string_type &max_dt_str)
 Replace special value strings. More...
 
bool match (stream_itr_type &sitr, stream_itr_type &str_end, match_results &mr) const
 Sets match_results.current_match to the corresponding special_value or -1. More...
 

Static Public Attributes

static const char_type nadt_string [16]
 
static const char_type neg_inf_string [10]
 
static const char_type pos_inf_string [10]
 
static const char_type min_date_time_string [18]
 
static const char_type max_date_time_string [18]
 

Detailed Description

template<class date_type, typename charT>
class boost::date_time::special_values_parser< date_type, charT >

Class for special_value parsing.

TODO: add doc-comments for which elements can be changed Parses input stream for strings representing special_values. Special values parsed are:

  • not_a_date_time
  • neg_infin
  • pod_infin
  • min_date_time
  • max_date_time

Member Typedef Documentation

template<class date_type, typename charT>
typedef charT boost::date_time::special_values_parser< date_type, charT >::char_type
template<class date_type, typename charT>
typedef std::vector<std::basic_string<charT> > boost::date_time::special_values_parser< date_type, charT >::collection_type
template<class date_type, typename charT>
typedef date_type::duration_type boost::date_time::special_values_parser< date_type, charT >::duration_type
template<class date_type, typename charT>
typedef parse_tree_type::parse_match_result_type boost::date_time::special_values_parser< date_type, charT >::match_results
template<class date_type, typename charT>
typedef string_parse_tree<charT> boost::date_time::special_values_parser< date_type, charT >::parse_tree_type
template<class date_type, typename charT>
typedef std::istreambuf_iterator<charT> boost::date_time::special_values_parser< date_type, charT >::stream_itr_type
template<class date_type, typename charT>
typedef std::basic_string<charT> boost::date_time::special_values_parser< date_type, charT >::string_type

Constructor & Destructor Documentation

template<class date_type, typename charT>
boost::date_time::special_values_parser< date_type, charT >::special_values_parser ( )
inline

Creates a special_values_parser with the default set of "sv_strings".

template<class date_type, typename charT>
boost::date_time::special_values_parser< date_type, charT >::special_values_parser ( const string_type nadt_str,
const string_type neg_inf_str,
const string_type pos_inf_str,
const string_type min_dt_str,
const string_type max_dt_str 
)
inline

Creates a special_values_parser using a user defined set of element strings.

template<class date_type, typename charT>
boost::date_time::special_values_parser< date_type, charT >::special_values_parser ( typename collection_type::iterator  beg,
typename collection_type::iterator  end 
)
inline
template<class date_type, typename charT>
boost::date_time::special_values_parser< date_type, charT >::special_values_parser ( const special_values_parser< date_type, charT > &  svp)
inline

Member Function Documentation

template<class date_type, typename charT>
void boost::date_time::special_values_parser< date_type, charT >::sv_strings ( const string_type nadt_str,
const string_type neg_inf_str,
const string_type pos_inf_str,
const string_type min_dt_str,
const string_type max_dt_str 
)
inline

Member Data Documentation

template<class date_type, typename charT>
const special_values_parser< date_type, CharT >::char_type boost::date_time::special_values_parser< date_type, CharT >::max_date_time_string
static
Initial value:
=
{'m','a','x','i','m','u','m','-','d','a','t','e','-','t','i','m','e'}
template<class date_type, typename charT>
const special_values_parser< date_type, CharT >::char_type boost::date_time::special_values_parser< date_type, CharT >::min_date_time_string
static
Initial value:
=
{'m','i','n','i','m','u','m','-','d','a','t','e','-','t','i','m','e'}
template<class date_type, typename charT>
const special_values_parser< date_type, CharT >::char_type boost::date_time::special_values_parser< date_type, CharT >::nadt_string
static
Initial value:
=
{'n','o','t','-','a','-','d','a','t','e','-','t','i','m','e'}
template<class date_type, typename charT>
const special_values_parser< date_type, CharT >::char_type boost::date_time::special_values_parser< date_type, CharT >::neg_inf_string
static
Initial value:
=
{'-','i','n','f','i','n','i','t','y'}
template<class date_type, typename charT>
const special_values_parser< date_type, CharT >::char_type boost::date_time::special_values_parser< date_type, CharT >::pos_inf_string
static
Initial value:
=
{'+','i','n','f','i','n','i','t','y'}

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