SEScalarLength.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 LengthUnit : public CCompoundUnit
8 {
9 public:
10  LengthUnit(const std::string& u) : CCompoundUnit(u) {}
11  virtual ~LengthUnit() {}
12 
13  static bool IsValidUnit(const std::string& unit);
14  static const LengthUnit& GetCompoundUnit(const std::string& unit);
15 
16  static const LengthUnit m;
17  static const LengthUnit cm;
18  static const LengthUnit mm;
19  static const LengthUnit um;
20  static const LengthUnit in;
21  static const LengthUnit ft;
22 };
23 
24 class CDM_DECL SEScalarLength : public SEScalarQuantity<LengthUnit>
25 {
26 public:
28  virtual ~SEScalarLength() {}
29 };
SEScalarLength()
Definition: SEScalarLength.h:27
static const LengthUnit mm
Definition: SEScalarLength.h:18
Definition: SEScalar.h:127
static const LengthUnit in
Definition: SEScalarLength.h:20
static const LengthUnit um
Definition: SEScalarLength.h:19
virtual ~SEScalarLength()
Definition: SEScalarLength.h:28
static const LengthUnit m
Definition: SEScalarLength.h:16
static const LengthUnit cm
Definition: SEScalarLength.h:17
virtual ~LengthUnit()
Definition: SEScalarLength.h:11
static const LengthUnit ft
Definition: SEScalarLength.h:21
Definition: SEScalarLength.h:24
Definition: SEScalarLength.h:7
LengthUnit(const std::string &u)
Definition: SEScalarLength.h:10
Definition: CompoundUnit.h:39