casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | Private Member Functions | List of all members
casacore::LECanonicalConversion Class Reference

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

#include <LECanonicalConversion.h>

Static Public Member Functions

static size_t toLocal (char &to, const void *from)
 Convert one value from canonical format to local format. More...
 
static size_t toLocal (unsigned char &to, const void *from)
 
static size_t toLocal (short &to, const void *from)
 
static size_t toLocal (unsigned short &to, const void *from)
 
static size_t toLocal (int &to, const void *from)
 
static size_t toLocal (unsigned int &to, const void *from)
 
static size_t toLocal (Int64 &to, const void *from)
 
static size_t toLocal (uInt64 &to, const void *from)
 
static size_t toLocal (float &to, const void *from)
 
static size_t toLocal (double &to, const void *from)
 
static size_t fromLocal (void *to, const char &from)
 Convert one value from local format to canonical format. More...
 
static size_t fromLocal (void *to, const unsigned char &from)
 
static size_t fromLocal (void *to, const short &from)
 
static size_t fromLocal (void *to, const unsigned short &from)
 
static size_t fromLocal (void *to, const int &from)
 
static size_t fromLocal (void *to, const unsigned int &from)
 
static size_t fromLocal (void *to, const Int64 &from)
 
static size_t fromLocal (void *to, const uInt64 &from)
 
static size_t fromLocal (void *to, const float &from)
 
static size_t fromLocal (void *to, const double &from)
 
static size_t toLocal (char *to, const void *from, size_t nr)
 Convert nr values from canonical format to local format. More...
 
static size_t toLocal (unsigned char *to, const void *from, size_t nr)
 
static size_t toLocal (short *to, const void *from, size_t nr)
 
static size_t toLocal (unsigned short *to, const void *from, size_t nr)
 
static size_t toLocal (int *to, const void *from, size_t nr)
 
static size_t toLocal (unsigned int *to, const void *from, size_t nr)
 
static size_t toLocal (Int64 *to, const void *from, size_t nr)
 
static size_t toLocal (uInt64 *to, const void *from, size_t nr)
 
static size_t toLocal (float *to, const void *from, size_t nr)
 
static size_t toLocal (double *to, const void *from, size_t nr)
 
static size_t fromLocal (void *to, const char *from, size_t nr)
 Convert nr values from local format to canonical format. More...
 
static size_t fromLocal (void *to, const unsigned char *from, size_t nr)
 
static size_t fromLocal (void *to, const short *from, size_t nr)
 
static size_t fromLocal (void *to, const unsigned short *from, size_t nr)
 
static size_t fromLocal (void *to, const int *from, size_t nr)
 
static size_t fromLocal (void *to, const unsigned int *from, size_t nr)
 
static size_t fromLocal (void *to, const Int64 *from, size_t nr)
 
static size_t fromLocal (void *to, const uInt64 *from, size_t nr)
 
static size_t fromLocal (void *to, const float *from, size_t nr)
 
static size_t fromLocal (void *to, const double *from, size_t nr)
 
static size_t toLocalChar (void *to, const void *from, size_t nr)
 Convert nr values from canonical format to local format. More...
 
static size_t toLocalUChar (void *to, const void *from, size_t nr)
 
static size_t toLocalShort (void *to, const void *from, size_t nr)
 
static size_t toLocalUShort (void *to, const void *from, size_t nr)
 
static size_t toLocalInt (void *to, const void *from, size_t nr)
 
static size_t toLocalUInt (void *to, const void *from, size_t nr)
 
static size_t toLocalInt64 (void *to, const void *from, size_t nr)
 
static size_t toLocalUInt64 (void *to, const void *from, size_t nr)
 
static size_t toLocalFloat (void *to, const void *from, size_t nr)
 
static size_t toLocalDouble (void *to, const void *from, size_t nr)
 
static size_t fromLocalChar (void *to, const void *from, size_t nr)
 Convert nr values from local format to canonical format. More...
 
static size_t fromLocalUChar (void *to, const void *from, size_t nr)
 
static size_t fromLocalShort (void *to, const void *from, size_t nr)
 
static size_t fromLocalUShort (void *to, const void *from, size_t nr)
 
static size_t fromLocalInt (void *to, const void *from, size_t nr)
 
static size_t fromLocalUInt (void *to, const void *from, size_t nr)
 
