Reads streaming files written by CGUIStreamWriterBinary. More...
#include <GUIStreamReaderBinary.h>
Public Member Functions | |
CGUIStreamReaderBinary () | |
Constructor. | |
virtual CGUIStreamReader * | Clone () const |
void | DeleteCommentTag (const eC_Char *pcTag=NULL) |
void | DeleteCommentTag (const eC_String &kTag) |
virtual const eC_String & | GetFileSuffix () const |
void | ReadBinary (eC_TArray< eC_UByte > &aData, const eC_Char *pcTag=NULL) |
eC_Bool | ReadBool (const eC_Char *pcTag=NULL) |
eC_Byte | ReadByte (const eC_Char *pcTag=NULL) |
ColorValue_t | ReadColor (const eC_Char *pcTag=NULL) |
eC_Float | ReadFloat (const eC_Char *pcTag=NULL) |
eC_UInt | ReadHex (const eC_Char *pcTag=NULL) |
eC_Int | ReadInt (const eC_Char *pcTag=NULL) |
eC_Short | ReadShort (const eC_Char *pcTag=NULL) |
eC_Int | ReadStreamingFileHeader () |
eC_String | ReadString (const eC_Char *pcTag=NULL) |
eC_UByte | ReadUByte (const eC_Char *pcTag=NULL) |
eC_UInt | ReadUInt (const eC_Char *pcTag=NULL) |
eC_UShort | ReadUShort (const eC_Char *pcTag=NULL) |
![]() | |
virtual | ~CGUIStreamReader () |
virtual CGUIStreamReader * | Clone () const =0 |
virtual void | DeleteCommentTag (const eC_Char *pcTag=NULL)=0 |
virtual void | DeleteCommentTag (const eC_String &kTag)=0 |
eC_UInt | GetCurLine () const |
FileAlignment_t | GetFileAlignment () const |
FileEndianess_t | GetFileEndianess () const |
virtual const eC_String & | GetFileSuffix () const |
FileType_t | GetFileType () const |
eC_String | GetLastReadTag () const |
virtual AnimationHandle_t | ReadAnimationChainID (const eC_Char *pcTag=NULL) |
virtual void | ReadBinary (eC_TArray< eC_UByte > &aData, const eC_Char *pcTag=NULL)=0 |
virtual eC_Bool | ReadBool (const eC_Char *pcTag=NULL)=0 |
virtual eC_Byte | ReadByte (const eC_Char *pcTag=NULL)=0 |
virtual ColorValue_t | ReadColor (const eC_Char *pcTag=NULL)=0 |
virtual DataPoolResource_t | ReadDataPoolID (const eC_Char *pcTag=NULL) |
virtual eC_Float | ReadFloat (const eC_Char *pcTag=NULL)=0 |
virtual FontResource_t | ReadFontID (const eC_Char *pcTag=NULL) |
virtual GeneralResource_t | ReadGeneralResourceID (const eC_Char *pcTag=NULL) |
virtual eC_UInt | ReadHex (const eC_Char *pcTag=NULL)=0 |
virtual ImageResource_t | ReadImageID (const eC_Char *pcTag=NULL) |
virtual eC_Int | ReadInt (const eC_Char *pcTag=NULL)=0 |
virtual ObjectHandle_t | ReadObjectID (const eC_Char *pcTag=NULL) |
virtual GlobalProperty_t | ReadPropertyID (const eC_Char *pcTag=NULL) |
virtual eC_Short | ReadShort (const eC_Char *pcTag=NULL)=0 |
virtual SoundResource_t | ReadSoundID (const eC_Char *pcTag=NULL) |
virtual eC_Int | ReadStreamingFileHeader ()=0 |
virtual eC_String | ReadString (const eC_Char *pcTag=NULL)=0 |
virtual TextResource_t | ReadTextID (const eC_Char *pcTag=NULL) |
virtual eC_UByte | ReadUByte (const eC_Char *pcTag=NULL)=0 |
virtual eC_UInt | ReadUInt (const eC_Char *pcTag=NULL)=0 |
virtual eC_UShort | ReadUShort (const eC_Char *pcTag=NULL)=0 |
void | ResetStreamingFile () |
void | SetStreamingFile (eC_File *pkStreamingFile) |
Protected Member Functions | |
CGUIStreamReaderBinary (const CGUIStreamReaderBinary &kSource) | |
CGUIStreamReaderBinary & | operator= (const CGUIStreamReaderBinary &kSource) |
void | ReadPadding (eC_UInt uiBytesRead) |
eC_Bool | SetFileAlignment (FileAlignment_t eFileAlignment) |
eC_Bool | SetFileEndianess (FileEndianess_t eFileEndianess) |
![]() | |
CGUIStreamReader (FileType_t eFileType, FileEndianess_t eFileEndianess, FileAlignment_t eFileAlignment) | |
void | ResizeReadBuffer (eC_Bool bReset) |
Additional Inherited Members | |
![]() | |
static void | CreateInstance () |
static void | DeleteInstance () |
static CGUIStreamReader & | GetInstance () |
![]() | |
eC_TArray< eC_Char > | m_aReadBuffer |
Dynamic array to hold currently read tag content. | |
FileAlignment_t | m_eFileAlignment |
Alignment of the file. | |
FileEndianess_t | m_eFileEndianess |
Endianess of the file. | |
FileType_t | m_eFileType |
File Type. | |
eC_String | m_kLastReadTag |
Last tag which was read, used to skip to the end of an corrupted object. | |
eC_File * | m_pkCurrentInputFile |
Pointer to the current streaming file. All reading operations will be performed on this file. | |
eC_UInt | m_uiCurLine |
Line number in current streaming file. | |
Reads streaming files written by CGUIStreamWriterBinary.
Since CGUIStreamWriterBinary does not write the descriptive tags, each of the read methods in this implementation ignores the tag.
|
protected |
This prototype is declared only to prevent auto-generation by the compiler. There is no implementation for this method.
kSource | Unused |
|
virtual |
Implements CGUIStreamReader.
|
virtual |
Reads over (removes) a tag from the current streaming file without reading a value.
pcTag | Optional descriptive tag. |
Implements CGUIStreamReader.
|
virtual |
Reads over (removes) a tag from the current streaming file without reading a value.
kTag | descriptive tag. |
Implements CGUIStreamReader.
|
inlinevirtual |
Returns the file suffix which is associated with this reader's file format. This can be an empty string, if e.g. the reader works with formats which are unrelated to files.
Reimplemented from CGUIStreamReader.
|
protected |
This prototype is declared only to prevent auto-generation by the compiler. There is no implementation for this method.
kSource | Unused |
|
virtual |
Reads binary stream. Array will be retrieved from stream in raw mode.
pcTag | Optional descriptive tag. | |
[out] | aData | Array the read data will be set to. |
Implements CGUIStreamReader.
|
virtual |
Reads a boolean value from the current streaming file.
pcTag | Optional descriptive tag. |
Implements CGUIStreamReader.
|
virtual |
Reads a signed byte value from the current streaming file.
pcTag | Optional descriptive tag. |
Implements CGUIStreamReader.
|
virtual |
Reads a color from the current streaming file.
pcTag | Optional descriptive tag. |
Implements CGUIStreamReader.
|
virtual |
Reads a float value from the current streaming file.
pcTag | Optional descriptive tag. |
Implements CGUIStreamReader.
|
virtual |
Reads a hexadecimal integer value from the current streaming file.
pcTag | Optional descriptive tag. |
Implements CGUIStreamReader.
|
virtual |
Reads a signed integer value from the current streaming file.
pcTag | Optional descriptive tag. |
Implements CGUIStreamReader.
|
protected |
Reads and discards pad bytes out of the stream file to match alignment.
uiBytesRead | Bytes read with last operation |
|
virtual |
Reads a short value from the current streaming file.
pcTag | Optional descriptive tag. |
Implements CGUIStreamReader.
|
virtual |
Reads the file header and returns the file version.
Implements CGUIStreamReader.
|
virtual |
Reads a string from the current streaming file.
pcTag | Optional descriptive tag. |
Implements CGUIStreamReader.
|
virtual |
Reads an unsigned byte value from the current streaming file.
pcTag | Optional descriptive tag. |
Implements CGUIStreamReader.
|
virtual |
Reads an unsigned integer value from the current streaming file.
pcTag | Optional descriptive tag. |
Implements CGUIStreamReader.
|
virtual |
Reads an unsigned short value from the current streaming file.
pcTag | Optional descriptive tag. |
Implements CGUIStreamReader.
|
protected |
Sets the alignment of the streamed file.
eFileAlignment | the desired alignment |
true | operation successful |
false | operation not supported |
|
protected |
Sets the endianess of the streamed file.
eFileEndianess | the desired endianess |
true | operation successful |
false | operation not supported |