Changeset 11208 for trunk


Ignore:
Timestamp:
06/29/11 15:14:21 (13 years ago)
Author:
tbretz
Message:
Added a new constructor which takes special_values as argument.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Time.cc

    r10469 r11208  
    4343const _time_format Time::magic  = "%Y %m %d %H %M %S %f";
    4444const _time_format Time::smagic = "%Y %m %d %H %M %S";
    45 
    46 /*
    47  using date_time::special_values;
    48  using date_time::not_special;
    49  using date_time::neg_infin;
    50  using date_time::pos_infin;
    51  using date_time::not_a_date_time;
    52  using date_time::max_date_time;
    53  using date_time::min_date_time;
    54  */
    5545
    5646// --------------------------------------------------------------------------
     
    7767}
    7868
     69
     70// --------------------------------------------------------------------------
     71//
     72//! Construct a Time object with a date_time::special_value, e.g.
     73//!
     74//!  - neg_infin
     75//!  - pos_infin
     76//!  - not_a_date_time
     77//!  - max_date_time
     78//!  - min_date_time
     79//!
     80//!
     81//! @param val
     82//!    date_time::special_value
     83//
     84Time::Time(const boost::date_time::special_values &val) : ptime(val)
     85{
     86}
     87
    7988// --------------------------------------------------------------------------
    8089//
  • trunk/FACT++/src/Time.h

    r10460 r11208  
    6060    // Constructors
    6161    Time(enum init_t type=utc);
     62    Time(const boost::date_time::special_values &val);
    6263    Time(const time_t &tm, const int &ms);
    6364    Time(const ptime &pt) : boost::posix_time::ptime(pt) { }
Note: See TracChangeset for help on using the changeset viewer.