casacore
Loading...
Searching...
No Matches
Static Public Member Functions | Private Member Functions | List of all members
casacore::VAXConversion Class Reference

More...

#include <VAXConversion.h>

Static Public Member Functions

static void toLocal (char &to, const void *from)
 Convert one value from VAX format to local format.
 
static void toLocal (unsigned char &to, const void *from)
 
static void toLocal (short &to, const void *from)
 
static void toLocal (unsigned short &to, const void *from)
 
static void toLocal (int &to, const void *from)
 
static void toLocal (unsigned int &to, const void *from)
 
static void toLocal (Int64 &to, const void *from)
 
static void toLocal (uInt64 &to, const void *from)
 
static void toLocal (float &to, const void *from)
 
static void toLocal (double &to, const void *from)
 
static void toLocal (char *to, const void *from, size_t nr)
 Convert nr values from VAX format to local format.
 
static void toLocal (unsigned char *to, const void *from, size_t nr)
 
static void toLocal (short *to, const void *from, size_t nr)
 
static void toLocal (unsigned short *to, const void *from, size_t nr)
 
static void toLocal (int *to, const void *from, size_t nr)
 
static void toLocal (unsigned int *to, const void *from, size_t nr)
 
static void toLocal (Int64 *to, const void *from, size_t nr)
 
static void toLocal (uInt64 *to, const void *from, size_t nr)
 
static void toLocal (float *to, const void *from, size_t nr)
 
static void toLocal (double *to, const void *from, size_t nr)
 
static void fromLocal (void *to, char from)
 Convert one value from local format to VAX format.
 
static void fromLocal (void *to, unsigned char from)
 
static void fromLocal (void *to, short from)
 
static void fromLocal (void *to, unsigned short from)
 
static void fromLocal (void *to, int from)
 
static void fromLocal (void *to, unsigned int from)
 
static void fromLocal (void *to, Int64 from)
 
static void fromLocal (void *to, uInt64 from)
 
static void fromLocal (void *to, float from)
 
static void fromLocal (void *to, double from)
 
static void fromLocal (void *to, const char *from, size_t nr)
 Convert nr values from local format to VAX format.
 
static void fromLocal (void *to, const unsigned char *from, size_t nr)
 
static void fromLocal (void *to, const short *from, size_t nr)
 
static void fromLocal (void *to, const unsigned short *from, size_t nr)
 
static void fromLocal (void *to, const int *from, size_t nr)
 
static void fromLocal (void *to, const unsigned int *from, size_t nr)
 
static void fromLocal (void *to, const Int64 *from, size_t nr)
 
static void fromLocal (void *to, const uInt64 *from, size_t nr)
 
static void fromLocal (void *to, const float *from, size_t nr)
 
static void fromLocal (void *to, const double *from, size_t nr)
 
static void moveFloat (void *to, const void *from)
 Move a float value (by swapping bytes correctly).
 

Private Member Functions

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

Detailed Description

A class with static functions to convert VAX format

Intended use:

Public interface

Review Status

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

Synopsis

This class contains static toLocal functions to convert data from VAX format to local format and vice-versa. It only handles VAX D-float format. Another class should be implemented to handle VAX G-float format.

The functions work well on big-endian as well as little-endian machines.

Motivation

Archived WSRT data can be stored in the old VAX format (little-endian and VAX D-float floating point format). Conversion functions are needed to read these data.

To Do

Definition at line 80 of file VAXConversion.h.

Constructor & Destructor Documentation

◆ VAXConversion()

casacore::VAXConversion::VAXConversion ( )
private

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

Member Function Documentation

◆ fromLocal() [1/20]

void casacore::VAXConversion::fromLocal ( void *  to,
char  from 
)
inlinestatic

Convert one value from local format to VAX format.

The from and to buffer should not overlap.

Definition at line 273 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

Referenced by fromLocal(), and fromLocal().

◆ fromLocal() [2/20]

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

Convert nr values from local format to VAX format.

