![]() ![]() ![]()
|
BREW C++ Class Library & GUI Framework & XML Middleware : SophiaFramework 4.1 |
#include <SFXBinaryStreamReader.h.hpp>
class SFXBinaryStreamReader : public SFXStreamReader, public SFXBinaryStream;
SFMTYPEDEFCLASS(SFXBinaryStreamReader)


The SFXBinaryStreamReader class is used to read data of binary from the input stream such as file, TCP socket, and so on.
| Constructor/Destructor |
|---|
|
SFXBinaryStreamReader( Void ) Constructor of SFXBinaryStreamReader class.
|
| Public Functions | |
|---|---|
| SFCError |
ReadBool(
BoolPtr param
) Read data from the input stream as Bool value.
|
| SFCError |
ReadFloat32(
Float32Ptr param
) Read data from the input stream as Float32 value.
|
| SFCError |
ReadFloat64(
Float64Ptr param
) Read data from the input stream as Float64 value.
|
| SFCError |
ReadSFXAnsiString(
SFXAnsiStringPtr param
) Read data from the input stream as a SFXAnsiString string.
|
| SFCError |
ReadSFXWideString(
SFXWideStringPtr param
) Read data from the input stream as a SFXWideString string.
|
| SFCError |
ReadSInt08(
SInt08Ptr param
) Read data from the input stream as SInt08 value.
|
| SFCError |
ReadSInt16(
SInt16Ptr param
) Read data from the input stream as SInt16 value.
|
| SFCError |
ReadSInt32(
SInt32Ptr param
) Read data from the input stream as SInt32 value.
|
| SFCError |
ReadSInt64(
SInt64Ptr param
) Read data from the input stream as SInt64 value.
|
| SFCError |
ReadUInt08(
UInt08Ptr param
) Read data from the input stream as UInt08 value.
|
| SFCError |
ReadUInt16(
UInt16Ptr param
) Read data from the input stream as UInt16 value.
|
| SFCError |
ReadUInt32(
UInt32Ptr param
) Read data from the input stream as UInt32 value.
|
| SFCError |
ReadUInt64(
UInt64Ptr param
) Read data from the input stream as UInt64 value.
|
| SFCError |
SeekBool( Void ) Move the pointer forward for sizeof( Bool ).
|
| SFCError |
SeekFloat32( Void ) Move the pointer forward for sizeof( Float32 ).
|
| SFCError |
SeekFloat64( Void ) Move the pointer forward for sizeof( Float64 ).
|
| SFCError |
SeekSFXAnsiString( Void ) Move the pointer forward for SFXAnsiString.
|
| SFCError |
SeekSFXWideString( Void ) Move the pointer forward for SFXWideString.
|
| SFCError |
SeekSInt08( Void ) Move the pointer forward for sizeof( SInt08 ).
|
| SFCError |
SeekSInt16( Void ) Move the pointer forward for sizeof( SInt16 ).
|
| SFCError |
SeekSInt32( Void ) Move the pointer forward for sizeof( SInt32 ).
|
| SFCError |
SeekSInt64( Void ) Move the pointer forward for sizeof( SInt64 ).
|
| SFCError |
SeekUInt08( Void ) Move the pointer forward for sizeof( UInt08 ).
|
| SFCError |
SeekUInt16( Void ) Move the pointer forward for sizeof( UInt16 ).
|
| SFCError |
SeekUInt32( Void ) Move the pointer forward for sizeof( UInt32 ).
|
| SFCError |
SeekUInt64( Void ) Move the pointer forward for sizeof( UInt64 ).
|
| SFXBinaryStreamReaderRef |
operator>(
SFXBinaryStreamReaderRef left
, SFXBufferRef right
) operator>( SFXBinaryStreamReaderRef left , SFXWideStringRef right ) operator>( SFXBinaryStreamReaderRef left , SFXAnsiStringRef right ) operator>( SFXBinaryStreamReaderRef left , Float64Ref right ) operator>( SFXBinaryStreamReaderRef left , Float32Ref right ) operator>( SFXBinaryStreamReaderRef left , UInt64Ref right ) operator>( SFXBinaryStreamReaderRef left , SInt64Ref right ) operator>( SFXBinaryStreamReaderRef left , UInt32Ref right ) operator>( SFXBinaryStreamReaderRef left , SInt32Ref right ) operator>( SFXBinaryStreamReaderRef left , UInt16Ref right ) operator>( SFXBinaryStreamReaderRef left , SInt16Ref right ) operator>( SFXBinaryStreamReaderRef left , UInt08Ref right ) operator>( SFXBinaryStreamReaderRef left , SInt08Ref right ) operator>( SFXBinaryStreamReaderRef left , SFXBinaryStreamReader::ManipulatorSPP right ) Read data from the input stream.
|
| Void |
Attach(
SFXInputStreamPtr stream
)
(inherits from SFXStreamReader)
Delegate the control privilege of SFXInputStream object to the SFXStreamReader object.
|
| Void |
Cancel( Void )
(inherits from SFXStreamReader)
Call the Cancel function for Storage class. And also unregister the callback functions.
|
| SFXInputStreamPtr |
Detach( Void )
(inherits from SFXStreamReader)
Delegate the control privilege of SFXStreamReader object to the SFXInputStream object.
|
| Bool |
Ends( Void )
(inherits from SFXStreamReader)
Check whether the stream ends or not.
|
| SFCError |
Fetch( Void )
(inherits from SFXStreamReader)
Fetch( CallbackSPP spp , VoidPtr reference ) (inherits from SFXStreamReader) Fetch for reading data newly.
|
| SInt32 |
FirstIndexOf(
Byte byte
, SInt32 index = SINT32_MINIMUM
)
(inherits from SFXStreamReader)
FirstIndexOf( VoidConstPtr buffer , UInt32 size , SInt32 index = SINT32_MINIMUM ) (inherits from SFXStreamReader) FirstIndexOf( SFXBufferConstRef buffer , SInt32 index = SINT32_MINIMUM ) (inherits from SFXStreamReader) Get the first index of SFXStreamReader object to match with the specified data, searching from the beginning.
|
| EndianEnum |
GetEndian( Void )
(inherits from SFXBinaryStream)
Get the endian.
|
| UInt32 |
GetReadableSize( Void )
(inherits from SFXStreamReader)
Get the size of readable data.
|
| SInt32 |
LastIndexOf(
Byte byte
, SInt32 index = SINT32_MAXIMUM
)
(inherits from SFXStreamReader)
LastIndexOf( VoidConstPtr buffer , UInt32 size , SInt32 index = SINT32_MAXIMUM ) (inherits from SFXStreamReader) LastIndexOf( SFXBufferConstRef buffer , SInt32 index = SINT32_MAXIMUM ) (inherits from SFXStreamReader) Get the last index of SFXStreamReader object to match with the specified data, searching from the end.
|
| SFCError |
Read(
SFXBufferPtr buffer
)
(inherits from SFXStreamReader)
Read( VoidPtr buffer , UInt32 size ) (inherits from SFXStreamReader) Read data from the stream.
|
| Void |
Release( Void )
(inherits from SFXStreamReader)
Release the stream.
|
| SFCError |
ResetTrigger( Void )
(inherits from SFXStreamReader)
Reset the trigger when the callback function will be called.
|
| SFCError |
Seek(
UInt32 size
)
(inherits from SFXStreamReader)
Move the read pointer foraward.
|
| Void |
SetEndian(
EndianEnum param
)
(inherits from SFXBinaryStream)
Set the endian.
|
| SFCError |
SetTrigger(
UInt32 size
)
(inherits from SFXStreamReader)
SetTrigger( VoidConstPtr buffer , UInt32 size ) (inherits from SFXStreamReader) SetTrigger( SFXBufferConstRef buffer ) (inherits from SFXStreamReader) Set the trigger when the callback function will be called.
|
| Bool |
Triggers( Void )
(inherits from SFXStreamReader)
Check whether the callback function is called by trigger or not.
|
| Void |
big(
SFXBinaryStreamRef stream
)
(inherits from SFXBinaryStream)
Manipulator that sets endian to the big endian.
|
| Void |
little(
SFXBinaryStreamRef stream
)
(inherits from SFXBinaryStream)
Manipulator that sets endian to the little endian.
|
| Types |
|---|
|
CallbackSPP
(inherits from SFXStream)
Constant that represents Callback function.
|
|
EndianEnum
(inherits from SFXBinaryStream)
Constant that represents Endian.
|
|
ManipulatorSPP
(inherits from SFXBinaryStream)
Constant that represents the manipulator of SFXBinaryStream class.
|
[ public, explicit ] SFXBinaryStreamReader(Void);
[ public ] SFCError ReadFloat32( Float32Ptr param // pointer to the result );
[ public ] SFCError ReadFloat64( Float64Ptr param // pointer to the result );
[ public ] SFCError ReadSFXAnsiString( SFXAnsiStringPtr param // pointer to the result );
Read a AChar string until the next "\0"
If no "\0" is found until the end, return SFERR_INVALID_STATE.
[ public ] SFCError ReadSFXWideString( SFXWideStringPtr param // pointer to the result );
Read a WChar string until the next "\0"
If no "\0" is found until the end, return SFERR_INVALID_STATE.
[ public ] SFCError SeekBool(Void);
[ public ] SFCError SeekFloat32(Void);
[ public ] SFCError SeekFloat64(Void);
[ public ] SFCError SeekSFXAnsiString(Void);
Move the reading pointer to the next string ( next to the next "\0" ).
[ public ] SFCError SeekSFXWideString(Void);
Move the reading pointer to the next string ( next to the next "\0" ).
[ public ] SFCError SeekSInt08(Void);
[ public ] SFCError SeekSInt16(Void);
[ public ] SFCError SeekSInt32(Void);
[ public ] SFCError SeekSInt64(Void);
[ public ] SFCError SeekUInt08(Void);
[ public ] SFCError SeekUInt16(Void);
[ public ] SFCError SeekUInt32(Void);
[ public ] SFCError SeekUInt64(Void);
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream SFXBufferRef right // buffer for the result );
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream SFXBinaryStreamReader::ManipulatorSPP right // manipulator );
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream SInt08Ref right // variable for the result );
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream UInt08Ref right // variable for the result );
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream SInt16Ref right // variable for the result );
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream UInt16Ref right // variable for the result );
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream SInt32Ref right // variable for the result );
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream UInt32Ref right // variable for the result );
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream SInt64Ref right // variable for the result );
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream UInt64Ref right // variable for the result );
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream Float32Ref right // variable for the result );
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream Float64Ref right // variable for the result );
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream SFXAnsiStringRef right // string class for the result );
[ public, friend ] SFXBinaryStreamReaderRef operator>( SFXBinaryStreamReaderRef left // stream SFXWideStringRef right // string class for the result );
For details : API Reference of Read functions.
SFXBinaryStreamReader::ReadBool | SFXBinaryStreamReader::ReadSInt08 | SFXBinaryStreamReader::ReadSInt16 | SFXBinaryStreamReader::ReadSInt32 | SFXBinaryStreamReader::ReadSInt64 | SFXBinaryStreamReader::ReadUInt08 | SFXBinaryStreamReader::ReadUInt16 | SFXBinaryStreamReader::ReadUInt32 | SFXBinaryStreamReader::ReadUInt64 | SFXBinaryStreamReader::ReadFloat32 | SFXBinaryStreamReader::ReadFloat64 | SFXBinaryStreamReader::ReadSFXAnsiString | SFXBinaryStreamReader::ReadSFXWideString
|
Copyright (C) 2002 - 2009 Sophia Cradle, Inc. All Rights Reserved. |
![]() ![]() ![]()
|