static size_t fromLocalInt64 (void *to, const void *from, size_t nr)
 
static size_t fromLocalUInt64 (void *to, const void *from, size_t nr)
 
static size_t fromLocalFloat (void *to, const void *from, size_t nr)
 
static size_t fromLocalDouble (void *to, const void *from, size_t nr)
 
static void * byteToLocalChar (void *to, const void *from, size_t nrbytes)
 Convert values from canonical format to local format. More...
 
static void * byteToLocalUChar (void *to, const void *from, size_t nrbytes)
 
static void * byteToLocalShort (void *to, const void *from, size_t nrbytes)
 
static void * byteToLocalUShort (void *to, const void *from, size_t nrbytes)
 
static void * byteToLocalInt (void *to, const void *from, size_t nrbytes)
 
static void * byteToLocalUInt (void *to, const void *from, size_t nrbytes)
 
static void * byteToLocalInt64 (void *to, const void *from, size_t nrbytes)
 
static void * byteToLocalUInt64 (void *to, const void *from, size_t nrbytes)
 
static void * byteToLocalFloat (void *to, const void *from, size_t nrbytes)
 
static void * byteToLocalDouble (void *to, const void *from, size_t nrbytes)
 
static void * byteFromLocalChar (void *to, const void *from, size_t nrbytes)
 Convert values from local format to canonical format. More...
 
static void * byteFromLocalUChar (void *to, const void *from, size_t nrbytes)
 
static void * byteFromLocalShort (void *to, const void *from, size_t nrbytes)
 
static void * byteFromLocalUShort (void *to, const void *from, size_t nrbytes)
 
static void * byteFromLocalInt (void *to, const void *from, size_t nrbytes)
 
static void * byteFromLocalUInt (void *to, const void *from, size_t nrbytes)
 
static void * byteFromLocalInt64 (void *to, const void *from, size_t nrbytes)
 
static void * byteFromLocalUInt64 (void *to, const void *from, size_t nrbytes)
 
static void * byteFromLocalFloat (void *to, const void *from, size_t nrbytes)
 
static void * byteFromLocalDouble (void *to, const void *from, size_t nrbytes)
 
static Conversion::ValueFunctiongetToLocal (const char *)
 Get the value conversion function for the given type. More...
 
static Conversion::ValueFunctiongetToLocal (const unsigned char *)
 
static Conversion::ValueFunctiongetToLocal (const short *)
 
static Conversion::ValueFunctiongetToLocal (const unsigned short *)
 
static Conversion::ValueFunctiongetToLocal (const int *)
 
static Conversion::ValueFunctiongetToLocal (const unsigned int *)
 
static Conversion::ValueFunctiongetToLocal (const Int64 *)
 
static Conversion::ValueFunctiongetToLocal (const uInt64 *)
 
static Conversion::ValueFunctiongetToLocal (const float *)
 
static Conversion::ValueFunctiongetToLocal (const double *)
 
static Conversion::ValueFunctiongetFromLocal (const char *)
 
static Conversion::ValueFunctiongetFromLocal (const unsigned char *)
 
static Conversion::ValueFunctiongetFromLocal (const short *)
 
static Conversion::ValueFunctiongetFromLocal (const unsigned short *)
 
static Conversion::ValueFunctiongetFromLocal (const int *)
 
static Conversion::ValueFunctiongetFromLocal (const unsigned int *)
 
static Conversion::ValueFunctiongetFromLocal (const Int64 *)
 
static Conversion::ValueFunctiongetFromLocal (const uInt64 *)
 
static Conversion::ValueFunctiongetFromLocal (const float *)
 
static Conversion::ValueFunctiongetFromLocal (const double *)
 
static Conversion::ByteFunctiongetByteToLocal (const char *)
 Get the byte conversion function for the given type. More...
 
static Conversion::ByteFunctiongetByteToLocal (const unsigned char *)
 
static Conversion::ByteFunctiongetByteToLocal (const short *)
 
static Conversion::ByteFunctiongetByteToLocal (const unsigned short *)
 
static Conversion::ByteFunctiongetByteToLocal (const int *)
 
static Conversion::ByteFunctiongetByteToLocal (const unsigned int *)
 
static Conversion::ByteFunctiongetByteToLocal (const Int64 *)
 
static Conversion::ByteFunctiongetByteToLocal (const uInt64 *)
 
static Conversion::ByteFunctiongetByteToLocal (const float *)
 
