![]() |
Scanframe Modular Application 0.1.0
|
Structure passed to handle unit conversions. More...
#include <UnitConversion.h>
Public Member Functions | |
UnitConversionEvent (std::string option, std::string from_unit, int from_precision, double &multiplier, double &offset, std::string &to_unit, int &to_precision) | |
Constructor. | |
Public Attributes | |
std::string | _option |
Special conversion option code. | |
std::string | _from_unit |
current unit string. | |
int | _from_precision |
Decimals of current unit. (can be negative) | |
double & | _multiplier |
Multiplication factor. | |
double & | _offset |
offset value. | |
std::string & | _to_unit |
New precision after conversion. | |
int & | _to_precision |
New unit string. | |
Structure passed to handle unit conversions.
|
inline |
Constructor.
int sf::UnitConversionEvent::_from_precision |
Decimals of current unit. (can be negative)
std::string sf::UnitConversionEvent::_from_unit |
current unit string.
double& sf::UnitConversionEvent::_multiplier |
Multiplication factor.
double& sf::UnitConversionEvent::_offset |
offset value.
std::string sf::UnitConversionEvent::_option |
Special conversion option code.
int& sf::UnitConversionEvent::_to_precision |
New unit string.
std::string& sf::UnitConversionEvent::_to_unit |
New precision after conversion.