latest version v1.9 - last update 10 Apr 2010 |
if file endianness is the opposite as the system endianness More...
#include <ltiIOFunctor.h>
Public Member Functions | |
virtual const char * | getTypeName () const |
int16 & | read (std::istream &in, int16 &data) const |
uint16 & | read (std::istream &in, uint16 &data) const |
int32 & | read (std::istream &in, int32 &data) const |
uint32 & | read (std::istream &in, uint32 &data) const |
const int16 & | write (std::ostream &out, const int16 &data) const |
const uint16 & | write (std::ostream &out, const uint16 &data) const |
const int32 & | write (std::ostream &out, const int32 &data) const |
const uint32 & | write (std::ostream &out, const uint32 &data) const |
if file endianness is the opposite as the system endianness
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.
read a uint32
Reimplemented from lti::endianness::defaultEndian.
read a int32
Reimplemented from lti::endianness::defaultEndian.
read a uint16 (2 bytes)
Reimplemented from lti::endianness::defaultEndian.
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.