24CProperty::CProperty(
string SIUnits)
36 Element.SetAttribute(AttributeName+
"Units",
m_Units);
44 if (Element.Attribute(AttributeName+
"Value", &dValue) &&
45 (pUnits = Element.Attribute(AttributeName+
"Units")))
78 TGERROR(
"Error setting property: " << Error);
98 TGERROR(
"Error setting property: " << Error);
#define TGERROR(MESSAGE)
Macros used to report the file name and line number to the TexGenError and TexGenLog functions.
void SetUnits(string Units)
void SetValue(double dValue, string Units)
string GetSIUnits() const
double GetSIValue() const
void WriteAttribute(TiXmlElement &Element, string AttributeName)
void ReadAttribute(TiXmlElement &Element, string AttributeName)
Namespace containing a series of customised math operations not found in the standard c++ library.
bool CompatibleUnits(std::string SourceUnits, std::string TargetUnits, std::string *pErrorMessage)
std::string stringify(const T &x, int iPrecision=12, bool bScientific=true)
Function to convert a value (e.g. int, double, etc...) to a string.
double ConvertUnits(double dValue, std::string SourceUnits, std::string TargetUnits)