Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JUTCTimeRange.hh
Go to the documentation of this file.
1 #ifndef __JUTC__JUTCTIMERANGE__
2 #define __JUTC__JUTCTIMERANGE__
3 
4 #include "JTools/JRange.hh"
5 
6 
7 /**
8  * \author mdejong
9  */
10 
11 namespace JUTC {}
12 namespace JPP { using namespace JUTC; }
13 
14 /**
15  * Auxiliaries for handling universal time coordinate (UTC).
16  */
17 namespace JUTC {
18 
19  using JTOOLS::JRange;
20 
21  /**
22  * UTC time range [s].
23  */
24  class JUTCTimeRange :
25  public JRange<double>
26  {
27  public:
28  /**
29  * Default constructor.
30  */
32  JRange<double>(0.0, 999999999999.9)
33  {}
34 
35 
36  /**
37  * Constructor.
38  *
39  * \param timerange UTC time range
40  */
41  JUTCTimeRange(const JRange<double>& timerange) :
42  JRange<double>(timerange)
43  {}
44 
45 
46  /**
47  * Constructor.
48  *
49  * \param Tmin_s minimal UTC time [s]
50  * \param Tmax_s maximal UTC time [s]
51  */
52  JUTCTimeRange(const double Tmin_s, const double Tmax_s) :
53  JRange<double>(Tmin_s, Tmax_s)
54  {}
55  };
56 }
57 
58 #endif
JUTCTimeRange(const JRange< double > &timerange)
Constructor.
JUTCTimeRange()
Default constructor.
JUTCTimeRange(const double Tmin_s, const double Tmax_s)
Constructor.
Range of values.
Definition: JRange.hh:34
UTC time range [s].
Auxiliary class to define a range between two values.