LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::endianness::defaultEndian Class Reference

This class encapsulates the endianness of the processor used. More...

#include <ltiIOFunctor.h>

Inheritance diagram for lti::endianness::defaultEndian:
Inheritance graph
[legend]
Collaboration diagram for lti::endianness::defaultEndian:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const char * getTypeName () const
virtual byteread (std::istream &in, byte &data) const
virtual ubyteread (std::istream &in, ubyte &data) const
virtual int16read (std::istream &in, int16 &data) const
virtual uint16read (std::istream &in, uint16 &data) const
virtual int32read (std::istream &in, int32 &data) const
virtual uint32read (std::istream &in, uint32 &data) const
virtual const bytewrite (std::ostream &out, const byte &data) const
virtual const ubytewrite (std::ostream &out, const ubyte &data) const
virtual const int16write (std::ostream &out, const int16 &data) const
virtual const uint16write (std::ostream &out, const uint16 &data) const
virtual const int32write (std::ostream &out, const int32 &data) const
virtual const uint32write (std::ostream &out, const uint32 &data) const

Detailed Description

This class encapsulates the endianness of the processor used.

The "defaultEndian" will always be the same as the system one.


Member Function Documentation

virtual const char* lti::endianness::defaultEndian::getTypeName (  )  const [virtual]

returns the name of this class.

Each class has to overload this function and return its name. The returned string is system-independent; however, template classes do not consider the template argument.

Reimplemented from lti::object.

Reimplemented in lti::endianness::oppositeEndian.

virtual uint32& lti::endianness::defaultEndian::read ( std::istream &  in,
uint32 data 
) const [virtual]

read a uint32

Reimplemented in lti::endianness::oppositeEndian.

virtual int32& lti::endianness::defaultEndian::read ( std::istream &  in,
int32 data 
) const [virtual]

read a int32

Reimplemented in lti::endianness::oppositeEndian.

virtual uint16& lti::endianness::defaultEndian::read ( std::istream &  in,
uint16 data 
) const [virtual]

read a uint16 (2 bytes)

Reimplemented in lti::endianness::oppositeEndian.

virtual int16& lti::endianness::defaultEndian::read ( std::istream &  in,
int16 data 
) const [virtual]

read a int16 (2 bytes)

Reimplemented in lti::endianness::oppositeEndian.

virtual ubyte& lti::endianness::defaultEndian::read ( std::istream &  in,
ubyte data 
) const [virtual]

read a ubyte

virtual byte& lti::endianness::defaultEndian::read ( std::istream &  in,
byte data 
) const [virtual]

read a byte

virtual const uint32& lti::endianness::defaultEndian::write ( std::ostream &  out,
const uint32 data 
) const [virtual]

write a uint32

Reimplemented in lti::endianness::oppositeEndian.

virtual const int32& lti::endianness::defaultEndian::write ( std::ostream &  out,
const int32 data 
) const [virtual]

write a int32

Reimplemented in lti::endianness::oppositeEndian.

virtual const uint16& lti::endianness::defaultEndian::write ( std::ostream &  out,
const uint16 data 
) const [virtual]

write a uint16 (2 bytes)

Reimplemented in lti::endianness::oppositeEndian.

virtual const int16& lti::endianness::defaultEndian::write ( std::ostream &  out,
const int16 data 
) const [virtual]

write a int16 (2 bytes)

Reimplemented in lti::endianness::oppositeEndian.

virtual const ubyte& lti::endianness::defaultEndian::write ( std::ostream &  out,
const ubyte data 
) const [virtual]

write a ubyte

virtual const byte& lti::endianness::defaultEndian::write ( std::ostream &  out,
const byte data 
) const [virtual]

write a byte


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

Generated on Sat Apr 10 15:28:03 2010 for LTI-Lib by Doxygen 1.6.1