  | 
  
    Isis 3 Programmer Reference
    
   | 
 
 
 
 
    1 #ifndef EndianSwapper_h 
    2 #define EndianSwapper_h 
   10 #include "IException.h" 
   79       float Float(
void *buf);
 
   86       bool willSwap()
 const {
 
 
 
float Float(void *buf)
Swaps a floating point value.
 
double p_double
Union containing the output double precision value with swapped bytes.
 
unsigned short int UnsignedShortInt(void *buf)
Swaps an unsigned short integer value.
 
float p_float
Union containing the output floating point value with swapped bytes.
 
int p_swapDirection
Indicates which direction to increment the pointer for swapping.
 
uint32_t Uint32_t(void *buf)
Swaps a 32bit unsigned integer.
 
unsigned short int p_uShortInt
Union containing the output unsigned short integer 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.
 
EndianSwapper(QString inputEndian)
Constructs an EndianSwapper object, determining whether swapping of bytes actually needs to occur and...
 
union Isis::EndianSwapper::@0 p_swapper
Union containing the output double precision value, floating point value, short integer value,...
 
char p_char[8]
Union containing the output value in byte format.
 
int p_int
Union containing the output 4 byte integer value with swapped bytes.
 
int Int(void *buf)
Swaps a 4 byte integer value.
 
long long int p_longLongInt
Union containing the output 8 byte integer value with swapped bytes.
 
long long int LongLongInt(void *buf)
Swaps an 8 byte integer value.
 
uint32_t p_uint32
Union containing the output uint32_t value with swapped bytes.
 
double Double(void *buf)
Swaps a double precision value.
 
short int p_shortInt
Union containing the output 2 byte integer value with swapped bytes.
 
This is free and unencumbered software released into the public domain.