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

The following class that inherited from the SFXInputStream class : SFXAnsiStringStreamReader class, SFXWideStringStreamReader class, or SFXBinaryStreamReader class is used properly according to the type of data.
| Constructor/Destructor |
|---|
|
SFXInputStream( Void ) Constructor of SFXInputStream class.
|
|
~SFXInputStream( Void ) Destructor of SFXInputStream class.
|
| Public Functions | |
|---|---|
| Bool |
Ends( Void ) Check whether the stream ends or not.
|
| SFCError |
Fetch( Void ) Fetch( CallbackSPP spp , VoidPtr reference ) Fetch for reading data newly.
|
| SInt32 |
FirstIndexOf(
SFXBufferConstRef buffer
, SInt32 index = SINT32_MINIMUM
) FirstIndexOf( Byte byte , SInt32 index = SINT32_MINIMUM ) FirstIndexOf( VoidConstPtr buffer , UInt32 size , SInt32 index = SINT32_MINIMUM ) Get the first index of SFXInputStream object to match with the specified data, searching from the beginning.
|
| UInt32 |
GetReadableSize( Void ) Get the size of readable data.
|
| SInt32 |
LastIndexOf(
SFXBufferConstRef buffer
, SInt32 index = SINT32_MAXIMUM
) LastIndexOf( Byte byte , SInt32 index = SINT32_MAXIMUM ) LastIndexOf( VoidConstPtr buffer , UInt32 size , SInt32 index = SINT32_MAXIMUM ) Get the last index of SFXInputStream object to match with the specified data, searching from the end.
|
| SFCError |
Read(
SFXBufferPtr buffer
) Read( VoidPtr buffer , UInt32 size ) Read data from the input stream.
|
| SFCError |
Seek(
UInt32 size
) Move the read pointer forward.
|
| Void |
Cancel( Void )
(inherits from SFXStream)
Call the Cancel function for Storage class. And also unregister cancel the callback functions.
|
| SFCError |
ResetTrigger( Void )
(inherits from SFXStream)
Reset the trigger when the callback function will be called.
|
| SFCError |
SetTrigger(
UInt32 size
)
(inherits from SFXStream)
SetTrigger( VoidConstPtr buffer , UInt32 size ) (inherits from SFXStream) SetTrigger( SFXBufferConstRef buffer ) (inherits from SFXStream) Set the trigger when the callback function will be called.
|
| Bool |
Triggers( Void )
(inherits from SFXStream)
Check whether the callback function is called by trigger or not.
|
| Types |
|---|
|
CallbackSPP
(inherits from SFXStream)
Constant that represents Callback function.
|
[ protected, explicit ] SFXInputStream(Void);
[ public, virtual ] virtual ~SFXInputStream(Void);
[ public, virtual, const ] Bool Ends(Void);
The SFXInputStream::Ends function is a pure virtual function.
[ public, virtual ] SFCError Fetch(Void);
[ public, virtual ] SFCError Fetch( CallbackSPP spp // callback function VoidPtr reference // the data sent to callback function );
The SFXInputStream::Fetch function is a pure virtual function.
[ public, virtual, const ] SInt32 FirstIndexOf( SFXBufferConstRef buffer // buffer object to match with SInt32 index = SINT32_MINIMUM // starting index to search from );
[ public, virtual, const ] SInt32 FirstIndexOf( VoidConstPtr buffer // buffer data to match with UInt32 size // size of buffer data to match with SInt32 index = SINT32_MINIMUM // starting index to search from );
[ public, virtual, const ] SInt32 FirstIndexOf( Byte byte // byte data to match with SInt32 index = SINT32_MINIMUM // starting index to search from );
The FirstIndexOf function is a pure virtual function.
[ public, virtual, const ] UInt32 GetReadableSize(Void);
The SFXInputStream::GetReadableSize function is a pure virtual function.
[ public, virtual, const ] SInt32 LastIndexOf( SFXBufferConstRef buffer // buffer object to match with SInt32 index = SINT32_MAXIMUM // starting index to search from );
[ public, virtual, const ] SInt32 LastIndexOf( VoidConstPtr buffer // buffer data to match with UInt32 size // size of buffer data to match with SInt32 index = SINT32_MAXIMUM // starting index to search from );
[ public, virtual, const ] SInt32 LastIndexOf( Byte byte // byte data to match with SInt32 index = SINT32_MAXIMUM // starting index to search from );
The LastIndexOf function is a pure virtual function.
[ public, virtual ] SFCError Read( SFXBufferPtr buffer // buffer to read data from the input stream );
[ public, virtual ] SFCError Read( VoidPtr buffer // pointer to the buffer to read data from the input stream UInt32 size // size of the buffer to read data from the input stream );
The SFXInputStream::Read function is a pure virtual function.
The SFXInputStream::Seek function is a pure virtual function.
|
Copyright (C) 2002 - 2009 Sophia Cradle, Inc. All Rights Reserved. |
![]() ![]() ![]()
|