casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Namespaces | Defines
ModcompConversion.h File Reference

Go to the source code of this file.

Classes

class  casa::ModcompConversion
 Static functions to convert Modcomp numeric formats. More...

Namespaces

namespace  casa
 this file contains all the compiler specific defines

Defines

#define SIZE_MODCOMP_CHAR
 Define the canonical sizes of the built-in data types.
#define SIZE_MODCOMP_UCHAR
#define SIZE_MODCOMP_SHORT
#define SIZE_MODCOMP_USHORT
#define SIZE_MODCOMP_INT
#define SIZE_MODCOMP_UINT
#define SIZE_MODCOMP_INT64
#define SIZE_MODCOMP_UINT64
#define SIZE_MODCOMP_FLOAT
#define SIZE_MODCOMP_DOUBLE
#define CONVERT_MODCOMP_CHAR
 Define for each data format if a conversion is needed from the ModComp format to the local format (or vice-versa).
#define CONVERT_MODCOMP_UCHAR
#define CONVERT_MODCOMP_SHORT
 Conversion is needed for little endian architectures (like DEC and Intel), because the bytes have to be swapped (thus not for data with length 1).
#define CONVERT_MODCOMP_USHORT
#define CONVERT_MODCOMP_INT
#define CONVERT_MODCOMP_UINT
#define CONVERT_MODCOMP_INT64
#define CONVERT_MODCOMP_UINT64
#define CONVERT_MODCOMP_FLOAT
 Conversion is always needed for floating point data.
#define CONVERT_MODCOMP_DOUBLE

Define Documentation

Define for each data format if a conversion is needed from the ModComp format to the local format (or vice-versa).

This allows for optimizations in, for example, AipsIO.

The ModComp format is ASCII for strings, a proprietary floating point format and 2-complement for integers (all most significant bit first) with the lengths as shown above.

Change the definitions below if new architectures (whith different lengths for these integer types) are being used.

Definition at line 61 of file ModcompConversion.h.

Definition at line 84 of file ModcompConversion.h.

Conversion is always needed for floating point data.

Definition at line 83 of file ModcompConversion.h.

Definition at line 77 of file ModcompConversion.h.

Definition at line 79 of file ModcompConversion.h.

Conversion is needed for little endian architectures (like DEC and Intel), because the bytes have to be swapped (thus not for data with length 1).

Conversion is not needed for integers if the local lengths for Shorts and Ints is 2,4 respectively.

Definition at line 75 of file ModcompConversion.h.

Definition at line 62 of file ModcompConversion.h.

Definition at line 78 of file ModcompConversion.h.

Definition at line 80 of file ModcompConversion.h.

Definition at line 76 of file ModcompConversion.h.

Define the canonical sizes of the built-in data types.

These are the same for all machine architectures.

Definition at line 40 of file ModcompConversion.h.

Definition at line 49 of file ModcompConversion.h.

Definition at line 48 of file ModcompConversion.h.

Definition at line 44 of file ModcompConversion.h.

Definition at line 46 of file ModcompConversion.h.

Definition at line 42 of file ModcompConversion.h.

Definition at line 41 of file ModcompConversion.h.

Definition at line 45 of file ModcompConversion.h.

Definition at line 47 of file ModcompConversion.h.

Definition at line 43 of file ModcompConversion.h.