LibreOffice Module scaddins (master) 1
Public Member Functions | Protected Attributes | Friends | List of all members
sca::analysis::ConvertData Class Reference

#include <analysishelper.hxx>

Inheritance diagram for sca::analysis::ConvertData:
[legend]

Public Member Functions

 ConvertData (const char pUnitName[], double fConvertConstant, ConvertDataClass eClass, bool bPrefSupport=false)
 
virtual ~ConvertData ()
 
sal_Int16 GetMatchingLevel (const OUString &rRef) const
 
virtual double Convert (double fVal, const ConvertData &rTo, sal_Int16 nMatchLevelFrom, sal_Int16 nMatchLevelTo) const
 
virtual double ConvertFromBase (double fVal, sal_Int16 nMatchLevel) const
 
ConvertDataClass Class () const
 

Protected Attributes

double fConst
 
OUString aName
 
ConvertDataClass eClass
 
bool bPrefixSupport
 

Friends

class ConvertDataList
 

Detailed Description

Definition at line 498 of file analysishelper.hxx.

Constructor & Destructor Documentation

◆ ConvertData()

ConvertData::ConvertData ( const char  pUnitName[],
double  fConvertConstant,
ConvertDataClass  eClass,
bool  bPrefSupport = false 
)

Definition at line 2035 of file analysishelper.cxx.

References aName, and p.

◆ ~ConvertData()

ConvertData::~ConvertData ( )
virtual

Definition at line 2043 of file analysishelper.cxx.

Member Function Documentation

◆ Class()

ConvertDataClass ConvertData::Class ( ) const
inline

Definition at line 712 of file analysishelper.hxx.

References eClass.

Referenced by Convert(), sca::analysis::ConvertDataLinear::Convert(), and GetMatchingLevel().

◆ Convert()

double ConvertData::Convert ( double  fVal,
const ConvertData rTo,
sal_Int16  nMatchLevelFrom,
sal_Int16  nMatchLevelTo 
) const
virtual
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Reimplemented in sca::analysis::ConvertDataLinear.

Definition at line 2146 of file analysishelper.cxx.

References sca::analysis::CDC_Information, Class(), and fConst.

Referenced by sca::analysis::ConvertDataList::Convert().

◆ ConvertFromBase()

double ConvertData::ConvertFromBase ( double  fVal,
sal_Int16  nMatchLevel 
) const
virtual

Reimplemented in sca::analysis::ConvertDataLinear.

Definition at line 2182 of file analysishelper.cxx.

References fConst, and n.

Referenced by sca::analysis::ConvertDataLinear::Convert().

◆ GetMatchingLevel()

sal_Int16 ConvertData::GetMatchingLevel ( const OUString &  rRef) const

<HACK> "cm3" is not 10^-2 m^3 but 10^-6 m^3 !!! ---------------—

</HACK> ----------------------------------------------------------------—

Definition at line 2047 of file analysishelper.cxx.

References aName, aStr, bPrefixSupport, sca::analysis::CDC_Information, Class(), INV_MATCHLEV, n, nIndex, and p.

Friends And Related Function Documentation

◆ ConvertDataList

friend class ConvertDataList
friend

Definition at line 501 of file analysishelper.hxx.

Member Data Documentation

◆ aName

OUString sca::analysis::ConvertData::aName
protected

Definition at line 503 of file analysishelper.hxx.

Referenced by GetMatchingLevel().

◆ bPrefixSupport

bool sca::analysis::ConvertData::bPrefixSupport
protected

Definition at line 505 of file analysishelper.hxx.

Referenced by GetMatchingLevel().

◆ eClass

ConvertDataClass sca::analysis::ConvertData::eClass
protected

Definition at line 504 of file analysishelper.hxx.

Referenced by Class().

◆ fConst

double sca::analysis::ConvertData::fConst
protected

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