SEScalarTime.h
1 /* Distributed under the Apache License, Version 2.0.
2  See accompanying NOTICE file for details.*/
3 
4 #pragma once
5 #include "properties/SEScalar.h"
6 
7 class CDM_DECL TimeUnit : public CCompoundUnit
8 {
9 public:
10  TimeUnit(const std::string& u) : CCompoundUnit(u) {}
11  virtual ~TimeUnit() {}
12 
13  static bool IsValidUnit(const std::string& unit);
14  static const TimeUnit& GetCompoundUnit(const std::string& unit);
15 
16  static const TimeUnit s;
17  static const TimeUnit min;
18  static const TimeUnit hr;
19  static const TimeUnit day;
20  static const TimeUnit yr;
21 };
22 
23 class CDM_DECL SEScalarTime : public SEScalarQuantity<TimeUnit>
24 {
25 public:
27  virtual ~SEScalarTime() {}
28 };
static const TimeUnit day
Definition: SEScalarTime.h:19
TimeUnit(const std::string &u)
Definition: SEScalarTime.h:10
static const TimeUnit min
Definition: SEScalarTime.h:17
SEScalarTime()
Definition: SEScalarTime.h:26
Definition: SEScalar.h:127
Definition: SEScalarTime.h:7
virtual ~TimeUnit()
Definition: SEScalarTime.h:11
static const TimeUnit yr
Definition: SEScalarTime.h:20
static const TimeUnit hr
Definition: SEScalarTime.h:18
Definition: SEScalarTime.h:23
static const TimeUnit s
Definition: SEScalarTime.h:16
Definition: CompoundUnit.h:39
virtual ~SEScalarTime()
Definition: SEScalarTime.h:27