#include <EndianOut.h>
Inheritance diagram for Teddy::SysSupport::EndianOut:
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 |
A very very poor implementation for endian independent access to endian sensitive data,
Definition at line 43 of file EndianOut.h.
|
Constructor.
Definition at line 34 of file EndianOut.cpp. References open. |
|
Destructor.
Definition at line 40 of file EndianOut.cpp. References close. |
|
Close stream.
Definition at line 52 of file EndianOut.cpp. References ofs. Referenced by ~EndianOut. |
|
Stream can be reused after constructor by closeing and opening.
Definition at line 46 of file EndianOut.cpp. References ofs. Referenced by EndianOut. |
|
Write byte to stream.
Definition at line 58 of file EndianOut.cpp. References ofs. Referenced by write_float, write_long, and write_short. |
|
Write float.
Definition at line 95 of file EndianOut.cpp. References Teddy::SysSupport::EndianIO::q_MSBfirst, and write_byte. |
|
Write long.
Definition at line 78 of file EndianOut.cpp. References Teddy::SysSupport::EndianIO::q_MSBfirst, and write_byte. |
|
Write short.
Definition at line 66 of file EndianOut.cpp. References Teddy::SysSupport::EndianIO::q_MSBfirst, and write_byte. |
|
Definition at line 44 of file EndianOut.h. Referenced by close, open, and write_byte. |