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 namespace JUTC {
15 
16  using JTOOLS::JRange;
17 
18  /**
19  * UTC time range [ns].
20  */
21  class JUTCTimeRange :
22  public JRange<double>
23  {
24  public:
25  /**
26  * Default constructor.
27  */
29  JRange<double>(0.0, 999999999999.9)
30  {}
31 
32 
33  /**
34  * Constructor.
35  *
36  * \param timerange UTC time range
37  */
38  JUTCTimeRange(const JRange<double>& timerange) :
39  JRange<double>(timerange)
40  {}
41 
42 
43  /**
44  * Constructor.
45  *
46  * \param Tmin_ns minimal UTC time
47  * \param Tmax_ns maximal UTC time
48  */
49  JUTCTimeRange(const double Tmin_ns, const double Tmax_ns) :
50  JRange<double>(Tmin_ns, Tmax_ns)
51  {}
52  };
53 }
54 
55 #endif
JUTCTimeRange(const JRange< double > &timerange)
Constructor.
JUTCTimeRange()
Default constructor.
Range of values.
Definition: JRange.hh:33
UTC time range [ns].
Auxiliary class to define a range between two values.
JUTCTimeRange(const double Tmin_ns, const double Tmax_ns)
Constructor.