28 #ifndef CASA_LECANONICALDATACONVERSION_H
29 #define CASA_LECANONICALDATACONVERSION_H
81 virtual size_t toLocal (
char& to,
const void* from)
const;
82 virtual size_t toLocal (
unsigned char& to,
const void* from)
const;
83 virtual size_t toLocal (
short& to,
const void* from)
const;
84 virtual size_t toLocal (
unsigned short& to,
const void* from)
const;
85 virtual size_t toLocal (
int& to,
const void* from)
const;
86 virtual size_t toLocal (
unsigned int& to,
const void* from)
const;
87 virtual size_t toLocal (
Int64& to,
const void* from)
const;
89 virtual size_t toLocal (
float& to,
const void* from)
const;
90 virtual size_t toLocal (
double& to,
const void* from)
const;
96 virtual size_t toLocal (
char* to,
const void* from,
98 virtual size_t toLocal (
unsigned char* to,
const void* from,
100 virtual size_t toLocal (
short* to,
const void* from,
102 virtual size_t toLocal (
unsigned short* to,
const void* from,
104 virtual size_t toLocal (
int* to,
const void* from,
106 virtual size_t toLocal (
unsigned int* to,
const void* from,
112 virtual size_t toLocal (
float* to,
const void* from,
114 virtual size_t toLocal (
double* to,
const void* from,
121 virtual size_t fromLocal (
void* to,
char from)
const;
122 virtual size_t fromLocal (
void* to,
unsigned char from)
const;
123 virtual size_t fromLocal (
void* to,
short from)
const;
124 virtual size_t fromLocal (
void* to,
unsigned short from)
const;
125 virtual size_t fromLocal (
void* to,
int from)
const;
126 virtual size_t fromLocal (
void* to,
unsigned int from)
const;
129 virtual size_t fromLocal (
void* to,
float from)
const;
130 virtual size_t fromLocal (
void* to,
double from)
const;
136 virtual size_t fromLocal (
void* to,
const char* from,
138 virtual size_t fromLocal (
void* to,
const unsigned char* from,
140 virtual size_t fromLocal (
void* to,
const short* from,
142 virtual size_t fromLocal (
void* to,
const unsigned short* from,
144 virtual size_t fromLocal (
void* to,
const int* from,
146 virtual size_t fromLocal (
void* to,
const unsigned int* from,
152 virtual size_t fromLocal (
void* to,
const float* from,
154 virtual size_t fromLocal (
void* to,
const double* from,
164 virtual Bool canCopy (
const unsigned short*)
const;
176 virtual unsigned int externalSize (
const unsigned char*)
const;
178 virtual unsigned int externalSize (
const unsigned short*)
const;
180 virtual unsigned int externalSize (
const unsigned int*)
const;
184 virtual unsigned int externalSize (
const double*)
const;
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
LECanonicalDataConversion()
Construct the object.
A class with virtual functions to convert little endian canonical format.
virtual Bool canCopy(const char *) const
Determine if the data for a data type can be simply copied, thus if no conversion is needed...
Abstract base class with functions to convert any format.
virtual unsigned int externalSize(const char *) const
Get the external size of the data type.
unsigned long long uInt64
bool Bool
Define the standard types used by Casacore.
virtual size_t toLocal(char &to, const void *from) const
Convert one value from canonical format to local format.
virtual ~LECanonicalDataConversion()
virtual size_t fromLocal(void *to, char from) const
Convert one value from local format to canonical format.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.