ModcompDataConversion.h
Classes
- ModcompDataConversion -- A DataConversion class to convert between Modcomp format. (full description)
Interface
- Public Members
- ModcompDataConversion()
- virtual ~ModcompDataConversion()
- virtual uInt toLocal (Char& to, const void* from) const
- virtual uInt toLocal (uChar& to, const void* from) const
- virtual uInt toLocal (Short& to, const void* from) const
- virtual uInt toLocal (uShort& to, const void* from) const
- virtual uInt toLocal (Int& to, const void* from) const
- virtual uInt toLocal (uInt& to, const void* from) const
- virtual uInt toLocal (Int64& to, const void* from) const
- virtual uInt toLocal (uInt64& to, const void* from) const
- virtual uInt toLocal (Float& to, const void* from) const
- virtual uInt toLocal (Double& to, const void* from) const
- virtual uInt toLocal (Char* to, const void* from, uInt nr) const
- virtual uInt toLocal (uChar* to, const void* from, uInt nr) const
- virtual uInt toLocal (Short* to, const void* from, uInt nr) const
- virtual uInt toLocal (uShort* to, const void* from, uInt nr) const
- virtual uInt toLocal (Int* to, const void* from, uInt nr) const
- virtual uInt toLocal (uInt* to, const void* from, uInt nr) const
- virtual uInt toLocal (Int64* to, const void* from, uInt nr) const
- virtual uInt toLocal (uInt64* to, const void* from, uInt nr) const
- virtual uInt toLocal (Float* to, const void* from, uInt nr) const
- virtual uInt toLocal (Double* to, const void* from, uInt nr) const
- virtual uInt fromLocal (void* to, Char from) const
- virtual uInt fromLocal (void* to, uChar from) const
- virtual uInt fromLocal (void* to, Short from) const
- virtual uInt fromLocal (void* to, uShort from) const
- virtual uInt fromLocal (void* to, Int from) const
- virtual uInt fromLocal (void* to, uInt from) const
- virtual uInt fromLocal (void* to, Int64 from) const
- virtual uInt fromLocal (void* to, uInt64 from) const
- virtual uInt fromLocal (void* to, Float from) const
- virtual uInt fromLocal (void* to, Double from) const
- virtual uInt fromLocal (void* to, const Char* from, uInt nr) const
- virtual uInt fromLocal (void* to, const uChar* from, uInt nr) const
- virtual uInt fromLocal (void* to, const Short* from, uInt nr) const
- virtual uInt fromLocal (void* to, const uShort* from, uInt nr) const
- virtual uInt fromLocal (void* to, const Int* from, uInt nr) const
- virtual uInt fromLocal (void* to, const uInt* from, uInt nr) const
- virtual uInt fromLocal (void* to, const Int64* from, uInt nr) const
- virtual uInt fromLocal (void* to, const uInt64* from, uInt nr) const
- virtual uInt fromLocal (void* to, const Float* from, uInt nr) const
- virtual uInt fromLocal (void* to, const Double* from, uInt nr) const
- virtual Bool canCopy (const Char*) const
- virtual Bool canCopy (const uChar*) const
- virtual Bool canCopy (const Short*) const
- virtual Bool canCopy (const uShort*) const
- virtual Bool canCopy (const Int*) const
- virtual Bool canCopy (const uInt*) const
- virtual Bool canCopy (const Int64*) const
- virtual Bool canCopy (const uInt64*) const
- virtual Bool canCopy (const Float*) const
- virtual Bool canCopy (const Double*) const
- virtual uInt externalSize (const Char*) const
- virtual uInt externalSize (const uChar*) const
- virtual uInt externalSize (const Short*) const
- virtual uInt externalSize (const uShort*) const
- virtual uInt externalSize (const Int*) const
- virtual uInt externalSize (const uInt*) const
- virtual uInt externalSize (const Int64*) const
- virtual uInt externalSize (const uInt64*) const
- virtual uInt externalSize (const Float*) const
- virtual uInt externalSize (const Double*) const
Review Status
- Date Reviewed:
- yyyy/mm/dd
Synopsis
This class is a specialization of the abstract base class
DataConversion.
It contains functions to convert data from/to the Modcomp format
using the static functions in class
ModcompConversion.
Example
See example in class DataConversion.
Motivation
This class is an addition to
ModcompConversion
to be able to use the conversion functions in a polymorphic way.
To Do
- Support data type long Double.
Member Description
Construct the object.
virtual uInt toLocal (Char& to, const void* from) const
virtual uInt toLocal (uChar& to, const void* from) const
virtual uInt toLocal (Short& to, const void* from) const
virtual uInt toLocal (uShort& to, const void* from) const
virtual uInt toLocal (Int& to, const void* from) const
virtual uInt toLocal (uInt& to, const void* from) const
virtual uInt toLocal (Int64& to, const void* from) const
virtual uInt toLocal (uInt64& to, const void* from) const
virtual uInt toLocal (Float& to, const void* from) const
virtual uInt toLocal (Double& to, const void* from) const
Convert one value from Modcomp format to local format.
The from and to buffer should not overlap.
virtual uInt toLocal (Char* to, const void* from, uInt nr) const
virtual uInt toLocal (uChar* to, const void* from, uInt nr) const
virtual uInt toLocal (Short* to, const void* from, uInt nr) const
virtual uInt toLocal (uShort* to, const void* from, uInt nr) const
virtual uInt toLocal (Int* to, const void* from, uInt nr) const
virtual uInt toLocal (uInt* to, const void* from, uInt nr) const
virtual uInt toLocal (Int64* to, const void* from, uInt nr) const
virtual uInt toLocal (uInt64* to, const void* from, uInt nr) const
virtual uInt toLocal (Float* to, const void* from, uInt nr) const
virtual uInt toLocal (Double* to, const void* from, uInt nr) const
Convert nr values from Modcomp format to local format.
The from and to buffer should not overlap.
virtual uInt fromLocal (void* to, Char from) const
virtual uInt fromLocal (void* to, uChar from) const
virtual uInt fromLocal (void* to, Short from) const
virtual uInt fromLocal (void* to, uShort from) const
virtual uInt fromLocal (void* to, Int from) const
virtual uInt fromLocal (void* to, uInt from) const
virtual uInt fromLocal (void* to, Int64 from) const
virtual uInt fromLocal (void* to, uInt64 from) const
virtual uInt fromLocal (void* to, Float from) const
virtual uInt fromLocal (void* to, Double from) const
Convert one value from local format to Modcomp format.
The from and to buffer should not overlap.
virtual uInt fromLocal (void* to, const Char* from, uInt nr) const
virtual uInt fromLocal (void* to, const uChar* from, uInt nr) const
virtual uInt fromLocal (void* to, const Short* from, uInt nr) const
virtual uInt fromLocal (void* to, const uShort* from, uInt nr) const
virtual uInt fromLocal (void* to, const Int* from, uInt nr) const
virtual uInt fromLocal (void* to, const uInt* from, uInt nr) const
virtual uInt fromLocal (void* to, const Int64* from, uInt nr) const
virtual uInt fromLocal (void* to, const uInt64* from, uInt nr) const
virtual uInt fromLocal (void* to, const Float* from, uInt nr) const
virtual uInt fromLocal (void* to, const Double* from, uInt nr) const
Convert nr values from local format to ModComp format.
The from and to buffer should not overlap.
virtual Bool canCopy (const Char*) const
virtual Bool canCopy (const uChar*) const
virtual Bool canCopy (const Short*) const
virtual Bool canCopy (const uShort*) const
virtual Bool canCopy (const Int*) const
virtual Bool canCopy (const uInt*) const
virtual Bool canCopy (const Int64*) const
virtual Bool canCopy (const uInt64*) const
virtual Bool canCopy (const Float*) const
virtual Bool canCopy (const Double*) const
Determine if the data for a data type can be simply copied, thus
if no conversion is needed.
virtual uInt externalSize (const Char*) const
virtual uInt externalSize (const uChar*) const
virtual uInt externalSize (const Short*) const
virtual uInt externalSize (const uShort*) const
virtual uInt externalSize (const Int*) const
virtual uInt externalSize (const uInt*) const
virtual uInt externalSize (const Int64*) const
virtual uInt externalSize (const uInt64*) const
virtual uInt externalSize (const Float*) const
virtual uInt externalSize (const Double*) const
Get the external size of the data type.