UNITCONV Struct Reference

Unit conversion parameters. More...

#include <mi32/unitconv.h>

List of all members.

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

Detailed Description

Unit conversion parameters.


Constructor & Destructor Documentation

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.

Parameters:
UnitType Unit type (UNIT_TYPE_...)
FromCode Units to convert from specific to type
ToCode Units to convert to specific to type

Member Function Documentation

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.


Member Data Documentation

Units to convert from, specific to type.

Scale factor.

Units to convert to, specific to type.

UNIT_TYPE_...


The documentation for this struct was generated from the following file:

Generated on Sun Oct 7 21:33:58 2012 for TNTsdk 2012 by  doxygen 1.6.1