static Conversion::ByteFunctiongetByteToLocal (const double *)
 
static Conversion::ByteFunctiongetByteFromLocal (const char *)
 
static Conversion::ByteFunctiongetByteFromLocal (const unsigned char *)
 
static Conversion::ByteFunctiongetByteFromLocal (const short *)
 
static Conversion::ByteFunctiongetByteFromLocal (const unsigned short *)
 
static Conversion::ByteFunctiongetByteFromLocal (const int *)
 
static Conversion::ByteFunctiongetByteFromLocal (const unsigned int *)
 
static Conversion::ByteFunctiongetByteFromLocal (const Int64 *)
 
static Conversion::ByteFunctiongetByteFromLocal (const uInt64 *)
 
static Conversion::ByteFunctiongetByteFromLocal (const float *)
 
static Conversion::ByteFunctiongetByteFromLocal (const double *)
 
static unsigned int canonicalSize (const char *)
 Return the canonical length for the various data types. More...
 
static unsigned int canonicalSize (const unsigned char *)
 
static unsigned int canonicalSize (const short *)
 
static unsigned int canonicalSize (const unsigned short *)
 
static unsigned int canonicalSize (const int *)
 
static unsigned int canonicalSize (const unsigned int *)
 
static unsigned int canonicalSize (const Int64 *)
 
static unsigned int canonicalSize (const uInt64 *)
 
static unsigned int canonicalSize (const float *)
 
static unsigned int canonicalSize (const double *)
 
static void reverse2 (void *to, const void *from)
 Reverse 2 bytes. More...
 
static void reverse4 (void *to, const void *from)
 Reverse 4 bytes. More...
 
static void reverse8 (void *to, const void *from)
 Reverse 8 bytes. More...
 
static void move2 (void *to, const void *from)
 Move 2 bytes. More...
 
static void move4 (void *to, const void *from)
 Move 4 bytes. More...
 
static void move8 (void *to, const void *from)
 Move 8 bytes. More...
 

Private Member Functions

 LECanonicalConversion ()
 This class should not be constructed (so declare the constructor private). More...
 

Detailed Description

A class with static functions to convert little endian canonical format.

Intended use:

Public interface

Review Status

Reviewed By:
Friso Olnon
Date Reviewed:
1996/11/06
Test programs:
tLECanonicalConversion

Synopsis

This class consists of several static functions to convert data from local (=native) format to a little endian canonical format. The canonical length of each data type is:
- Bool: 1 bit
- char: 1 byte
- short: 2 bytes
- int: 4 bytes
- Int64: 8 bytes
- float: 4 bytes
- double: 8 bytes
This canonical format is little-endian IEEE format, so on PCs the conversion is only a copy operation. On e.g. SUNs however, it involves a byte swap to convert from little endian to big endian.

The class also contains conversion functions making it possible to specify the number of bytes (in local format) instead of the number of values. These functions are included to make it possible to have the same signature as memcpy.

The current implementation of this class works on big- and little-endian machines using IEEE format. When using on other machines (e.g. VAX) the toLocal and fromLocal functions have to be changed.

Note that no functions are provided to handle Bools. Instead class Conversion provides functions to convert Bools to/from bits.

Example

void someFunction (const uInt* data, uInt nrval)
{
char* buffer = new char[nrval*LECanonicalConversion::canonicalSize(data)];
LECanonicalConversion::fromLocal (buffer, data, nrval);
...\.
delete [] buffer;
}

Motivation

Casacore data will often be stored in a canonical format. To read these data conversion functions are needed. However, these functions do not use any other Casacore classes, so they can easily be used in any other software system.

To Do

Definition at line 160 of file LECanonicalConversion.h.

Constructor & Destructor Documentation

casacore::LECanonicalConversion::LECanonicalConversion ( )
private

This class should not be constructed (so declare the constructor private).

Member Function Documentation

static void* casacore::LECanonicalConversion::byteFromLocalChar ( void *  to,
const void *  from,
size_t  nrbytes 
)
static

Convert values from local format to canonical format.

The from and to buffer should not overlap. The number of values involved is determined from the argument nrbytes, which gives the number of bytes in local format. The signature of this function is the same as memcpy, so that memcpy can directly be used if no conversion is needed.

