28 #ifndef CASA_LECANONICALDATACONVERSION_H
29 #define CASA_LECANONICALDATACONVERSION_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/OS/DataConversion.h>
81 size_t toLocal (
char& to,
const void* from)
const override;
82 size_t toLocal (
unsigned char& to,
const void* from)
const override;
83 size_t toLocal (
short& to,
const void* from)
const override;
84 size_t toLocal (
unsigned short& to,
const void* from)
const override;
85 size_t toLocal (
int& to,
const void* from)
const override;
86 size_t toLocal (
unsigned int& to,
const void* from)
const override;
89 size_t toLocal (
float& to,
const void* from)
const override;
90 size_t toLocal (
double& to,
const void* from)
const override;
96 size_t toLocal (
char* to,
const void* from,
97 size_t nr)
const override;
98 size_t toLocal (
unsigned char* to,
const void* from,
99 size_t nr)
const override;
101 size_t nr)
const override;
102 size_t toLocal (
unsigned short* to,
const void* from,
103 size_t nr)
const override;
105 size_t nr)
const override;
106 size_t toLocal (
unsigned int* to,
const void* from,
107 size_t nr)
const override;
109 size_t nr)
const override;
111 size_t nr)
const override;
113 size_t nr)
const override;
115 size_t nr)
const override;
122 size_t fromLocal (
void* to,
unsigned char from)
const override;
124 size_t fromLocal (
void* to,
unsigned short from)
const override;
126 size_t fromLocal (
void* to,
unsigned int from)
const override;
130 size_t fromLocal (
void* to,
double from)
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;
155 size_t nr)
const override;
size_t fromLocal(void *to, uInt64 from) const override
size_t toLocal(Int64 *to, const void *from, size_t nr) const override
Bool canCopy(const int *) const override
size_t toLocal(unsigned short *to, const void *from, size_t nr) const override
size_t fromLocal(void *to, const Int64 *from, size_t nr) const override
size_t fromLocal(void *to, unsigned short from) const override
unsigned int externalSize(const short *) const override
unsigned int externalSize(const float *) const override
Bool canCopy(const uInt64 *) const override
Bool canCopy(const unsigned short *) const override
size_t toLocal(char *to, const void *from, size_t nr) const override
Convert nr values from canonical format to local format.
size_t fromLocal(void *to, unsigned int from) const override
size_t fromLocal(void *to, float from) const override
size_t toLocal(uInt64 *to, const void *from, size_t nr) const override
size_t toLocal(int *to, const void *from, size_t nr) const override
unsigned int externalSize(const unsigned char *) const override
Bool canCopy(const unsigned int *) const override
size_t fromLocal(void *to, const unsigned char *from, size_t nr) const override
size_t toLocal(short &to, const void *from) const override
size_t toLocal(uInt64 &to, const void *from) const override
unsigned int externalSize(const Int64 *) const override
size_t fromLocal(void *to, const char *from, size_t nr) const override
Convert nr values from local format to canonical format.
size_t fromLocal(void *to, int from) const override
size_t toLocal(char &to, const void *from) const override
Convert one value from canonical format to local format.
Bool canCopy(const float *) const override
size_t fromLocal(void *to, short from) const override
size_t fromLocal(void *to, const unsigned int *from, size_t nr) const override
Bool canCopy(const double *) const override
unsigned int externalSize(const unsigned short *) const override
size_t toLocal(int &to, const void *from) const override
Bool canCopy(const Int64 *) const override
size_t toLocal(float *to, const void *from, size_t nr) const override
size_t toLocal(unsigned int *to, const void *from, size_t nr) const override
unsigned int externalSize(const unsigned int *) const override
size_t toLocal(float &to, const void *from) const override
virtual ~LECanonicalDataConversion()
size_t toLocal(Int64 &to, const void *from) const override
Bool canCopy(const unsigned char *) const override
size_t fromLocal(void *to, const unsigned short *from, size_t nr) const override
size_t fromLocal(void *to, const int *from, size_t nr) const override
size_t toLocal(short *to, const void *from, size_t nr) const override
Bool canCopy(const short *) const override
size_t fromLocal(void *to, const uInt64 *from, size_t nr) const override
size_t fromLocal(void *to, char from) const override
Convert one value from local format to canonical format.
size_t toLocal(unsigned char &to, const void *from) const override
LECanonicalDataConversion()
Construct the object.
size_t toLocal(unsigned short &to, const void *from) const override
unsigned int externalSize(const char *) const override
Get the external size of the data type.
size_t toLocal(unsigned int &to, const void *from) const override
unsigned int externalSize(const uInt64 *) const override
size_t fromLocal(void *to, const float *from, size_t nr) const override
size_t fromLocal(void *to, Int64 from) const override
size_t fromLocal(void *to, const double *from, size_t nr) const override
size_t toLocal(double &to, const void *from) const override
unsigned int externalSize(const double *) const override
size_t fromLocal(void *to, double from) 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.
unsigned int externalSize(const int *) const override
size_t toLocal(unsigned char *to, const void *from, size_t nr) const override
size_t fromLocal(void *to, const short *from, size_t nr) const override
size_t fromLocal(void *to, unsigned char from) const override
size_t toLocal(double *to, const void *from, size_t nr) 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