24 #ifndef EndianSwapper_h
25 #define EndianSwapper_h
93 float Float(
void *buf);
99 bool willSwap()
const {
int p_swapDirection
Indicates which direction to increment the pointer for swapping.
float Float(void *buf)
Swaps a floating point value.
char p_char[8]
Union containing the output value in byte format.
long long int p_longLongInt
Union containing the output 8 byte integer value with swapped bytes.
int p_int
Union containing the output 4 byte integer value with swapped bytes.
unsigned short int UnsignedShortInt(void *buf)
Swaps an unsigned short integer value.
double p_double
Union containing the output double precision value with swapped bytes.
long long int LongLongInt(void *buf)
Swaps an 8 byte integer value.
short int p_shortInt
Union containing the output 2 byte integer value with swapped bytes.
double Double(void *buf)
Swaps a double precision value.
float p_float
Union containing the output floating point value with swapped bytes.
~EndianSwapper()
Destroys the EndianSwapper object.
int ExportFloat(void *buf)
Swaps a floating point value for Exporting.
short int ShortInt(void *buf)
Swaps a short integer value.
bool p_needSwap
Indicates whether bytes need to be swapped.
union Isis::EndianSwapper::@0 p_swapper
Union containing the output double precision value, floating point value, short integer value...
EndianSwapper(QString inputEndian)
Constructs an EndianSwapper object, determining whether swapping of bytes actually needs to occur and...
unsigned short int p_uShortInt
Union containing the output unsigned short integer value with swapped bytes.
int Int(void *buf)
Swaps a 4 byte integer value.