TexGen
Public Member Functions | Protected Attributes | List of all members
TexGen::CProperty Class Reference

#include <Property.h>

Public Member Functions

 CProperty (string SIUnits)
 
void WriteAttribute (TiXmlElement &Element, string AttributeName)
 
void ReadAttribute (TiXmlElement &Element, string AttributeName)
 
string GetString () const
 
double GetValue (string Units) const
 
double GetSIValue () const
 
void SetValue (double dValue, string Units)
 
void SetValue (double dValue)
 
void SetUnits (string Units)
 
void Reset ()
 
double GetValue () const
 
string GetUnits () const
 
string GetSIUnits () const
 
bool IsSet () const
 

Protected Attributes

double m_dValue
 
string m_Units
 
string m_SIUnits
 
bool m_bSet
 

Detailed Description

Definition at line 26 of file Property.h.

Constructor & Destructor Documentation

◆ CProperty()

CProperty::CProperty ( string  SIUnits)

Definition at line 24 of file Property.cpp.

Member Function Documentation

◆ GetSIUnits()

string CProperty::GetSIUnits ( ) const

Definition at line 119 of file Property.cpp.

References m_SIUnits.

◆ GetSIValue()

double CProperty::GetSIValue ( ) const

◆ GetString()

string CProperty::GetString ( ) const

Definition at line 51 of file Property.cpp.

References m_dValue, m_Units, and TexGen::stringify().

◆ GetUnits()

string CProperty::GetUnits ( ) const

Definition at line 114 of file Property.cpp.

References m_Units.

◆ GetValue() [1/2]

double CProperty::GetValue ( ) const

Definition at line 109 of file Property.cpp.

References m_dValue.

Referenced by GetSIValue().

◆ GetValue() [2/2]

double CProperty::GetValue ( string  Units) const

◆ IsSet()

bool CProperty::IsSet ( ) const

◆ ReadAttribute()

void CProperty::ReadAttribute ( TiXmlElement &  Element,
string  AttributeName 
)

◆ Reset()

void CProperty::Reset ( )

Definition at line 102 of file Property.cpp.

References m_bSet, m_dValue, and m_Units.

Referenced by SetUnits(), and SetValue().

◆ SetUnits()

void CProperty::SetUnits ( string  Units)

Definition at line 88 of file Property.cpp.

References TexGen::CompatibleUnits(), m_SIUnits, m_Units, Reset(), and TGERROR.

◆ SetValue() [1/2]

void CProperty::SetValue ( double  dValue)

Definition at line 82 of file Property.cpp.

References m_bSet, and m_dValue.

◆ SetValue() [2/2]

void CProperty::SetValue ( double  dValue,
string  Units 
)

◆ WriteAttribute()

void CProperty::WriteAttribute ( TiXmlElement &  Element,
string  AttributeName 
)

Member Data Documentation

◆ m_bSet

bool TexGen::CProperty::m_bSet
protected

Definition at line 51 of file Property.h.

Referenced by IsSet(), Reset(), SetValue(), and WriteAttribute().

◆ m_dValue

double TexGen::CProperty::m_dValue
protected

Definition at line 48 of file Property.h.

Referenced by GetString(), GetValue(), Reset(), SetValue(), and WriteAttribute().

◆ m_SIUnits

string TexGen::CProperty::m_SIUnits
protected

Definition at line 50 of file Property.h.

Referenced by GetSIUnits(), GetSIValue(), SetUnits(), and SetValue().

◆ m_Units

string TexGen::CProperty::m_Units
protected

Definition at line 49 of file Property.h.

Referenced by GetString(), GetUnits(), GetValue(), Reset(), SetUnits(), SetValue(), and WriteAttribute().


The documentation for this class was generated from the following files: