LibreOffice Module scaddins (master) 1
Public Member Functions | Private Attributes | List of all members
sca::analysis::ConvertDataLinear Class Referencefinal

#include <analysishelper.hxx>

Inheritance diagram for sca::analysis::ConvertDataLinear:
[legend]
Collaboration diagram for sca::analysis::ConvertDataLinear:
[legend]

Public Member Functions

 ConvertDataLinear (const char pUnitName[], double fConvertConstant, double fConvertOffset, ConvertDataClass eClass, bool bPrefSupport=false)
 
virtual ~ConvertDataLinear () override
 
virtual double Convert (double fVal, const ConvertData &rTo, sal_Int16 nMatchLevelFrom, sal_Int16 nMatchLevelTo) const override
 
double ConvertToBase (double fVal, sal_Int16 nMatchLevel) const
 
virtual double ConvertFromBase (double fVal, sal_Int16 nMatchLevel) const override
 
- Public Member Functions inherited from sca::analysis::ConvertData
 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
 

Private Attributes

double fOffs
 

Additional Inherited Members

- Protected Attributes inherited from sca::analysis::ConvertData
double fConst
 
OUString aName
 
ConvertDataClass eClass
 
bool bPrefixSupport
 

Detailed Description

Definition at line 530 of file analysishelper.hxx.

Constructor & Destructor Documentation

◆ ConvertDataLinear()

sca::analysis::ConvertDataLinear::ConvertDataLinear ( const char  pUnitName[],
double  fConvertConstant,
double  fConvertOffset,
ConvertDataClass  eClass,
bool  bPrefSupport = false 
)
inline

Definition at line 717 of file analysishelper.hxx.

References p.

◆ ~ConvertDataLinear()

sca::analysis::ConvertDataLinear::~ConvertDataLinear ( )
overridevirtual

Definition at line 2187 of file analysishelper.cxx.

Member Function Documentation

◆ Convert()

double sca::analysis::ConvertDataLinear::Convert ( double  fVal,
const ConvertData rTo,
sal_Int16  nMatchLevelFrom,
sal_Int16  nMatchLevelTo 
) const
overridevirtual
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Reimplemented from sca::analysis::ConvertData.

Definition at line 2191 of file analysishelper.cxx.

References sca::analysis::ConvertData::Class(), sca::analysis::ConvertData::ConvertFromBase(), and ConvertToBase().

◆ ConvertFromBase()

double sca::analysis::ConvertDataLinear::ConvertFromBase ( double  fVal,
sal_Int16  nMatchLevel 
) const
overridevirtual

Reimplemented from sca::analysis::ConvertData.

Definition at line 2212 of file analysishelper.cxx.

References sca::analysis::ConvertData::fConst, fOffs, and n.

◆ ConvertToBase()

double sca::analysis::ConvertDataLinear::ConvertToBase ( double  fVal,
sal_Int16  nMatchLevel 
) const

Definition at line 2200 of file analysishelper.cxx.

References sca::analysis::ConvertData::fConst, fOffs, and n.

Referenced by Convert().

Member Data Documentation

◆ fOffs

double sca::analysis::ConvertDataLinear::fOffs
private

Definition at line 532 of file analysishelper.hxx.

Referenced by ConvertFromBase(), and ConvertToBase().


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