casacore
|
#include <VAXConversion.h>
Static Public Member Functions | |
static void | toLocal (char &to, const void *from) |
Convert one value from VAX format to local format. More... | |
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. More... | |
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. More... | |
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. More... | |
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). More... | |
Private Member Functions | |
VAXConversion () | |
This class should not be constructed (so declare the constructor private). More... | |
A class with static functions to convert VAX format
Public interface
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.
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.
Definition at line 82 of file VAXConversion.h.
|
private |
This class should not be constructed (so declare the constructor private).
|
inlinestatic |
Convert one value from local format to VAX format.
The from and to buffer should not overlap.
Definition at line 275 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
Referenced by fromLocal().
|
inlinestatic |
Convert nr values from local format to VAX format.
The from and to buffer should not overlap.
Definition at line 325 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
static |
|
static |
|
inlinestatic |
Definition at line 349 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Definition at line 361 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Definition at line 337 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Definition at line 367 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Definition at line 331 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Definition at line 355 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Definition at line 343 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Definition at line 320 of file VAXConversion.h.
References fromLocal().
|
inlinestatic |
Definition at line 315 of file VAXConversion.h.
References fromLocal().
|
inlinestatic |
Definition at line 295 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Definition at line 305 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Definition at line 285 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Definition at line 310 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Definition at line 280 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Definition at line 300 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Definition at line 290 of file VAXConversion.h.
References casacore::LittleEndianConversion::fromLocal().
|
inlinestatic |
Move a float value (by swapping bytes correctly).
Definition at line 375 of file VAXConversion.h.
|
inlinestatic |
Convert one value from VAX format to local format.
The from and to buffer should not overlap.
Definition at line 176 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
Referenced by toLocal().
|
inlinestatic |
Convert nr values from VAX format to local format.
The from and to buffer should not overlap.
Definition at line 226 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 221 of file VAXConversion.h.
References toLocal().
|
static |
|
inlinestatic |
Definition at line 216 of file VAXConversion.h.
References toLocal().
|
static |
|
inlinestatic |
Definition at line 196 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 250 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 206 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 262 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 186 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 238 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 211 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 268 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 181 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 232 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 201 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 256 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 191 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().
|
inlinestatic |
Definition at line 244 of file VAXConversion.h.
References casacore::LittleEndianConversion::toLocal().