latest version v1.9 - last update 10 Apr 2010 |
This class encapsulates the endianness of the processor used. More...
#include <ltiIOFunctor.h>
Public Member Functions | |
virtual const char * | getTypeName () const |
virtual byte & | read (std::istream &in, byte &data) const |
virtual ubyte & | read (std::istream &in, ubyte &data) const |
virtual int16 & | read (std::istream &in, int16 &data) const |
virtual uint16 & | read (std::istream &in, uint16 &data) const |
virtual int32 & | read (std::istream &in, int32 &data) const |
virtual uint32 & | read (std::istream &in, uint32 &data) const |
virtual const byte & | write (std::ostream &out, const byte &data) const |
virtual const ubyte & | write (std::ostream &out, const ubyte &data) const |
virtual const int16 & | write (std::ostream &out, const int16 &data) const |
virtual const uint16 & | write (std::ostream &out, const uint16 &data) const |
virtual const int32 & | write (std::ostream &out, const int32 &data) const |
virtual const uint32 & | write (std::ostream &out, const uint32 &data) const |
This class encapsulates the endianness of the processor used.
The "defaultEndian" will always be the same as the system one.
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