Public Member Functions

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, bool bAddPreamble=true) const
TString toHex (bool bTrimZeros=false, bool bAddPreamble=true) 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

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

Compares two bytes

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

Assigns a byte

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

Assigns a byte

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

Compares two bytes

TString TByte::toBinary ( bool  bTrimZeros = false,
bool  bAddPreamble = true 
) const

This converts the byte value to a binary notation

Returns:
binary notation
TString TByte::toHex ( bool  bTrimZeros = false,
bool  bAddPreamble = true 
) const

This converts the byte value to a binary notation

Returns:
binary notation

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:33