SEScalarFrequency.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 FrequencyUnit : public CCompoundUnit
8 {
9 public:
10  FrequencyUnit(const std::string& u) : CCompoundUnit(u) {}
11  virtual ~FrequencyUnit() {}
12 
13  static bool IsValidUnit(const std::string& unit);
14  static const FrequencyUnit& GetCompoundUnit(const std::string& unit);
15 
16  static const FrequencyUnit Per_min;
17  static const FrequencyUnit Per_s;
18  static const FrequencyUnit Hz;
19 };
20 
21 class CDM_DECL SEScalarFrequency : public SEScalarQuantity<FrequencyUnit>
22 {
23 public:
25  virtual ~SEScalarFrequency() {}
26 };
SEScalarFrequency()
Definition: SEScalarFrequency.h:24
FrequencyUnit(const std::string &u)
Definition: SEScalarFrequency.h:10
Definition: SEScalar.h:127
static const FrequencyUnit Hz
Definition: SEScalarFrequency.h:18
static const FrequencyUnit Per_s
Definition: SEScalarFrequency.h:17
Definition: SEScalarFrequency.h:7
Definition: SEScalarFrequency.h:21
Definition: CompoundUnit.h:39
static const FrequencyUnit Per_min
Definition: SEScalarFrequency.h:16
virtual ~FrequencyUnit()
Definition: SEScalarFrequency.h:11
virtual ~SEScalarFrequency()
Definition: SEScalarFrequency.h:25