casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
casa::ModcompDataConversion Class Reference

A DataConversion class to convert between Modcomp format. More...

#include <ModcompDataConversion.h>

Inheritance diagram for casa::ModcompDataConversion:
casa::DataConversion

List of all members.

Public Member Functions

 ModcompDataConversion ()
 Construct the object.
virtual ~ModcompDataConversion ()
virtual uInt toLocal (Char &to, const void *from) const
 Convert one value from Modcomp format to local format.
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
 Convert nr values from Modcomp format to local format.
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
 Convert one value from local format to Modcomp format.
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
 Convert nr values from local format to ModComp format.
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
 Determine if the data for a data type can be simply copied, thus if no conversion is needed.
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
 Get the external size of the data type.
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

Detailed Description

A DataConversion class to convert between Modcomp format.

Intended use:

Public interface

 <h3>Review Status</h3><dl><dt>Date Reviewed:<dd>yyyy/mm/dd</dl> 

<h3>Synopsis</h3>
This class is a specialization of the abstract base class
  \link casa::DataConversion DataConversion \endlink .
It contains functions to convert data from/to the Modcomp format
using the static functions in class 
\link casa::ModcompConversion   ModcompConversion \endlink .

<h3>Example</h3> @anchor ModcompDataConversion_example
See example in class   \link casa::DataConversion DataConversion \endlink .

<h3>Motivation</h3>
This class is an addition to 
\link casa::ModcompConversion   ModcompConversion \endlink 
to be able to use the conversion functions in a polymorphic way.

<h3>To Do</h3><ul>  <li> Support data type long Double.
</ul>

Definition at line 65 of file ModcompDataConversion.h.


Constructor & Destructor Documentation

Construct the object.

Definition at line 164 of file ModcompDataConversion.h.


Member Function Documentation

virtual Bool casa::ModcompDataConversion::canCopy ( const Char ) const [virtual]

Determine if the data for a data type can be simply copied, thus if no conversion is needed.

Implements casa::DataConversion.

virtual Bool casa::ModcompDataConversion::canCopy ( const uChar ) const [virtual]

Implements casa::DataConversion.

virtual Bool casa::ModcompDataConversion::canCopy ( const Short ) const [virtual]

Implements casa::DataConversion.

virtual Bool casa::ModcompDataConversion::canCopy ( const uShort ) const [virtual]

Implements casa::DataConversion.

virtual Bool casa::ModcompDataConversion::canCopy ( const Int ) const [virtual]

Implements casa::DataConversion.

virtual Bool casa::ModcompDataConversion::canCopy ( const uInt ) const [virtual]

Implements casa::DataConversion.

virtual Bool casa::ModcompDataConversion::canCopy ( const Int64 ) const [virtual]

Implements casa::DataConversion.

virtual Bool casa::ModcompDataConversion::canCopy ( const uInt64 ) const [virtual]

Implements casa::DataConversion.

virtual Bool casa::ModcompDataConversion::canCopy ( const Float ) const [virtual]

Implements casa::DataConversion.

virtual Bool casa::ModcompDataConversion::canCopy ( const Double ) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::externalSize ( const Char ) const [virtual]

Get the external size of the data type.

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::externalSize ( const uChar ) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::externalSize ( const Short ) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::externalSize ( const uShort ) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::externalSize ( const Int ) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::externalSize ( const uInt ) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::externalSize ( const Int64 ) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::externalSize ( const uInt64 ) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::externalSize ( const Float ) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::externalSize ( const Double ) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
Char  from 
) const [virtual]

Convert one value from local format to Modcomp format.

The from and to buffer should not overlap.

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
uChar  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
Short  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
uShort  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
Int  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
uInt  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
Int64  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
uInt64  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
Float  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
Double  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
const Char from,
uInt  nr 
) const [virtual]

Convert nr values from local format to ModComp format.

The from and to buffer should not overlap.

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
const uChar from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
const Short from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
const uShort from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
const Int from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
const uInt from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
const Int64 from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
const uInt64 from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
const Float from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::fromLocal ( void *  to,
const Double from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( Char to,
const void *  from 
) const [virtual]

Convert one value from Modcomp format to local format.

The from and to buffer should not overlap.

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( uChar to,
const void *  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( Short to,
const void *  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( uShort to,
const void *  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( Int to,
const void *  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( uInt to,
const void *  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( Int64 to,
const void *  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( uInt64 to,
const void *  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( Float to,
const void *  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( Double to,
const void *  from 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( Char to,
const void *  from,
uInt  nr 
) const [virtual]

Convert nr values from Modcomp format to local format.

The from and to buffer should not overlap.

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( uChar to,
const void *  from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( Short to,
const void *  from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( uShort to,
const void *  from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( Int to,
const void *  from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( uInt to,
const void *  from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( Int64 to,
const void *  from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( uInt64 to,
const void *  from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( Float to,
const void *  from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.

virtual uInt casa::ModcompDataConversion::toLocal ( Double to,
const void *  from,
uInt  nr 
) const [virtual]

Implements casa::DataConversion.


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