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

Teddy::SysSupport::EndianOut Class Reference

Endian sensitive byte, short and float writing. More...

#include <EndianOut.h>

Inheritance diagram for Teddy::SysSupport::EndianOut:

Inheritance graph
[legend]
Collaboration diagram for Teddy::SysSupport::EndianOut:

Collaboration graph
[legend]
List of all members.

Public Methods

 EndianOut (const char *file_name)
 Constructor. More...

 ~EndianOut ()
 Destructor. More...

void open (const char *name)
 Stream can be reused after constructor by closeing and opening. More...

void close ()
 Close stream. More...

void write_byte (const int item)
 Write byte to stream. More...

void write_short (const unsigned short item)
 Write short. More...

void write_long (const unsigned long item)
 Write long. More...

void write_float (const float item)
 Write float. More...


Private Attributes

ofstream * ofs

Detailed Description

Endian sensitive byte, short and float writing.

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

Definition at line 43 of file EndianOut.h.


Constructor & Destructor Documentation

Teddy::SysSupport::EndianOut::EndianOut const char *    file_name
 

Constructor.

Definition at line 34 of file EndianOut.cpp.

References open.

Teddy::SysSupport::EndianOut::~EndianOut  
 

Destructor.

Definition at line 40 of file EndianOut.cpp.

References close.


Member Function Documentation

void Teddy::SysSupport::EndianOut::close  
 

Close stream.

Definition at line 52 of file EndianOut.cpp.

References ofs.

Referenced by ~EndianOut.

void Teddy::SysSupport::EndianOut::open const char *    name
 

Stream can be reused after constructor by closeing and opening.

Definition at line 46 of file EndianOut.cpp.

References ofs.

Referenced by EndianOut.

void Teddy::SysSupport::EndianOut::write_byte const int    item
 

Write byte to stream.

Definition at line 58 of file EndianOut.cpp.

References ofs.

Referenced by write_float, write_long, and write_short.

void Teddy::SysSupport::EndianOut::write_float const float    item
 

Write float.

Definition at line 95 of file EndianOut.cpp.

References Teddy::SysSupport::EndianIO::q_MSBfirst, and write_byte.

void Teddy::SysSupport::EndianOut::write_long const unsigned long    item
 

Write long.

Definition at line 78 of file EndianOut.cpp.

References Teddy::SysSupport::EndianIO::q_MSBfirst, and write_byte.

void Teddy::SysSupport::EndianOut::write_short const unsigned short    item
 

Write short.

Definition at line 66 of file EndianOut.cpp.

References Teddy::SysSupport::EndianIO::q_MSBfirst, and write_byte.


Member Data Documentation

ofstream* Teddy::SysSupport::EndianOut::ofs [private]
 

Definition at line 44 of file EndianOut.h.

Referenced by close, open, and write_byte.


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