SEScalar.hxx
42 throw CommonDataModelException("SEScalarQuantity<Unit>::Set: Set method called with differnt scalar quantity type");
69 throw CommonDataModelException("SEScalarQuantity<Unit>::Copy: Set method called with differnt scalar quantity type");
84 throw CommonDataModelException("SEScalarQuantity<Unit>::Force: Set method called with differnt scalar quantity type");
108 throw CommonDataModelException("SEScalarQuantity<Unit>::GetValue of " + unit.GetString() + " is NaN");
129 throw CommonDataModelException("SEScalarQuantity<Unit>::GetValue: Provided unit is not of proper quantity type");
185 throw CommonDataModelException("SEScalarQuantity<Unit>::SetValue: Provided unit is not of proper quantity type");
193 throw CommonDataModelException("SEScalarQuantity<Unit>::ForceValue: Provided unit is not of proper quantity type");
212 this->SetValue(d, unit);
214 }
215 this->SetValue(m_value + Convert(d, unit, *m_unit), *m_unit);
224 throw CommonDataModelException("SEScalarQuantity<Unit>::Increment: Provided unit is not of proper quantity type");
226}
230{
233 this->ForceValue(d, unit);
238}
242{
247}
268{
Definition: CompoundUnit.h:40
static double PercentDifference(double expected, double calculated)
Definition: GeneralMath.cpp:218
Definition: SEScalar.h:19
static double Truncate(double value, int decimal_places)
Definition: SEScalar.cpp:255
Definition: SEScalar.h:208
double GetValue() const =delete
void ForceValue(double d, const CCompoundUnit &unit) override
Definition: SEScalar.hxx:189
double GetValue(const CCompoundUnit &unit) const override
Definition: SEScalar.hxx:125
const CCompoundUnit * GetCompoundUnit(const std::string &unit) const override
Definition: SEScalar.hxx:267
void SetValue(double d, const CCompoundUnit &unit) override
Definition: SEScalar.hxx:181
double Increment(double d, const CCompoundUnit &unit) override
Definition: SEScalar.hxx:220
bool Equals(const SEScalar &to) const =delete
double ForceIncrement(double d, const CCompoundUnit &unit) override
Definition: SEScalar.hxx:241
Definition: CommonDefs.h:127