PrevNextUpHome BREW C++ Class Library & GUI Framework & XML Middleware : SophiaFramework 4.1
SFXInputStream
Base class that represents the input stream.
#include <SFXInputStream.h.hpp>
class SFXInputStream : public SFXStream;
SFMTYPEDEFCLASS(SFXInputStream)

Inheritance diagram

 Inheritance diagram of SFXInputStreamClass

Description

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.

Reference

SFXAnsiStringStreamReader | SFXWideStringStreamReader | SFXBinaryStreamReader

Member

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.

SFXInputStream::SFXInputStream
Constructor of SFXInputStream class.
[ protected, explicit ]
SFXInputStream(Void);

SFXInputStream::~SFXInputStream
Destructor of SFXInputStream class.
[ public, virtual ]
virtual ~SFXInputStream(Void);

SFXInputStream::Ends
Check whether the stream ends or not.
[ public, virtual, const ]
Bool Ends(Void);

Description

The SFXInputStream::Ends function is a pure virtual function.


SFXInputStream::Fetch
Fetch for reading data newly.
[ public, virtual ]
SFCError Fetch(Void);
[ public, virtual ]
SFCError Fetch(
    CallbackSPP spp     // callback function
    VoidPtr reference   // the data sent to callback function
);

Description

The SFXInputStream::Fetch function is a pure virtual function.


SFXInputStream::FirstIndexOf
Get the first index of SFXInputStream object to match with the specified data, searching from the beginning.
[ 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
);

Description

The FirstIndexOf function is a pure virtual function.

Reference

SFXInputStream::LastIndexOf


SFXInputStream::GetReadableSize
Get the size of readable data.
[ public, virtual, const ]
UInt32 GetReadableSize(Void);

Description

The SFXInputStream::GetReadableSize function is a pure virtual function.


SFXInputStream::LastIndexOf
Get the last index of SFXInputStream object to match with the specified data, searching from the end.
[ 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
);

Description

The LastIndexOf function is a pure virtual function.

Reference

SFXInputStream::FirstIndexOf


SFXInputStream::Read
Read data from the input stream.
[ 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
);

Description

The SFXInputStream::Read function is a pure virtual function.


SFXInputStream::Seek
Move the read pointer forward.
[ public, virtual ]
SFCError Seek(
    UInt32 size   // size to move the read pointer forward
);

Description

The SFXInputStream::Seek function is a pure virtual function.