zeus::TByte Class Reference

#include <Byte.h>

Inheritance diagram for zeus::TByte:

zeus::TZObject zeus::IZUnknown

List of all members.

Public Member Functions

 TByte ()
 TByte (const TByte &Inpar)
 TByte (Uint8 ucByte)
virtual ~TByte ()
TString toBinary (bool bTrimZeros=false) const
TString toHex (bool bTrimZeros=false) const
Uint8 getValue () const
bool operator== (const TByte &Inpar) const
bool operator!= (const TByte &Inpar) const
TByteoperator= (const TByte &Inpar)
TByteoperator= (Uint8 ucInpar)


Detailed Description

This class wrapps a byte and defines methods for converting bytes to different notations

Constructor & Destructor Documentation

TByte::TByte (  ) 

Creates a byte

TByte::TByte ( const TByte Inpar  ) 

Creates a byte

TByte::TByte ( Uint8  ucByte  ) 

Creates a byte

TByte::~TByte (  )  [virtual]

Destroys the byte


Member Function Documentation

TString TByte::toBinary ( bool  bTrimZeros = false  )  const

This converts the byte value to a binary notation

Returns:
binary notation

TString TByte::toHex ( bool  bTrimZeros = false  )  const

This converts the byte value to a binary notation

Returns:
binary notation

Uint8 zeus::TByte::getValue (  )  const [inline]

bool zeus::TByte::operator== ( const TByte Inpar  )  const [inline]

Compares two bytes

bool zeus::TByte::operator!= ( const TByte Inpar  )  const [inline]

Compares two bytes

TByte & zeus::TByte::operator= ( const TByte Inpar  )  [inline]

Assigns a byte

TByte & zeus::TByte::operator= ( Uint8  ucInpar  )  [inline]

Assigns a byte


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


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Wed Oct 28 21:42:34 2009