JugiMap Framework
|
Extended BinaryStreamReader class which utilizes the standard library ifstream class for reading. More...
#include <jmStreams.h>
Inherits BinaryStreamReader.
Public Member Functions | |
StdBinaryFileStreamReader (const std::string &fileName) | |
Constructor. More... | |
bool | IsOpen () override |
Returns true if the stream of this object is open for reading; if not it returns false. More... | |
int | Pos () override |
Returns the current reading position of the stream. More... | |
void | Seek (int _pos) override |
Set the current reading position of the stream. More... | |
int | Size () override |
Returns the size of the stream. More... | |
void | Close () override |
Close the stream. More... | |
unsigned char | ReadByte () override |
Read and returns the byte number. More... | |
int | ReadInt () override |
Read and returns the integer number (4 bytes). More... | |
float | ReadFloat () override |
Read and returns the float number (4 bytes). More... | |
std::string | ReadString () override |
Read and returns the string. The length of string is written as the integer at the start. More... | |
![]() | |
virtual | ~BinaryStreamReader () |
Destructor. More... | |
Extended BinaryStreamReader class which utilizes the standard library ifstream class for reading.
StdBinaryFileStreamReader | ( | const std::string & | fileName | ) |
Constructor.
Creates a new StdBinaryFileStreamReader object and open the file fileName for reading.
|
inlineoverridevirtual |
Returns true if the stream of this object is open for reading; if not it returns false.
Implements BinaryStreamReader.
|
inlineoverridevirtual |
Returns the current reading position of the stream.
Implements BinaryStreamReader.
|
inlineoverridevirtual |
Set the current reading position of the stream.
Implements BinaryStreamReader.
|
inlineoverridevirtual |
Returns the size of the stream.
Implements BinaryStreamReader.
|
inlineoverridevirtual |
Close the stream.
Implements BinaryStreamReader.
|
inlineoverridevirtual |
Read and returns the byte number.
Implements BinaryStreamReader.
|
inlineoverridevirtual |
Read and returns the integer number (4 bytes).
Implements BinaryStreamReader.
|
inlineoverridevirtual |
Read and returns the float number (4 bytes).
Implements BinaryStreamReader.
|
overridevirtual |
Read and returns the string. The length of string is written as the integer at the start.
Implements BinaryStreamReader.