SEScalarVolume.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 VolumeUnit : public CCompoundUnit
8{
9public:
10 VolumeUnit(const std::string& u) : CCompoundUnit(u) {}
11 virtual ~VolumeUnit() {}
12
13 // Please use static units below
14 VolumeUnit(const VolumeUnit&) = delete;
15 VolumeUnit& operator= (const VolumeUnit&) = delete;
16
17 static bool IsValidUnit(const std::string& unit);
18 static const VolumeUnit& GetCompoundUnit(const std::string& unit);
19
20 static const VolumeUnit L;
21 static const VolumeUnit dL;
22 static const VolumeUnit mL;
23 static const VolumeUnit m3;
24 static const VolumeUnit uL;
25};
26
27class CDM_DECL SEScalarVolume : public SEScalarQuantity<VolumeUnit>
28{
29public:
31 virtual ~SEScalarVolume() {}
32};
Definition: CompoundUnit.h:40
CCompoundUnit & operator=(const CCompoundUnit &rhs)
Definition: CompoundUnit.h:132
Definition: SEScalar.h:208
Definition: SEScalarVolume.h:28
SEScalarVolume()
Definition: SEScalarVolume.h:30
virtual ~SEScalarVolume()
Definition: SEScalarVolume.h:31
Definition: SEScalarVolume.h:8
static const VolumeUnit m3
Definition: SEScalarVolume.h:23
virtual ~VolumeUnit()
Definition: SEScalarVolume.h:11
static const VolumeUnit dL
Definition: SEScalarVolume.h:21
static const VolumeUnit mL
Definition: SEScalarVolume.h:22
static const VolumeUnit L
Definition: SEScalarVolume.h:20
VolumeUnit(const std::string &u)
Definition: SEScalarVolume.h:10
VolumeUnit(const VolumeUnit &)=delete
static const VolumeUnit uL
Definition: SEScalarVolume.h:24

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.