![]() |
Scanframe Modular Application 0.1.0
|
#include <gii/global.h>#include <misc/gen/TClosure.h>#include <misc/gen/TVector.h>#include <utility>

Go to the source code of this file.
Classes | |
| struct | sf::UnitConversionEvent |
| Structure passed to handle unit conversions. More... | |
| class | sf::UnitConverter |
| unit conversion class to easy the pain of conversions in dialogs. More... | |
Namespaces | |
| namespace | sf |
Typedefs | |
| typedef TClosure< bool, UnitConversionEvent & > | sf::UnitConversionServerClosure |
| Type of the server callback function. | |
Functions | |
| _GII_FUNC void | sf::setUnitConversionHandler (const UnitConversionServerClosure &closure={}) |
| Sets the callback function for a security server. | |
| _GII_FUNC bool | sf::getUnitConversion (const std::string &option, const std::string &from_unit, int from_precision, double &multiplier, double &offset, std::string &to_unit, int &to_precision) |
| Returns true if a conversion could be made. Calculation to convert are: From -> To calculation: new_value = (value * multiplier) + offset; To -> From calculation: new_value = (value - offset) / multiplier; | |