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

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.