VolHeader.C File Reference

Volume Header class for SimVoleon formated voxel data. More...

#include <fcntl.h>
#include <errno.h>
#include <termios.h>
#include <term.h>
#include <sys/select.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <cassert>
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <vector>
#include "VolHeader.H"
#include "debug.H"

Functions

uint32_t ntoh_uint32 (const uint32_t value)
 Convert network byte order (Big Endian) to host byte order.
float ntoh_float (const float value)
 Convert network byte order (Big Endian) to host byte order.
uint32_t hton_uint32 (const uint32_t value)
 Convert host byte order to network byte order (Big Endian).
float hton_float (const float value)
 Convert host byte order to network byte order (Big Endian).

Variables

static const UNUSED char * RCSid = "@(#) $Id: VolHeader.C,v 1.14 2004/11/03 00:42:35 schwehr Exp $"
 Let the debugger find out which version is being used.


Detailed Description

Volume Header class for SimVoleon formated voxel data.


Function Documentation

float hton_float const float  value  ) 
 

Convert host byte order to network byte order (Big Endian).

uint32_t hton_uint32 const uint32_t  value  ) 
 

Convert host byte order to network byte order (Big Endian).

float ntoh_float const float  value  ) 
 

Convert network byte order (Big Endian) to host byte order.

uint32_t ntoh_uint32 const uint32_t  value  ) 
 

Convert network byte order (Big Endian) to host byte order.


Variable Documentation

const UNUSED char* RCSid = "@(#) $Id: VolHeader.C,v 1.14 2004/11/03 00:42:35 schwehr Exp $" [static]
 

Let the debugger find out which version is being used.


Generated on Thu Mar 2 17:55:25 2006 for density by  doxygen 1.4.6