Unit conversion parameters. More...
#include <mi32/unitconv.h>
Public Member Functions | |
| UNITCONV (int UnitType, int FromCode=0, int ToCode=0) | |
| UNITCONV (double inscale) | |
| UNITCONV () | |
| void | IniRead (INIHANDLE IniHandle, const char *IniGroup, const char *IniName, int UnitType=-1, int UnitCode=0) |
| void | IniWrite (INIHANDLE IniHandle, const char *IniGroup, const char *IniName) const |
Public Attributes | |
| UINT8 | do_string |
| double | fr_offset |
| UINT8 | from |
| double | scale |
| UINT8 | to |
| double | to_offset |
| UINT8 | type |
Unit conversion parameters.
| UNITCONV::UNITCONV | ( | ) | [inline] |
Default constructor.
| UNITCONV::UNITCONV | ( | double | inscale | ) | [inline, explicit] |
Construct with specified scale.
| UNITCONV::UNITCONV | ( | int | UnitType, | |
| int | FromCode = 0, |
|||
| int | ToCode = 0 | |||
| ) | [inline, explicit] |
Construct with specified unit type and units.
| UnitType | Unit type (UNIT_TYPE_...) | |
| FromCode | Units to convert from specific to type | |
| ToCode | Units to convert to specific to type |
| void UNITCONV::IniRead | ( | INIHANDLE | IniHandle, | |
| const char * | IniGroup, | |||
| const char * | IniName, | |||
| int | UnitType = -1, |
|||
| int | UnitCode = 0 | |||
| ) | [inline] |
Read unit code from INI file and set conversion.
This will set the units to convert TO, unit to convert from will be previous 'from' value.
| void UNITCONV::IniWrite | ( | INIHANDLE | IniHandle, | |
| const char * | IniGroup, | |||
| const char * | IniName | |||
| ) | const [inline] |
Write unit code to INI file.
| double UNITCONV::fr_offset |
Units to convert from, specific to type.
| double UNITCONV::scale |
Scale factor.
Units to convert to, specific to type.
| double UNITCONV::to_offset |
UNIT_TYPE_...
1.6.1