Loading...
Searching...
No Matches
ModcompConversion.h File Reference
`#include <casacore/casa/aips.h>`
`#include <casacore/casa/Utilities/Assert.h>`
`#include <casacore/casa/OS/CanonicalConversion.h>`

Go to the source code of this file.

## Classes

class | casacore::ModcompConversion
| More...

## Namespaces

namespace | casacore
| this file contains all the compiler specific defines

## Macros

#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

## Macro Definition Documentation

## CONVERT_MODCOMP_CHAR

#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).

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 59 of file ModcompConversion.h.

## CONVERT_MODCOMP_DOUBLE

#define CONVERT_MODCOMP_DOUBLE

Definition at line 82 of file ModcompConversion.h.

## CONVERT_MODCOMP_FLOAT

#define CONVERT_MODCOMP_FLOAT

Conversion is always needed for floating point data.

Definition at line 81 of file ModcompConversion.h.

## CONVERT_MODCOMP_INT

#define CONVERT_MODCOMP_INT

Definition at line 75 of file ModcompConversion.h.

## CONVERT_MODCOMP_INT64

#define CONVERT_MODCOMP_INT64

Definition at line 77 of file ModcompConversion.h.

## CONVERT_MODCOMP_SHORT

#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).

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

Definition at line 73 of file ModcompConversion.h.

## CONVERT_MODCOMP_UCHAR

#define CONVERT_MODCOMP_UCHAR

Definition at line 60 of file ModcompConversion.h.

## CONVERT_MODCOMP_UINT

#define CONVERT_MODCOMP_UINT

Definition at line 76 of file ModcompConversion.h.

## CONVERT_MODCOMP_UINT64

#define CONVERT_MODCOMP_UINT64

Definition at line 78 of file ModcompConversion.h.

## CONVERT_MODCOMP_USHORT

#define CONVERT_MODCOMP_USHORT

Definition at line 74 of file ModcompConversion.h.

## SIZE_MODCOMP_CHAR

#define SIZE_MODCOMP_CHAR

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

These are the same for all machine architectures.

Definition at line 38 of file ModcompConversion.h.

## SIZE_MODCOMP_DOUBLE

#define SIZE_MODCOMP_DOUBLE

Definition at line 47 of file ModcompConversion.h.

## SIZE_MODCOMP_FLOAT

#define SIZE_MODCOMP_FLOAT

Definition at line 46 of file ModcompConversion.h.

## SIZE_MODCOMP_INT

#define SIZE_MODCOMP_INT

Definition at line 42 of file ModcompConversion.h.

## SIZE_MODCOMP_INT64

#define SIZE_MODCOMP_INT64

Definition at line 44 of file ModcompConversion.h.

## SIZE_MODCOMP_SHORT

#define SIZE_MODCOMP_SHORT

Definition at line 40 of file ModcompConversion.h.

## SIZE_MODCOMP_UCHAR

#define SIZE_MODCOMP_UCHAR

Definition at line 39 of file ModcompConversion.h.

## SIZE_MODCOMP_UINT

#define SIZE_MODCOMP_UINT

Definition at line 43 of file ModcompConversion.h.

## SIZE_MODCOMP_UINT64

#define SIZE_MODCOMP_UINT64

Definition at line 45 of file ModcompConversion.h.

## SIZE_MODCOMP_USHORT

#define SIZE_MODCOMP_USHORT

Definition at line 41 of file ModcompConversion.h.