20 #define thisTTClass MilesPerHourUnit
21 #define thisTTClassName "unit.milesPerHour"
22 #define thisTTClassTags "dataspace.unit, speed"
28 MilesPerHourUnit::~MilesPerHourUnit(){;}
43 #undef thisTTClassName
44 #undef thisTTClassTags
48 #define thisTTClass KilometerPerHourUnit
49 #define thisTTClassName "unit.kilometerPerHour"
50 #define thisTTClassTags "dataspace.unit, speed"
56 KilometerPerHourUnit::~KilometerPerHourUnit(){;}
71 #undef thisTTClassName
72 #undef thisTTClassTags
76 #define thisTTClass FootPerSecondUnit
77 #define thisTTClassName "unit.footPerSecond"
78 #define thisTTClassTags "dataspace.unit, speed"
84 FootPerSecondUnit::~FootPerSecondUnit(){;}
99 #undef thisTTClassName
100 #undef thisTTClassTags
104 #define thisTTClass KnotUnit
105 #define thisTTClassName "unit.knot"
106 #define thisTTClassTags "dataspace.unit, speed"
112 KnotUnit::~KnotUnit(){;}
127 #undef thisTTClassName
128 #undef thisTTClassTags
132 #define thisTTClass MeterPerSecondUnit
133 #define thisTTClassName "unit.meterPerSecond"
134 #define thisTTClassTags "dataspace.unit, speed"
140 MeterPerSecondUnit::~MeterPerSecondUnit(){;}
155 #undef thisTTClassName
156 #undef thisTTClassTags
160 #define thisTTClass SpeedDataspace
161 #define thisTTClassName "dataspace.speed"
162 #define thisTTClassTags "foundationDataspaceLib, dataspace, speed"
167 registerUnit(
TT(
"unit.milesPerHour"),
TT(
"mph"));
168 registerUnit(
TT(
"unit.milesPerHour"),
TT(
"mi/h"));
169 registerUnit(
TT(
"unit.kilometerPerHour"),
TT(
"km/h"));
170 registerUnit(
TT(
"unit.kilometerPerHour"),
TT(
"kmph"));
171 registerUnit(
TT(
"unit.meterPerSecond"),
TT(
"m/s"));
172 registerUnit(
TT(
"unit.knot"),
TT(
"kn"));
173 registerUnit(
TT(
"unit.footPerSecond"),
TT(
"ft/s"));
174 registerUnit(
TT(
"unit.footPerSecond"),
TT(
"fps"));
176 neutralUnit =
TT(
"m/s");
179 setInputUnit(neutralUnit);
180 setOutputUnit(neutralUnit);
184 SpeedDataspace::~SpeedDataspace()
190 #undef thisTTClassName
191 #undef thisTTClassTags
void convertFromNeutral(const TTValue &input, TTValue &output)
Convert from neutral unit to knot.
void convertToNeutral(const TTValue &input, TTValue &output)
Convert from kilometers per hour to neutral unit.
void convertToNeutral(const TTValue &input, TTValue &output)
Convert from knot to neutral unit.
double TTFloat64
64 bit floating point number
#define TT
This macro is defined as a shortcut for doing a lookup in the symbol table.
void convertToNeutral(const TTValue &input, TTValue &output)
Convert from miles per hour to neutral unit.
The SpeedDataspace converts between different measurement untis describing velocity.
Specification for the base class of each DataspaceUnit.
void convertFromNeutral(const TTValue &input, TTValue &output)
Convert from neutral unit to miles per hour.
void convertFromNeutral(const TTValue &input, TTValue &output)
Convert from neutral unit to meters per second.
void convertFromNeutral(const TTValue &input, TTValue &output)
Convert from neutral unit to radians.
TT_OBJECT_CONSTRUCTOR
Constructor macro.
[doxygenAppendixC_copyExample]
void convertToNeutral(const TTValue &input, TTValue &output)
Convert from meters per second to neutral unit.