/usr/include/boost/date_time
NameSizeModeActions
gregorian/-0755rm
local_time/-0755rm
posix_time/-0755rm
adjust_functors.hpp54670644editdlrm
compiler_config.hpp56400644editdlrm
constrained_value.hpp42240644editdlrm
c_local_time_adjustor.hpp26310644editdlrm
c_time.hpp44960644editdlrm
date.hpp73570644editdlrm
date_clock_device.hpp22990644editdlrm
date_defs.hpp7010644editdlrm
date_duration.hpp46690644editdlrm
date_duration_types.hpp91860644editdlrm
date_facet.hpp293140644editdlrm
date_formatting.hpp42080644editdlrm
date_formatting_limited.hpp34610644editdlrm
date_formatting_locales.hpp67480644editdlrm
date_format_simple.hpp31280644editdlrm
date_generators.hpp165080644editdlrm
date_generator_formatter.hpp117150644editdlrm
date_generator_parser.hpp130640644editdlrm
date_iterator.hpp33050644editdlrm
date_names_put.hpp107540644editdlrm
date_parsing.hpp141460644editdlrm
dst_rules.hpp154010644editdlrm
dst_transition_generators.hpp22930644editdlrm
filetime_functions.hpp31630644editdlrm
find_match.hpp13550644editdlrm
format_date_parser.hpp239090644editdlrm
gregorian_calendar.hpp27140644editdlrm
gregorian_calendar.ipp79470644editdlrm
int_adapter.hpp144630644editdlrm
iso_format.hpp56400644editdlrm
locale_config.hpp12060644editdlrm
local_timezone_defs.hpp76180644editdlrm
local_time_adjustor.hpp85780644editdlrm
microsec_time_clock.hpp62570644editdlrm
parse_format_base.hpp9610644editdlrm
period.hpp119360644editdlrm
period_formatter.hpp72370644editdlrm
period_parser.hpp79320644editdlrm
special_defs.hpp6330644editdlrm
special_values_formatter.hpp36570644editdlrm
special_values_parser.hpp61610644editdlrm
strings_from_facet.hpp45050644editdlrm
string_convert.hpp10020644editdlrm
string_parse_tree.hpp84050644editdlrm
time.hpp67880644editdlrm
time_clock.hpp22450644editdlrm
time_defs.hpp9420644editdlrm
time_duration.hpp105690644editdlrm
time_facet.hpp589880644editdlrm
time_formatting_streams.hpp37520644editdlrm
time_iterator.hpp14380644editdlrm
time_parsing.hpp118460644editdlrm
time_resolution_traits.hpp67600644editdlrm
time_system_counted.hpp90510644editdlrm
time_system_split.hpp80770644editdlrm
time_zone_base.hpp37110644editdlrm
time_zone_names.hpp31030644editdlrm
tz_db_base.hpp159150644editdlrm
wrapping_int.hpp58240644editdlrm
year_month_day.hpp13750644editdlrm
Edit: /usr/include/boost/date_time/special_values_formatter.hpp (3657B)
#ifndef DATETIME_SPECIAL_VALUE_FORMATTER_HPP___ #define DATETIME_SPECIAL_VALUE_FORMATTER_HPP___ /* Copyright (c) 2004 CrystalClear Software, Inc. * Use, modification and distribution is subject to the * Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) * Author: Jeff Garland * $Date$ */ #include #include #include #include "boost/date_time/special_defs.hpp" namespace boost { namespace date_time { //! 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. * */ template > > class special_values_formatter { public: typedef std::basic_string string_type; typedef CharT char_type; typedef std::vector collection_type; static const char_type default_special_value_names[3][17]; //! Construct special values formatter using default strings. /*! Default strings are not-a-date-time -infinity +infinity */ special_values_formatter() { std::copy(&default_special_value_names[0], &default_special_value_names[3], std::back_inserter(m_special_value_names)); } //! 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. *@code * const char* const special_value_names[]={"nadt","-inf","+inf" }; * * special_value_formatter svf(&special_value_names[0], &special_value_names[3]); *@endcode */ special_values_formatter(const char_type* const* begin, const char_type* const* end) { std::copy(begin, end, std::back_inserter(m_special_value_names)); } special_values_formatter(typename collection_type::iterator beg, typename collection_type::iterator end) { std::copy(beg, end, std::back_inserter(m_special_value_names)); } OutItrT put_special(OutItrT next, const boost::date_time::special_values& value) const { unsigned int index = value; if (index < m_special_value_names.size()) { std::copy(m_special_value_names[index].begin(), m_special_value_names[index].end(), next); } return next; } protected: collection_type m_special_value_names; }; //! Storage for the strings used to indicate special values /* using c_strings to initialize these worked fine in testing, however, * a project that compiled its objects separately, then linked in a separate * step wound up with redefinition errors for the values in this array. * Initializing individual characters eliminated this problem */ template const typename special_values_formatter::char_type special_values_formatter::default_special_value_names[3][17] = { {'n','o','t','-','a','-','d','a','t','e','-','t','i','m','e'}, {'-','i','n','f','i','n','i','t','y'}, {'+','i','n','f','i','n','i','t','y'} }; } } //namespace boost::date_time #endif