PixelLightAPI
.
|
Abstract buffered reader base class. More...
#include <BufferedReader.h>
Public Member Functions | |
virtual | ~BufferedReader () |
Destructor. | |
virtual void | Close ()=0 |
Closes the reader. | |
virtual bool | IsEof () const =0 |
Check if the end of the stream has been reached. | |
virtual String::EFormat | GetStringFormat () const =0 |
Returns the string encoding format to use when dealing with string functions. | |
virtual int | GetChar ()=0 |
Returns a character read at the current position. | |
virtual String | GetString (uint32 nSize)=0 |
Returns a string of a given size read at the current position. | |
virtual int | ReadChar ()=0 |
Reads a character at the current position and moves to the position after that. | |
virtual String | ReadString (uint32 nSize)=0 |
Reads a string at the current position and moves to the position after that. | |
virtual bool | IsString (const String &sString)=0 |
Checks if the next string equals the given one (case sensitive) | |
virtual bool | IsStringNoCase (const String &sString)=0 |
Checks if the next string equals the given one (not case sensitive) | |
virtual uint32 | Tell () const =0 |
Returns the current position. | |
virtual bool | Seek (uint32 nPos)=0 |
Set the current position. | |
Protected Member Functions | |
BufferedReader () | |
Constructor. | |
PLCORE_API | BufferedReader (const BufferedReader &cSource) |
Copy constructor. | |
PLCORE_API BufferedReader & | operator= (const BufferedReader &cSource) |
Copy operator. |
Abstract buffered reader base class.
virtual PLCore::BufferedReader::~BufferedReader | ( | ) | [inline, virtual] |
Destructor.
PLCore::BufferedReader::BufferedReader | ( | ) | [inline, protected] |
PLCORE_API PLCore::BufferedReader::BufferedReader | ( | const BufferedReader & | cSource | ) | [inline, protected] |
Copy constructor.
[in] | cSource | Source to copy from |
virtual void PLCore::BufferedReader::Close | ( | ) | [pure virtual] |
Closes the reader.
Implemented in PLCore::BufferedReaderFile, and PLCore::BufferedReaderString.
virtual bool PLCore::BufferedReader::IsEof | ( | ) | const [pure virtual] |
Check if the end of the stream has been reached.
Implemented in PLCore::BufferedReaderFile, and PLCore::BufferedReaderString.
virtual String::EFormat PLCore::BufferedReader::GetStringFormat | ( | ) | const [pure virtual] |
Returns the string encoding format to use when dealing with string functions.
Implemented in PLCore::BufferedReaderFile, and PLCore::BufferedReaderString.
virtual int PLCore::BufferedReader::GetChar | ( | ) | [pure virtual] |
Returns a character read at the current position.
Implemented in PLCore::BufferedReaderFile, and PLCore::BufferedReaderString.
virtual String PLCore::BufferedReader::GetString | ( | uint32 | nSize | ) | [pure virtual] |
Returns a string of a given size read at the current position.
[in] | nSize | Number of characters to read |
Implemented in PLCore::BufferedReaderFile, and PLCore::BufferedReaderString.
virtual int PLCore::BufferedReader::ReadChar | ( | ) | [pure virtual] |
Reads a character at the current position and moves to the position after that.
Implemented in PLCore::BufferedReaderFile, and PLCore::BufferedReaderString.
virtual String PLCore::BufferedReader::ReadString | ( | uint32 | nSize | ) | [pure virtual] |
Reads a string at the current position and moves to the position after that.
[in] | nSize | Number of characters to read |
Implemented in PLCore::BufferedReaderFile, and PLCore::BufferedReaderString.
virtual bool PLCore::BufferedReader::IsString | ( | const String & | sString | ) | [pure virtual] |
Checks if the next string equals the given one (case sensitive)
[in] | sString | String to compare with (length of this string is used to compare) |
Implemented in PLCore::BufferedReaderFile, and PLCore::BufferedReaderString.
virtual bool PLCore::BufferedReader::IsStringNoCase | ( | const String & | sString | ) | [pure virtual] |
Checks if the next string equals the given one (not case sensitive)
[in] | sString | String to compare with (length of this string is used to compare) |
Implemented in PLCore::BufferedReaderFile, and PLCore::BufferedReaderString.
virtual uint32 PLCore::BufferedReader::Tell | ( | ) | const [pure virtual] |
Returns the current position.
Implemented in PLCore::BufferedReaderFile, and PLCore::BufferedReaderString.
virtual bool PLCore::BufferedReader::Seek | ( | uint32 | nPos | ) | [pure virtual] |
Set the current position.
[in] | nPos | New position |
Implemented in PLCore::BufferedReaderFile, and PLCore::BufferedReaderString.
PLCORE_API BufferedReader& PLCore::BufferedReader::operator= | ( | const BufferedReader & | cSource | ) | [inline, protected] |
Copy operator.
[in] | cSource | Source to copy from |
|