The from and to buffer should not overlap.

Definition at line 323 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [3/20]

static void casacore::VAXConversion::fromLocal ( void *  to,
const double *  from,
size_t  nr 
)
static

◆ fromLocal() [4/20]

static void casacore::VAXConversion::fromLocal ( void *  to,
const float *  from,
size_t  nr 
)
static

◆ fromLocal() [5/20]

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

Definition at line 347 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [6/20]

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

Definition at line 359 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [7/20]

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

Definition at line 335 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [8/20]

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

Definition at line 365 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [9/20]

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

Definition at line 329 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [10/20]

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

Definition at line 353 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [11/20]

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

Definition at line 341 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [12/20]

void casacore::VAXConversion::fromLocal ( void *  to,
double  from 
)
inlinestatic

Definition at line 318 of file VAXConversion.h.

References fromLocal().

◆ fromLocal() [13/20]

void casacore::VAXConversion::fromLocal ( void *  to,
float  from 
)
inlinestatic

Definition at line 313 of file VAXConversion.h.

References fromLocal().

◆ fromLocal() [14/20]

void casacore::VAXConversion::fromLocal ( void *  to,
int  from 
)
inlinestatic

Definition at line 293 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [15/20]

void casacore::VAXConversion::fromLocal ( void *  to,
Int64  from 
)
inlinestatic

Definition at line 303 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [16/20]

void casacore::VAXConversion::fromLocal ( void *  to,
short  from 
)
inlinestatic

Definition at line 283 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [17/20]

void casacore::VAXConversion::fromLocal ( void *  to,
uInt64  from 
)
inlinestatic

Definition at line 308 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [18/20]

void casacore::VAXConversion::fromLocal ( void *  to,
unsigned char  from 
)
inlinestatic

Definition at line 278 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [19/20]

void casacore::VAXConversion::fromLocal ( void *  to,
unsigned int  from 
)
inlinestatic

Definition at line 298 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ fromLocal() [20/20]

void casacore::VAXConversion::fromLocal ( void *  to,
unsigned short  from 
)
inlinestatic

Definition at line 288 of file VAXConversion.h.

References casacore::LittleEndianConversion::fromLocal().

◆ moveFloat()

void casacore::VAXConversion::moveFloat ( void *  to,
const void *  from 
)
inlinestatic

Move a float value (by swapping bytes correctly).

Definition at line 373 of file VAXConversion.h.

◆ toLocal() [1/20]

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

Convert one value from VAX format to local format.

The from and to buffer should not overlap.

Definition at line 174 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

Referenced by toLocal(), and toLocal().

◆ toLocal() [2/20]

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

Convert nr values from VAX format to local format.

The from and to buffer should not overlap.

Definition at line 224 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [3/20]

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

Definition at line 219 of file VAXConversion.h.

References toLocal().

◆ toLocal() [4/20]

static void casacore::VAXConversion::toLocal ( double *  to,
const void *  from,
size_t  nr 
)
static

◆ toLocal() [5/20]

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

Definition at line 214 of file VAXConversion.h.

References toLocal().

◆ toLocal() [6/20]

static void casacore::VAXConversion::toLocal ( float *  to,
const void *  from,
size_t  nr 
)
static

◆ toLocal() [7/20]

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

Definition at line 194 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [8/20]

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

Definition at line 248 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [9/20]

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

Definition at line 204 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [10/20]

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

Definition at line 260 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [11/20]

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

Definition at line 184 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [12/20]

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

Definition at line 236 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [13/20]

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

Definition at line 209 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [14/20]

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

Definition at line 266 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [15/20]

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

Definition at line 179 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [16/20]

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

Definition at line 230 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [17/20]

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

Definition at line 199 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [18/20]

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

Definition at line 254 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [19/20]

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

Definition at line 189 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().

◆ toLocal() [20/20]

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

Definition at line 242 of file VAXConversion.h.

References casacore::LittleEndianConversion::toLocal().


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