SEScalarFrequency.h
1/* Distributed under the Apache License, Version 2.0.
2 See accompanying NOTICE file for details.*/
3
4#pragma once
5#include "cdm/properties/SEScalar.h"
6
7class CDM_DECL FrequencyUnit : public CCompoundUnit
8{
9public:
10 FrequencyUnit(const std::string& u) : CCompoundUnit(u) {}
11 virtual ~FrequencyUnit() {}
12
13 // Please use static units below
14 FrequencyUnit(const FrequencyUnit&) = delete;
16
17 static bool IsValidUnit(const std::string& unit);
18 static const FrequencyUnit& GetCompoundUnit(const std::string& unit);
19
20 static const FrequencyUnit Per_min;
21 static const FrequencyUnit Per_s;
22 static const FrequencyUnit Hz;
23};
24
25class CDM_DECL SEScalarFrequency : public SEScalarQuantity<FrequencyUnit>
26{
27public:
29 virtual ~SEScalarFrequency() {}
30};
Definition: CompoundUnit.h:40
CCompoundUnit & operator=(const CCompoundUnit &rhs)
Definition: CompoundUnit.h:132
Definition: SEScalarFrequency.h:8
static const FrequencyUnit Per_min
Definition: SEScalarFrequency.h:20
static const FrequencyUnit Per_s
Definition: SEScalarFrequency.h:21
FrequencyUnit(const FrequencyUnit &)=delete
static const FrequencyUnit Hz
Definition: SEScalarFrequency.h:22
virtual ~FrequencyUnit()
Definition: SEScalarFrequency.h:11
FrequencyUnit(const std::string &u)
Definition: SEScalarFrequency.h:10
Definition: SEScalarFrequency.h:26
SEScalarFrequency()
Definition: SEScalarFrequency.h:28
virtual ~SEScalarFrequency()
Definition: SEScalarFrequency.h:29
Definition: SEScalar.h:208

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.