nidas  v1.2-1520
Classes | Namespaces | Functions
EndianConverter.h File Reference
#include <cstring>
#include <stdint.h>
#include "ThreadSupport.h"

Go to the source code of this file.

Classes

class  nidas::util::EndianConverter
 Virtual base class declaring methods for converting numeric values between little-endian and big-endian representations, and for determining the endian represenation of the host system. More...
 
class  nidas::util::FlipConverter
 EndianConverter that flips bytes, used for conversion of little-to-big and big-to-little. More...
 
class  nidas::util::NoFlipConverter
 EndianConverter that doesn't flip bytes. More...
 

Namespaces

 nidas
 Root namespace for the NCAR In-Situ Data Acquisition Software.
 
 nidas::util
 General utility classes. nidas::util contains classes of general utility, like Socket, Thread, etc. The classes use only the standard Unix system libraries and libstdc++, and have no dependency on other external packages such as an XML parser, or a logging package.
 

Functions

double nidas::util::flipDoubleIn (const void *p)
 Function for reading 8 bytes from an address, flipping the bytes, and returning the double value. More...
 
double nidas::util::flipDouble (const double &p)
 
float nidas::util::flipFloatIn (const void *p)
 Function for reading 4 bytes from an address, flipping the bytes, and returning the float value. More...
 
float nidas::util::flipFloat (const float &p)
 
int64_t nidas::util::flipInt64In (const void *p)
 Function for reading 8 bytes from an address, flipping the bytes, and returning the int64_t value. More...
 
int64_t nidas::util::flipInt64 (const int64_t &p)
 
int32_t nidas::util::flipInt32In (const void *p)
 Function for reading 4 bytes from an address, flipping the bytes, and returning the 32 bit int value. More...
 
int32_t nidas::util::flipInt32 (const int32_t &p)
 
uint32_t nidas::util::flipUint32In (const void *p)
 Function for reading 4 bytes from an address, flipping the bytes, and returning the unsigned 32 bit int value. More...
 
uint32_t nidas::util::flipUint32 (const uint32_t &p)
 
int16_t nidas::util::flipInt16In (const void *p)
 Function for reading 2 bytes from an address, flipping the bytes, and returning the 16 bit int value. More...
 
int16_t nidas::util::flipInt16 (const int16_t &p)
 
uint16_t nidas::util::flipUint16In (const void *p)
 Function for reading 2 bytes from an address, flipping the bytes, and returning the unsigned 16 bit int value. More...
 
uint16_t nidas::util::flipUint16 (const uint16_t &p)
 
void nidas::util::flipDoubleOut (const double &v, void *p)
 Function for writing an 8 byte double value to an address, flipping the bytes. More...
 
void nidas::util::flipFloatOut (const float &v, void *p)
 Function for writing a 4 byte float value to an address, flipping the bytes. More...
 
void nidas::util::flipInt64Out (const int64_t &v, void *p)
 Function for writing an 8 byte, 64 bit int value to an address, flipping the bytes. More...
 
void nidas::util::flipInt32Out (const int32_t &v, void *p)
 Function for writing a 4 byte, 32 bit int value to an address, flipping the bytes. More...
 
void nidas::util::flipUint32Out (const uint32_t &v, void *p)
 Function for writing a 4 byte unsigned 32 bit int value to an address, flipping the bytes. More...
 
void nidas::util::flipInt16Out (const int16_t &v, void *p)
 Function for writing a 2 byte 16 bit int value to an address, flipping the bytes. More...
 
void nidas::util::flipUint16Out (const uint16_t &v, void *p)
 Function for writing a 2 byte unsigned 16 bit int value to an address, flipping the bytes. More...