28 #ifndef CASA_VAXDATACONVERSION_H
29 #define CASA_VAXDATACONVERSION_H
79 virtual size_t toLocal (
char& to,
const void* from)
const;
80 virtual size_t toLocal (
unsigned char& to,
const void* from)
const;
81 virtual size_t toLocal (
short& to,
const void* from)
const;
82 virtual size_t toLocal (
unsigned short& to,
const void* from)
const;
83 virtual size_t toLocal (
int& to,
const void* from)
const;
84 virtual size_t toLocal (
unsigned int& to,
const void* from)
const;
85 virtual size_t toLocal (
Int64& to,
const void* from)
const;
87 virtual size_t toLocal (
float& to,
const void* from)
const;
88 virtual size_t toLocal (
double& to,
const void* from)
const;
94 virtual size_t toLocal (
char* to,
const void* from,
96 virtual size_t toLocal (
unsigned char* to,
const void* from,
98 virtual size_t toLocal (
short* to,
const void* from,
100 virtual size_t toLocal (
unsigned short* to,
const void* from,
102 virtual size_t toLocal (
int* to,
const void* from,
104 virtual size_t toLocal (
unsigned int* to,
const void* from,
110 virtual size_t toLocal (
float* to,
const void* from,
112 virtual size_t toLocal (
double* to,
const void* from,
119 virtual size_t fromLocal (
void* to,
char from)
const;
120 virtual size_t fromLocal (
void* to,
unsigned char from)
const;
121 virtual size_t fromLocal (
void* to,
short from)
const;
122 virtual size_t fromLocal (
void* to,
unsigned short from)
const;
123 virtual size_t fromLocal (
void* to,
int from)
const;
124 virtual size_t fromLocal (
void* to,
unsigned int from)
const;
127 virtual size_t fromLocal (
void* to,
float from)
const;
128 virtual size_t fromLocal (
void* to,
double from)
const;
134 virtual size_t fromLocal (
void* to,
const char* from,
136 virtual size_t fromLocal (
void* to,
const unsigned char* from,
138 virtual size_t fromLocal (
void* to,
const short* from,
140 virtual size_t fromLocal (
void* to,
const unsigned short* from,
142 virtual size_t fromLocal (
void* to,
const int* from,
144 virtual size_t fromLocal (
void* to,
const unsigned int* from,
150 virtual size_t fromLocal (
void* to,
const float* from,
152 virtual size_t fromLocal (
void* to,
const double* from,
162 virtual Bool canCopy (
const unsigned short*)
const;
174 virtual unsigned int externalSize (
const unsigned char*)
const;
176 virtual unsigned int externalSize (
const unsigned short*)
const;
178 virtual unsigned int externalSize (
const unsigned int*)
const;
182 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 ~VAXDataConversion()
unsigned long long uInt64
virtual size_t toLocal(char &to, const void *from) const
Convert one value from VAX format to local format.
virtual unsigned int externalSize(const char *) const
Get the external size of the data type.
VAXDataConversion()
Construct the object.
virtual Bool canCopy(const char *) const
Determine if the data for a data type can be simply copied, thus if no conversion is needed...
A class with virtual functions to convert VAX 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 VAX format.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.