static void* casacore::LECanonicalConversion::byteFromLocalDouble ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteFromLocalFloat ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteFromLocalInt ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteFromLocalInt64 ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteFromLocalShort ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteFromLocalUChar ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteFromLocalUInt ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteFromLocalUInt64 ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteFromLocalUShort ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteToLocalChar ( void *  to,
const void *  from,
size_t  nrbytes 
)
static

Convert values from canonical format to local format.

The from and to buffer should not overlap. The number of values involved is determined from the argument nrbytes, which gives the number of bytes in local format. The signature of this function is the same as memcpy, so that memcpy can directly be used if no conversion is needed.

static void* casacore::LECanonicalConversion::byteToLocalDouble ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteToLocalFloat ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteToLocalInt ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteToLocalInt64 ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteToLocalShort ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteToLocalUChar ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteToLocalUInt ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteToLocalUInt64 ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
static void* casacore::LECanonicalConversion::byteToLocalUShort ( void *  to,
const void *  from,
size_t  nrbytes 
)
static
unsigned int casacore::LECanonicalConversion::canonicalSize ( const char *  )
inlinestatic

Return the canonical length for the various data types.

Definition at line 965 of file LECanonicalConversion.h.

References SIZE_LECAN_CHAR.

unsigned int casacore::LECanonicalConversion::canonicalSize ( const unsigned char *  )
inlinestatic

Definition at line 967 of file LECanonicalConversion.h.

References SIZE_LECAN_UCHAR.

unsigned int casacore::LECanonicalConversion::canonicalSize ( const short *  )
inlinestatic

Definition at line 969 of file LECanonicalConversion.h.

References SIZE_LECAN_SHORT.

unsigned int casacore::LECanonicalConversion::canonicalSize ( const unsigned short *  )
inlinestatic

Definition at line 971 of file LECanonicalConversion.h.

References SIZE_LECAN_USHORT.

unsigned int casacore::LECanonicalConversion::canonicalSize ( const int *  )
inlinestatic

Definition at line 973 of file LECanonicalConversion.h.

References SIZE_LECAN_INT.

unsigned int casacore::LECanonicalConversion::canonicalSize ( const unsigned int *  )
inlinestatic

Definition at line 975 of file LECanonicalConversion.h.

References SIZE_LECAN_UINT.

unsigned int casacore::LECanonicalConversion::canonicalSize ( const Int64 )
inlinestatic

Definition at line 977 of file LECanonicalConversion.h.

References SIZE_LECAN_INT64.

unsigned int casacore::LECanonicalConversion::canonicalSize ( const uInt64 )
inlinestatic

Definition at line 979 of file LECanonicalConversion.h.

References SIZE_LECAN_UINT64.

unsigned int casacore::LECanonicalConversion::canonicalSize ( const float *  )
inlinestatic

Definition at line 981 of file LECanonicalConversion.h.

References SIZE_LECAN_FLOAT.

unsigned int casacore::LECanonicalConversion::canonicalSize ( const double *  )
inlinestatic

Definition at line 983 of file LECanonicalConversion.h.

References SIZE_LECAN_DOUBLE.

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const char &  from 
)
inlinestatic

Convert one value from local format to canonical format.

The from and to buffer should not overlap.

Definition at line 637 of file LECanonicalConversion.h.

References SIZE_LECAN_CHAR.

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const unsigned char &  from 
)
inlinestatic

Definition at line 643 of file LECanonicalConversion.h.

References SIZE_LECAN_UCHAR.

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const short &  from 
)
inlinestatic

Definition at line 650 of file LECanonicalConversion.h.

References move2(), reverse2(), and SIZE_LECAN_SHORT.

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const unsigned short &  from 
)
inlinestatic

Definition at line 661 of file LECanonicalConversion.h.

References move2(), reverse2(), and SIZE_LECAN_USHORT.

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const int &  from 
)
inlinestatic

Definition at line 672 of file LECanonicalConversion.h.

References move4(), reverse4(), and SIZE_LECAN_INT.

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const unsigned int &  from 
)
inlinestatic

Definition at line 683 of file LECanonicalConversion.h.

References move4(), reverse4(), and SIZE_LECAN_UINT.

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const Int64 from 
)
inlinestatic

Definition at line 694 of file LECanonicalConversion.h.

References move8(), reverse8(), and SIZE_LECAN_INT64.

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const uInt64 from 
)
inlinestatic

Definition at line 705 of file LECanonicalConversion.h.

