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

Go to the source code of this file.

Classes

class  casa::LECanonicalConversion
 A class with static functions to convert little endian canonical format. More...

Namespaces

namespace  casa
 this file contains all the compiler specific defines

Defines

#define SIZE_LECAN_CHAR
 Define the little endian canonical sizes of the built-in data types.
#define SIZE_LECAN_UCHAR
#define SIZE_LECAN_SHORT
#define SIZE_LECAN_USHORT
#define SIZE_LECAN_INT
#define SIZE_LECAN_UINT
#define SIZE_LECAN_INT64
#define SIZE_LECAN_UINT64
#define SIZE_LECAN_FLOAT
#define SIZE_LECAN_DOUBLE
#define CONVERT_LECAN_CHAR
 Define for each data format if a conversion is needed from the local format to the little endian canonical format (or vice-versa).
#define CONVERT_LECAN_UCHAR
#define CONVERT_LECAN_SHORT
#define CONVERT_LECAN_USHORT
#define CONVERT_LECAN_INT
#define CONVERT_LECAN_UINT
#define CONVERT_LECAN_INT64
#define CONVERT_LECAN_UINT64
#define CONVERT_LECAN_FLOAT
#define CONVERT_LECAN_DOUBLE

Define Documentation

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

This allows for optimizations in, for example, AipsIO. The canonical format is ASCII for strings, IEEE for floating point and 2-complement for integers (all most significant bit last) with the lengths as shown above. The function checkConvert() can be used to check if the flags are set correctly.

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

Definition at line 65 of file LECanonicalConversion.h.

Definition at line 76 of file LECanonicalConversion.h.

Definition at line 75 of file LECanonicalConversion.h.

Definition at line 71 of file LECanonicalConversion.h.

Definition at line 73 of file LECanonicalConversion.h.

Definition at line 69 of file LECanonicalConversion.h.

Definition at line 66 of file LECanonicalConversion.h.

Definition at line 72 of file LECanonicalConversion.h.

Definition at line 74 of file LECanonicalConversion.h.

Definition at line 70 of file LECanonicalConversion.h.

#define SIZE_LECAN_CHAR

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

These are the same for all machine architectures.

Definition at line 41 of file LECanonicalConversion.h.

Referenced by casa::LECanonicalConversion::canonicalSize(), casa::LECanonicalConversion::fromLocal(), and casa::LECanonicalConversion::toLocal().

#define SIZE_LECAN_INT
#define SIZE_LECAN_UINT