Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::SysSupport::EndianIO Class Reference

Baseclass for endian sensitive file reading and writing. More...

#include <EndianIO.h>

Inheritance diagram for Teddy::SysSupport::EndianIO:

Inheritance graph
[legend]
List of all members.

Public Methods

 EndianIO ()
 Default constructor. More...

void set_bigendian ()
 Set bigendian byteorder for stream. More...

void set_littlendian ()
 Set little-endian byteorder for stream. More...

bool q_MSBfirst () const
 Is byteorder bigendian? More...


Private Types

enum  { MSBfirst, LSBfirst }

Private Attributes

enum Teddy::SysSupport::EndianIO:: { ... }  byte_order

Detailed Description

Baseclass for endian sensitive file reading and writing.

A very very poor implementation for endian independent access to endian sensitive data,

Definition at line 44 of file EndianIO.h.


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
MSBfirst 
LSBfirst 

Definition at line 45 of file EndianIO.h.


Constructor & Destructor Documentation

Teddy::SysSupport::EndianIO::EndianIO  
 

Default constructor.

Definition at line 33 of file EndianIO.cpp.


Member Function Documentation

bool Teddy::SysSupport::EndianIO::q_MSBfirst   const
 

Is byteorder bigendian?

Definition at line 50 of file EndianIO.cpp.

References byte_order, and MSBfirst.

Referenced by Teddy::SysSupport::EndianIn::read_float, Teddy::SysSupport::EndianIn::read_long, Teddy::SysSupport::EndianIn::read_short, Teddy::SysSupport::EndianOut::write_float, Teddy::SysSupport::EndianOut::write_long, and Teddy::SysSupport::EndianOut::write_short.

void Teddy::SysSupport::EndianIO::set_bigendian  
 

Set bigendian byteorder for stream.

Definition at line 38 of file EndianIO.cpp.

References byte_order, and MSBfirst.

void Teddy::SysSupport::EndianIO::set_littlendian  
 

Set little-endian byteorder for stream.

Definition at line 44 of file EndianIO.cpp.

References byte_order, and LSBfirst.


Member Data Documentation

enum { ... } Teddy::SysSupport::EndianIO::byte_order [private]
 

Referenced by q_MSBfirst, set_bigendian, and set_littlendian.


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