StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
stdair_date_time_types.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_STDAIR_DATE_TIME_TYPES_HPP
2 #define __STDAIR_STDAIR_DATE_TIME_TYPES_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // Boost (Extended STL)
10 #include <boost/date_time/gregorian/gregorian.hpp>
11 #include <boost/date_time/posix_time/posix_time.hpp>
12 
13 namespace stdair {
14 
15  // //////// Type definitions /////////
17  typedef boost::posix_time::time_duration Duration_T;
18 
20  typedef boost::gregorian::date Date_T;
21 
23  typedef boost::posix_time::time_duration Time_T;
24 
26  typedef boost::posix_time::ptime DateTime_T;
27 
29  typedef boost::gregorian::date_period DatePeriod_T;
30 
32  typedef std::string DOW_String_T;
33 
35  typedef boost::gregorian::date_duration DateOffset_T;
36 
38  typedef int DayDuration_T;
39 
41  typedef bool SaturdayStay_T;
42 
44  typedef long int IntDuration_T;
45 
47  typedef long long int LongDuration_T;
48 
50  typedef float FloatDuration_T;
51 
52 }
53 #endif // __STDAIR_STDAIR_DATE_TIME_TYPES_HPP
boost::posix_time::ptime DateTime_T
Handle on the StdAir library context.
boost::posix_time::time_duration Duration_T
boost::posix_time::time_duration Time_T
boost::gregorian::date Date_T
boost::gregorian::date_period DatePeriod_T
std::string DOW_String_T
boost::gregorian::date_duration DateOffset_T
long long int LongDuration_T
long int IntDuration_T