getUnitConversionFactor

...

Syntax

//
//   Strong typing definition
//
double          getUnitConversionFactor(
                        SdaiModel               model,
                        const char              * unitType,
                        const char              ** unitPrefix,
                        const char              ** unitName,
                        const char              ** SIUnitName
                    );

static  inline  double  getUnitConversionFactor(
                                SdaiModel               model,
                                char                    * unitType,
                                char                    ** unitPrefix,
                                char                    ** unitName,
                                char                    ** SIUnitName
                            )
{
    return  getUnitConversionFactor(
                    model,
                    (const char*) unitType,
                    (const char**) unitPrefix,
                    (const char**) unitName,
                    (const char**) SIUnitName
                );
}


//
//   Weak typing definition
//
double  __declspec(dllexport) __stdcall getUnitConversionFactor(
                                                int_t                   model,
                                                const char              * unitType,
                                                const char              ** unitPrefix,
                                                const char              ** unitName,
                                                const char              ** SIUnitName
                                            );

static  inline  double  getUnitConversionFactor(
                                int_t                   model,
                                char                    * unitType,
                                char                    ** unitPrefix,
                                char                    ** unitName,
                                char                    ** SIUnitName
                            )
{
    return  getUnitConversionFactor(
                    model,
                    (const char*) unitType,
                    (const char**) unitPrefix,
                    (const char**) unitName,
                    (const char**) SIUnitName
                );
}
    

Property model

Size: 32 bit / 4 byte (value)
The handle to the model. The model handle is static during its existance. Several models can be opened simultaniously within one session. Different models are always independent, threads are allowed to be running on different models simultaniously.

Property unitType

Size: 32 bit / 4 byte (reference)
...

Property unitPrefix

Size: 32 bit / 4 byte (reference)
...

Property unitName

Size: 32 bit / 4 byte (reference)
...

Property SIUnitName

Size: 32 bit / 4 byte (reference)
...