28 #ifndef CASA_VAXDATACONVERSION_H
29 #define CASA_VAXDATACONVERSION_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/OS/DataConversion.h>
79 size_t toLocal (
char& to,
const void* from)
const override;
80 size_t toLocal (
unsigned char& to,
const void* from)
const override;
81 size_t toLocal (
short& to,
const void* from)
const override;
82 size_t toLocal (
unsigned short& to,
const void* from)
const override;
83 size_t toLocal (
int& to,
const void* from)
const override;
84 size_t toLocal (
unsigned int& to,
const void* from)
const override;
87 size_t toLocal (
float& to,
const void* from)
const override;
88 size_t toLocal (
double& to,
const void* from)
const override;
94 size_t toLocal (
char* to,
const void* from,
95 size_t nr)
const override;
96 size_t toLocal (
unsigned char* to,
const void* from,
97 size_t nr)
const override;
98 size_t toLocal (
short* to,
const void* from,
99 size_t nr)
const override;
100 size_t toLocal (
unsigned short* to,
const void* from,
101 size_t nr)
const override;
103 size_t nr)
const override;
104 size_t toLocal (
unsigned int* to,
const void* from,
105 size_t nr)
const override;
107 size_t nr)
const override;
109 size_t nr)
const override;
111 size_t nr)
const override;
113 size_t nr)
const override;
120 size_t fromLocal (
void* to,
unsigned char from)
const override;
122 size_t fromLocal (
void* to,
unsigned short from)
const override;
124 size_t fromLocal (
void* to,
unsigned int from)
const override;
128 size_t fromLocal (
void* to,
double from)
const override;
135 size_t nr)
const override;
137 size_t nr)
const override;
139 size_t nr)
const override;
141 size_t nr)
const override;
143 size_t nr)
const override;
145 size_t nr)
const override;
147 size_t nr)
const override;
149 size_t nr)
const override;
151 size_t nr)
const override;
153 size_t nr)
const override;
unsigned int externalSize(const float *) const override
size_t toLocal(unsigned int *to, const void *from, size_t nr) const override
Bool canCopy(const int *) const override
size_t toLocal(short &to, const void *from) const override
size_t fromLocal(void *to, unsigned short from) const override
size_t fromLocal(void *to, const Int64 *from, size_t nr) const override
size_t toLocal(unsigned char *to, const void *from, size_t nr) const override
Bool canCopy(const short *) const override
unsigned int externalSize(const unsigned int *) const override
size_t toLocal(double *to, const void *from, size_t nr) const override
Bool canCopy(const unsigned short *) const override
size_t toLocal(float &to, const void *from) const override
size_t fromLocal(void *to, const float *from, size_t nr) const override
size_t toLocal(char *to, const void *from, size_t nr) const override
Convert nr values from VAX format to local format.
size_t toLocal(unsigned short *to, const void *from, size_t nr) const override
unsigned int externalSize(const char *) const override
Get the external size of the data type.
Bool canCopy(const uInt64 *) const override
VAXDataConversion()
Construct the object.
size_t toLocal(unsigned int &to, const void *from) const override
size_t toLocal(short *to, const void *from, size_t nr) const override
size_t fromLocal(void *to, char from) const override
Convert one value from local format to VAX format.
size_t fromLocal(void *to, const uInt64 *from, size_t nr) const override
size_t fromLocal(void *to, unsigned int from) const override
size_t toLocal(char &to, const void *from) const override
Convert one value from VAX format to local format.
size_t fromLocal(void *to, short from) const override
size_t toLocal(unsigned short &to, const void *from) const override
size_t fromLocal(void *to, int from) const override
unsigned int externalSize(const short *) const override
size_t fromLocal(void *to, uInt64 from) const override
size_t toLocal(int *to, const void *from, size_t nr) const override
size_t toLocal(int &to, const void *from) const override
size_t fromLocal(void *to, const double *from, size_t nr) const override
size_t toLocal(Int64 &to, const void *from) const override
size_t toLocal(uInt64 *to, const void *from, size_t nr) const override
size_t fromLocal(void *to, const short *from, size_t nr) const override
size_t toLocal(double &to, const void *from) const override
size_t fromLocal(void *to, const int *from, size_t nr) const override
unsigned int externalSize(const uInt64 *) const override
Bool canCopy(const unsigned char *) const override
size_t fromLocal(void *to, const unsigned char *from, size_t nr) const override
Bool canCopy(const char *) const override
Determine if the data for a data type can be simply copied, thus if no conversion is needed.
size_t toLocal(Int64 *to, const void *from, size_t nr) const override
Bool canCopy(const Int64 *) const override
unsigned int externalSize(const unsigned char *) const override
size_t fromLocal(void *to, const unsigned short *from, size_t nr) const override
size_t toLocal(unsigned char &to, const void *from) const override
unsigned int externalSize(const Int64 *) const override
size_t fromLocal(void *to, float from) const override
size_t toLocal(uInt64 &to, const void *from) const override
size_t fromLocal(void *to, unsigned char from) const override
unsigned int externalSize(const int *) const override
size_t fromLocal(void *to, Int64 from) const override
unsigned int externalSize(const unsigned short *) const override
Bool canCopy(const unsigned int *) const override
unsigned int externalSize(const double *) const override
size_t toLocal(float *to, const void *from, size_t nr) const override
size_t fromLocal(void *to, const char *from, size_t nr) const override
Convert nr values from local format to VAX format.
size_t fromLocal(void *to, double from) const override
Bool canCopy(const double *) const override
~VAXDataConversion() override
size_t fromLocal(void *to, const unsigned int *from, size_t nr) const override
Bool canCopy(const float *) const override
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.
unsigned long long uInt64