28 #ifndef CASA_RAWDATACONVERSION_H
29 #define CASA_RAWDATACONVERSION_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;
177 virtual unsigned int externalSize (
const unsigned char*)
const;
179 virtual unsigned int externalSize (
const unsigned short*)
const;
181 virtual unsigned int externalSize (
const unsigned int*)
const;
185 virtual unsigned int externalSize (
const double*)
const;
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
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.
unsigned long long uInt64
RawDataConversion()
Construct the object.
bool Bool
Define the standard types used by Casacore.
A class with virtual functions to copy without conversion.
virtual unsigned int externalSize(const char *) const
Get the external size of the data type.
virtual size_t fromLocal(void *to, char from) const
Copy one value from local to external (is a simple memcpy).
virtual ~RawDataConversion()
virtual size_t toLocal(char &to, const void *from) const
Copy one value from external to local (is a simple memcpy).
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.