References move8(), reverse8(), and SIZE_LECAN_UINT64.

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const float &  from 
)
inlinestatic

Definition at line 716 of file LECanonicalConversion.h.

References move4(), reverse4(), and SIZE_LECAN_FLOAT.

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const double &  from 
)
inlinestatic

Definition at line 727 of file LECanonicalConversion.h.

References move8(), reverse8(), and SIZE_LECAN_FLOAT.

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const char *  from,
size_t  nr 
)
inlinestatic

Convert nr values from local format to canonical format.

The from and to buffer should not overlap.

Definition at line 800 of file LECanonicalConversion.h.

References fromLocalChar().

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const unsigned char *  from,
size_t  nr 
)
inlinestatic

Definition at line 806 of file LECanonicalConversion.h.

References fromLocalUChar().

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const short *  from,
size_t  nr 
)
inlinestatic

Definition at line 812 of file LECanonicalConversion.h.

References fromLocalShort().

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const unsigned short *  from,
size_t  nr 
)
inlinestatic

Definition at line 818 of file LECanonicalConversion.h.

References fromLocalUShort().

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const int *  from,
size_t  nr 
)
inlinestatic

Definition at line 824 of file LECanonicalConversion.h.

References fromLocalInt().

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const unsigned int *  from,
size_t  nr 
)
inlinestatic

Definition at line 830 of file LECanonicalConversion.h.

References fromLocalUInt().

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const Int64 from,
size_t  nr 
)
inlinestatic

Definition at line 836 of file LECanonicalConversion.h.

References fromLocalInt64().

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const uInt64 from,
size_t  nr 
)
inlinestatic

Definition at line 842 of file LECanonicalConversion.h.

References fromLocalUInt64().

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const float *  from,
size_t  nr 
)
inlinestatic

Definition at line 848 of file LECanonicalConversion.h.

References fromLocalFloat().

size_t casacore::LECanonicalConversion::fromLocal ( void *  to,
const double *  from,
size_t  nr 
)
inlinestatic

Definition at line 854 of file LECanonicalConversion.h.

References fromLocalDouble().

static size_t casacore::LECanonicalConversion::fromLocalChar ( void *  to,
const void *  from,
size_t  nr 
)
static

Convert nr values from local format to canonical format.

The from and to buffer should not overlap.

Referenced by fromLocal().

static size_t casacore::LECanonicalConversion::fromLocalDouble ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by fromLocal().

static size_t casacore::LECanonicalConversion::fromLocalFloat ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by fromLocal().

static size_t casacore::LECanonicalConversion::fromLocalInt ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by fromLocal().

static size_t casacore::LECanonicalConversion::fromLocalInt64 ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by fromLocal().

static size_t casacore::LECanonicalConversion::fromLocalShort ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by fromLocal().

static size_t casacore::LECanonicalConversion::fromLocalUChar ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by fromLocal().

static size_t casacore::LECanonicalConversion::fromLocalUInt ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by fromLocal().

static size_t casacore::LECanonicalConversion::fromLocalUInt64 ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by fromLocal().

static size_t casacore::LECanonicalConversion::fromLocalUShort ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by fromLocal().

