#include <EndianIn.h>
Inheritance diagram for Teddy::SysSupport::EndianIn:


Public Methods | |
| EndianIn (const std::string &file_name=NULL) | |
| Constructor. More... | |
| ~EndianIn () | |
| Destructor. More... | |
| void | open (const std::string &file_name) |
| Same stream can be reused by closing and opening after constructor, too. More... | |
| void | close () |
| Close stream. More... | |
| unsigned long | len () |
| Get file length. More... | |
| unsigned char | read_byte () |
| Read in single byte from stream. More... | |
| unsigned short | read_short () |
| Read in two bytes and build short. More... | |
| unsigned long | read_long () |
| Read in four bytes and build long. More... | |
| float | read_float () |
| Read in four bytes and build float. More... | |
| void | read_all (char *buf) |
| NOT ENDIAN INDEPENDENT. More... | |
Private Attributes | |
| ifstream * | ifs |
A very very poor implementation for endian independent access to endian sensitive data,
Definition at line 43 of file EndianIn.h.
|
|
Constructor.
Definition at line 34 of file EndianIn.cpp. References open. |
|
|
Destructor.
Definition at line 40 of file EndianIn.cpp. References close. |
|
|
Close stream.
Definition at line 65 of file EndianIn.cpp. References ifs. Referenced by ~EndianIn. |
|
|
Get file length.
Definition at line 76 of file EndianIn.cpp. References ifs. Referenced by read_all. |
|
|
Same stream can be reused by closing and opening after constructor, too.
Definition at line 46 of file EndianIn.cpp. References ifs. Referenced by EndianIn. |
|
|
NOT ENDIAN INDEPENDENT.
Definition at line 85 of file EndianIn.cpp. |
|
|
Read in single byte from stream.
Definition at line 91 of file EndianIn.cpp. References ifs. Referenced by read_float, read_long, and read_short. |
|
|
Read in four bytes and build float.
Definition at line 138 of file EndianIn.cpp. References Teddy::SysSupport::EndianIO::q_MSBfirst, and read_byte. |
|
|
Read in four bytes and build long.
Definition at line 121 of file EndianIn.cpp. References Teddy::SysSupport::EndianIO::q_MSBfirst, and read_byte. |
|
|
Read in two bytes and build short.
Definition at line 106 of file EndianIn.cpp. References Teddy::SysSupport::EndianIO::q_MSBfirst, and read_byte. |
|
|
Definition at line 44 of file EndianIn.h. |