UNITCONV Struct Reference

Unit conversion parameters. More...

#include <mi32/unitconv.h>

List of all members.

Public Member Functions

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
 UNITCONV (int UnitType, int FromCode=0, int ToCode=0)
 UNITCONV (double inscale)
 UNITCONV ()

Public Attributes

UINT8 do_string
double fr_offset
UINT8 from
double scale
UINT8 to
double to_offset
UINT8 type


Detailed Description

Unit conversion parameters.

Definition at line 72 of file unitconv.h.


Constructor & Destructor Documentation

UNITCONV::UNITCONV (  )  [inline]

Default constructor.

Definition at line 87 of file unitconv.h.

UNITCONV::UNITCONV ( double  inscale  )  [inline, explicit]

Construct with specified scale.

Definition at line 91 of file unitconv.h.

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.

Definition at line 113 of file unitconv.h.


Member Data Documentation

UINT8 UNITCONV::do_string

Definition at line 82 of file unitconv.h.

double UNITCONV::fr_offset

Definition at line 76 of file unitconv.h.

UINT8 UNITCONV::from

Units to convert from, specific to type.

Definition at line 81 of file unitconv.h.

double UNITCONV::scale

Scale factor.

Definition at line 78 of file unitconv.h.

UINT8 UNITCONV::to

Units to convert to, specific to type.

Definition at line 80 of file unitconv.h.

double UNITCONV::to_offset

Definition at line 77 of file unitconv.h.

UINT8 UNITCONV::type

UNIT_TYPE_...

Definition at line 79 of file unitconv.h.


The documentation for this struct was generated from the following file:
Generated on Thu Apr 26 04:47:42 2007 for TNTsdk by  doxygen 1.5.2