static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteFromLocal ( const char *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteFromLocal ( const unsigned char *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteFromLocal ( const short *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteFromLocal ( const unsigned short *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteFromLocal ( const int *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteFromLocal ( const unsigned int *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteFromLocal ( const Int64 )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteFromLocal ( const uInt64 )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteFromLocal ( const float *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteFromLocal ( const double *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteToLocal ( const char *  )
static

Get the byte conversion function for the given type.

The function memcpy is returned when a conversion is not needed.

static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteToLocal ( const unsigned char *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteToLocal ( const short *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteToLocal ( const unsigned short *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteToLocal ( const int *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteToLocal ( const unsigned int *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteToLocal ( const Int64 )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteToLocal ( const uInt64 )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteToLocal ( const float *  )
static
static Conversion::ByteFunction* casacore::LECanonicalConversion::getByteToLocal ( const double *  )
static
Conversion::ValueFunction * casacore::LECanonicalConversion::getFromLocal ( const char *  )
inlinestatic

Definition at line 914 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getFromLocal ( const unsigned char *  )
inlinestatic

Definition at line 919 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getFromLocal ( const short *  )
inlinestatic

Definition at line 924 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getFromLocal ( const unsigned short *  )
inlinestatic

Definition at line 929 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getFromLocal ( const int *  )
inlinestatic

Definition at line 934 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getFromLocal ( const unsigned int *  )
inlinestatic

Definition at line 939 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getFromLocal ( const Int64 )
inlinestatic

Definition at line 944 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getFromLocal ( const uInt64 )
inlinestatic

Definition at line 949 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getFromLocal ( const float *  )
inlinestatic

Definition at line 954 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getFromLocal ( const double *  )
inlinestatic

Definition at line 959 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getToLocal ( const char *  )
inlinestatic

Get the value conversion function for the given type.

Definition at line 863 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getToLocal ( const unsigned char *  )
inlinestatic

Definition at line 868 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getToLocal ( const short *  )
inlinestatic

Definition at line 873 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getToLocal ( const unsigned short *  )
inlinestatic

Definition at line 878 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getToLocal ( const int *  )
inlinestatic

Definition at line 883 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getToLocal ( const unsigned int *  )
inlinestatic

Definition at line 888 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getToLocal ( const Int64 )
inlinestatic

Definition at line 893 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getToLocal ( const uInt64 )
inlinestatic

Definition at line 898 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getToLocal ( const float *  )
inlinestatic

Definition at line 903 of file LECanonicalConversion.h.

Conversion::ValueFunction * casacore::LECanonicalConversion::getToLocal ( const double *  )
inlinestatic

Definition at line 908 of file LECanonicalConversion.h.

void casacore::LECanonicalConversion::move2 ( void *  to,
const void *  from 
)
inlinestatic

Move 2 bytes.

Definition at line 481 of file LECanonicalConversion.h.

Referenced by fromLocal(), and toLocal().

void casacore::LECanonicalConversion::move4 ( void *  to,
const void *  from 
)
inlinestatic

Move 4 bytes.

Definition at line 486 of file LECanonicalConversion.h.

Referenced by fromLocal(), and toLocal().

void casacore::LECanonicalConversion::move8 ( void *  to,
const void *  from 
)
inlinestatic

Move 8 bytes.

Definition at line 491 of file LECanonicalConversion.h.

Referenced by fromLocal(), and toLocal().

void casacore::LECanonicalConversion::reverse2 ( void *  to,
const void *  from 
)
inlinestatic

Reverse 2 bytes.

Definition at line 441 of file LECanonicalConversion.h.

Referenced by fromLocal(), and toLocal().

void casacore::LECanonicalConversion::reverse4 ( void *  to,
const void *  from 
)
inlinestatic

Reverse 4 bytes.

Definition at line 449 of file LECanonicalConversion.h.

Referenced by fromLocal(), and toLocal().

void casacore::LECanonicalConversion::reverse8 ( void *  to,
const void *  from 
)
inlinestatic

Reverse 8 bytes.

Definition at line 462 of file LECanonicalConversion.h.

Referenced by fromLocal(), and toLocal().

size_t casacore::LECanonicalConversion::toLocal ( char &  to,
const void *  from 
)
inlinestatic

Convert one value from canonical format to local format.

The from and to buffer should not overlap.

Definition at line 504 of file LECanonicalConversion.h.

References SIZE_LECAN_CHAR.

size_t casacore::LECanonicalConversion::toLocal ( unsigned char &  to,
const void *  from 
)
inlinestatic

Definition at line 511 of file LECanonicalConversion.h.

References SIZE_LECAN_UCHAR.

size_t casacore::LECanonicalConversion::toLocal ( short &  to,
const void *  from 
)
inlinestatic

Definition at line 518 of file LECanonicalConversion.h.

References move2(), reverse2(), and SIZE_LECAN_SHORT.

size_t casacore::LECanonicalConversion::toLocal ( unsigned short &  to,
const void *  from 
)
inlinestatic

Definition at line 536 of file LECanonicalConversion.h.

References move2(), reverse2(), and SIZE_LECAN_USHORT.

size_t casacore::LECanonicalConversion::toLocal ( int &  to,
const void *  from 
)
inlinestatic

Definition at line 550 of file LECanonicalConversion.h.

References move4(), reverse4(), and SIZE_LECAN_INT.

size_t casacore::LECanonicalConversion::toLocal ( unsigned int &  to,
const void *  from 
)
inlinestatic

Definition at line 568 of file LECanonicalConversion.h.

References move4(), reverse4(), and SIZE_LECAN_UINT.

size_t casacore::LECanonicalConversion::toLocal ( Int64 to,
const void *  from 
)
inlinestatic

Definition at line 582 of file LECanonicalConversion.h.

References move8(), reverse8(), and SIZE_LECAN_INT64.

size_t casacore::LECanonicalConversion::toLocal ( uInt64 to,
const void *  from 
)
inlinestatic

Definition at line 600 of file LECanonicalConversion.h.

References move8(), reverse8(), and SIZE_LECAN_UINT64.

size_t casacore::LECanonicalConversion::toLocal ( float &  to,
const void *  from 
)
inlinestatic

Definition at line 614 of file LECanonicalConversion.h.

References move4(), reverse4(), and SIZE_LECAN_FLOAT.

size_t casacore::LECanonicalConversion::toLocal ( double &  to,
const void *  from 
)
inlinestatic

Definition at line 625 of file LECanonicalConversion.h.

References move8(), reverse8(), and SIZE_LECAN_DOUBLE.

size_t casacore::LECanonicalConversion::toLocal ( char *  to,
const void *  from,
size_t  nr 
)
inlinestatic

Convert nr values from canonical format to local format.

The from and to buffer should not overlap.

Definition at line 739 of file LECanonicalConversion.h.

References toLocalChar().

size_t casacore::LECanonicalConversion::toLocal ( unsigned char *  to,
const void *  from,
size_t  nr 
)
inlinestatic

Definition at line 745 of file LECanonicalConversion.h.

References toLocalUChar().

size_t casacore::LECanonicalConversion::toLocal ( short *  to,
const void *  from,
size_t  nr 
)
inlinestatic

Definition at line 751 of file LECanonicalConversion.h.

References toLocalShort().

size_t casacore::LECanonicalConversion::toLocal ( unsigned short *  to,
const void *  from,
size_t  nr 
)
inlinestatic

Definition at line 757 of file LECanonicalConversion.h.

References toLocalUShort().

size_t casacore::LECanonicalConversion::toLocal ( int *  to,
const void *  from,
size_t  nr 
)
inlinestatic

Definition at line 763 of file LECanonicalConversion.h.

References toLocalInt().

size_t casacore::LECanonicalConversion::toLocal ( unsigned int *  to,
const void *  from,
size_t  nr 
)
inlinestatic

Definition at line 769 of file LECanonicalConversion.h.

References toLocalUInt().

size_t casacore::LECanonicalConversion::toLocal ( Int64 to,
const void *  from,
size_t  nr 
)
inlinestatic

Definition at line 775 of file LECanonicalConversion.h.

References toLocalInt64().

size_t casacore::LECanonicalConversion::toLocal ( uInt64 to,
const void *  from,
size_t  nr 
)
inlinestatic

Definition at line 781 of file LECanonicalConversion.h.

References toLocalUInt64().

size_t casacore::LECanonicalConversion::toLocal ( float *  to,
const void *  from,
size_t  nr 
)
inlinestatic

Definition at line 787 of file LECanonicalConversion.h.

References toLocalFloat().

size_t casacore::LECanonicalConversion::toLocal ( double *  to,
const void *  from,
size_t  nr 
)
inlinestatic

Definition at line 793 of file LECanonicalConversion.h.

References toLocalDouble().

static size_t casacore::LECanonicalConversion::toLocalChar ( void *  to,
const void *  from,
size_t  nr 
)
static

Convert nr values from canonical format to local format.

The from and to buffer should not overlap.

Referenced by toLocal().

static size_t casacore::LECanonicalConversion::toLocalDouble ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by toLocal().

static size_t casacore::LECanonicalConversion::toLocalFloat ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by toLocal().

static size_t casacore::LECanonicalConversion::toLocalInt ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by toLocal().

static size_t casacore::LECanonicalConversion::toLocalInt64 ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by toLocal().

static size_t casacore::LECanonicalConversion::toLocalShort ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by toLocal().

static size_t casacore::LECanonicalConversion::toLocalUChar ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by toLocal().

static size_t casacore::LECanonicalConversion::toLocalUInt ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by toLocal().

static size_t casacore::LECanonicalConversion::toLocalUInt64 ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by toLocal().

static size_t casacore::LECanonicalConversion::toLocalUShort ( void *  to,
const void *  from,
size_t  nr 
)
static

Referenced by toLocal().


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