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

lti::endianness::oppositeEndian Class Reference

if file endianness is the opposite as the system endianness More...

#include <ltiIOFunctor.h>

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

List of all members.

Public Member Functions

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

Detailed Description

if file endianness is the opposite as the system endianness


Member Function Documentation

virtual const char* lti::endianness::oppositeEndian::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::endianness::defaultEndian.

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

read a uint32

Reimplemented from lti::endianness::defaultEndian.

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

read a int32

Reimplemented from lti::endianness::defaultEndian.

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

read a uint16 (2 bytes)

Reimplemented from lti::endianness::defaultEndian.

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

read a int16 (2 bytes)

Reimplemented from lti::endianness::defaultEndian.

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

write a uint32

Reimplemented from lti::endianness::defaultEndian.

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

write a int32

Reimplemented from lti::endianness::defaultEndian.

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

write a uint16 (2 bytes)

Reimplemented from lti::endianness::defaultEndian.

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

write a int16 (2 bytes)

Reimplemented from lti::endianness::defaultEndian.


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