Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

PXXUnpackerUtil Class Reference

#include <PXXUnpackerUtil.h>

Inheritance diagram for PXXUnpackerUtil:

PXXObject TObject List of all members.

Public Member Functions

 SET_LOGGER ("PXXObject")
virtual ~PXXUnpackerUtil ()

Static Public Member Functions

static Bool8b_t IsBigEndianMachine ()
static void ByteSwap (Short16b_t &t_short)
static void ByteSwap (Int32b_t &t_int)
static void ByteSwap (Long64b_t &t_long)
static void ByteSwap (Float32b_t &t_float)
static void ByteSwap (Double64b_t &t_double)

Static Public Attributes

static const Int32b_t kCharSize_
static const Int32b_t kShortSize_
static const Int32b_t kIntSize_
static const Int32b_t kLongSize_
static const Int32b_t kFloatSize_
static const Int32b_t kDoubleSize_

Protected Member Functions

 PXXUnpackerUtil ()

Detailed Description

PXXUnpackerUtil //

This is an utility class for unpacker. All functions must be static so that // you don't need to instanciate the class. //

Author:
Kotoyo Hoshina 24/Aug/05 //


Constructor & Destructor Documentation

virtual PXXUnpackerUtil::~PXXUnpackerUtil  )  [inline, virtual]
 

Destructor

PXXUnpackerUtil::PXXUnpackerUtil  )  [inline, protected]
 

protected constructor


Member Function Documentation

static void PXXUnpackerUtil::ByteSwap Double64b_t t_double  )  [static]
 

static void PXXUnpackerUtil::ByteSwap Float32b_t t_float  )  [static]
 

static void PXXUnpackerUtil::ByteSwap Long64b_t t_long  )  [static]
 

static void PXXUnpackerUtil::ByteSwap Int32b_t t_int  )  [static]
 

static void PXXUnpackerUtil::ByteSwap Short16b_t t_short  )  [static]
 

Static functions to do byte swap. It modify the input arguments in order to avoid any risk to use un-swapped(wrong) value.

static Bool8b_t PXXUnpackerUtil::IsBigEndianMachine  )  [static]
 

Test your machine byte order. It keep the result to the fIsBigEndianMachine_ whose initial value is -1. If the value has changed, it just return the fIsBigEndianMachine_ without doing endian check.

PXXUnpackerUtil::SET_LOGGER "PXXObject"   ) 
 

Reimplemented from PXXObject.


Member Data Documentation

const Int32b_t PXXUnpackerUtil::kCharSize_ [static]
 

public size constants

const Int32b_t PXXUnpackerUtil::kDoubleSize_ [static]
 

const Int32b_t PXXUnpackerUtil::kFloatSize_ [static]
 

const Int32b_t PXXUnpackerUtil::kIntSize_ [static]
 

const Int32b_t PXXUnpackerUtil::kLongSize_ [static]
 

const Int32b_t PXXUnpackerUtil::kShortSize_ [static]
 


The documentation for this class was generated from the following file:


Generated on Thu Nov 10 14:06:37 2005 by doxygen version 1.4.1