28 #ifndef CASA_IBMDATACONVERSION_H
29 #define CASA_IBMDATACONVERSION_H
84 virtual size_t toLocal (
char& to,
const void* from)
const;
85 virtual size_t toLocal (
unsigned char& to,
const void* from)
const;
86 virtual size_t toLocal (
short& to,
const void* from)
const;
87 virtual size_t toLocal (
unsigned short& to,
const void* from)
const;
88 virtual size_t toLocal (
int& to,
const void* from)
const;
89 virtual size_t toLocal (
unsigned int& to,
const void* from)
const;
90 virtual size_t toLocal (
Int64& to,
const void* from)
const;
92 virtual size_t toLocal (
float& to,
const void* from)
const;
93 virtual size_t toLocal (
double& to,
const void* from)
const;
103 virtual size_t toLocal (
char* to,
const void* from,
105 virtual size_t toLocal (
unsigned char* to,
const void* from,
107 virtual size_t toLocal (
short* to,
const void* from,
109 virtual size_t toLocal (
unsigned short* to,
const void* from,
111 virtual size_t toLocal (
int* to,
const void* from,
113 virtual size_t toLocal (
unsigned int* to,
const void* from,
119 virtual size_t toLocal (
float* to,
const void* from,
121 virtual size_t toLocal (
double* to,
const void* from,
132 virtual size_t fromLocal (
void* to,
char from)
const;
133 virtual size_t fromLocal (
void* to,
unsigned char from)
const;
134 virtual size_t fromLocal (
void* to,
short from)
const;
135 virtual size_t fromLocal (
void* to,
unsigned short from)
const;
136 virtual size_t fromLocal (
void* to,
int from)
const;
137 virtual size_t fromLocal (
void* to,
unsigned int from)
const;
140 virtual size_t fromLocal (
void* to,
float from)
const;
141 virtual size_t fromLocal (
void* to,
double from)
const;
151 virtual size_t fromLocal (
void* to,
const char* from,
153 virtual size_t fromLocal (
void* to,
const unsigned char* from,
155 virtual size_t fromLocal (
void* to,
const short* from,
157 virtual size_t fromLocal (
void* to,
const unsigned short* from,
159 virtual size_t fromLocal (
void* to,
const int* from,
161 virtual size_t fromLocal (
void* to,
const unsigned int* from,
167 virtual size_t fromLocal (
void* to,
const float* from,
169 virtual size_t fromLocal (
void* to,
const double* from,
179 virtual Bool canCopy (
const unsigned short*)
const;
191 virtual unsigned int externalSize (
const unsigned char*)
const;
193 virtual unsigned int externalSize (
const unsigned short*)
const;
195 virtual unsigned int externalSize (
const unsigned int*)
const;
199 virtual unsigned int externalSize (
const double*)
const;
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
Abstract base class with functions to convert any format.
virtual size_t toLocal(char &to, const void *from) const
Convert one value from IBM format to local format.
unsigned long long uInt64
IBMDataConversion()
Construct the object.
A class with virtual functions to convert IBM format.
bool Bool
Define the standard types used by Casacore.
virtual size_t fromLocal(void *to, char from) const
Convert one value from local format to IBM 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...
virtual ~IBMDataConversion()
virtual unsigned int externalSize(const char *) const
Get the external size of the data type.