Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

mpcl::system::ISystem::TMachineDependent Class Reference

Machine dependent class. More...

#include <system.hh>

Inheritance diagram for mpcl::system::ISystem::TMachineDependent:

mpcl::system::ISystem::TBigEndianBuffer mpcl::system::ISystem::TLittleEndianBuffer List of all members.

Public Methods

 TMachineDependent (void)
 Builds a new instance.

virtual ~TMachineDependent (void)
 Destroys the instance.

bool isBigEndian (void) const
bool isLittleEndian (void) const
long int getEndianIndependentLongInt (EEndianness eENDIAN_TYPE, const unsigned char *pkucSOURCE_BUFFER, std::size_t zLENGTH) const

Protected Types

enum  EEndianness { eLittleEndian, eBigEndian }
 Different types of endianness. More...


Protected Attributes

EEndianness eEndianType
 Machine Endianness.


Detailed Description

Machine dependent class.

Definition at line 98 of file system.hh.


Member Enumeration Documentation

enum mpcl::system::ISystem::TMachineDependent::EEndianness [protected]
 

Different types of endianness.

Enumeration values:
eLittleEndian  Little endian.
eBigEndian  Big endian.

Definition at line 104 of file system.hh.


Member Function Documentation

long int mpcl::system::ISystem::TMachineDependent::getEndianIndependentLongInt EEndianness    eENDIAN_TYPE,
const unsigned char *    pkucSOURCE_BUFFER,
std::size_t    zLENGTH
const
 

Returns a long integer from binary buffer, no matter what type of endian use this machine.

Parameters:
eENDIAN_TYPE  Endian type.
pkucSOURCE_BUFFER  Source endianness dependent buffer.
zLENGTH  Length of that buffer.
Returns:
A long integer result from converting the binary buffer.
See also:
EEndianness.

Definition at line 71 of file system.cc.

References eLittleEndian.

Referenced by mpcl::system::ISystem::TBigEndianBuffer::operator long int(), and mpcl::system::ISystem::TLittleEndianBuffer::operator long int().

bool mpcl::system::ISystem::TMachineDependent::isBigEndian void    const [inline]
 

Returns true if buffer is big-endian.

Returns:
True if buffer is big-endian.

Definition at line 137 of file system.hh.

References eBigEndian, and eEndianType.

bool mpcl::system::ISystem::TMachineDependent::isLittleEndian void    const [inline]
 

Returns true if buffer is little-endian.

Returns:
True if buffer is little-endian.

Definition at line 146 of file system.hh.

References eEndianType, and eLittleEndian.


The documentation for this class was generated from the following files:
Generated on Mon Oct 13 02:35:25 2003 for MPCL by doxygen1.2.18