PrevNextUpHome BREW C++ Class Library & GUI Framework & XML Middleware : SophiaFramework 4.1
SFXWideStringStreamReader
Class for reading the data of SFXWideString string from the input stream.
#include <SFXWideStringStreamReader.h.hpp>
class SFXWideStringStreamReader : public SFXStreamReader, public SFXStringStream;
SFMTYPEDEFCLASS(SFXWideStringStreamReader)

Inheritance diagram

 Inheritance diagram of SFXWideStringStreamReaderClass

Collaboration diagram

 Collaboration diagram of SFXWideStringStreamReaderClass

Description

The SFXWideStringStreamReader class is used to read the SFXWideString object from the input stream such as file, TCP socket, and so on.

Reference

SFXAnsiStringStreamReader | SFXBinaryStreamReader

Member

Constructor/Destructor
SFXWideStringStreamReader( Void )
Constructor of SFXWideStringStreamReader class.
Public Functions
SFCError ReadSFXAnsiString( SFXAnsiStringPtr param )
Read data from the input stream as a SFXWideString string, and convert it into SFXAnsiString.
SFCError ReadSFXWideString( SFXWideStringPtr param )
Read data from the input stream as a SFXWideString string.
SFXWideStringStreamReaderRef operator>>( SFXWideStringStreamReaderRef left , SFXWideStringRef right )
operator>>( SFXWideStringStreamReaderRef left , SFXAnsiStringRef right )
Read data from the input stream as a SFXWideString string.
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.
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.
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.
Types
CallbackSPP (inherits from SFXStream)
Constant that represents Callback function.

SFXWideStringStreamReader::SFXWideStringStreamReader
Constructor of SFXWideStringStreamReader class.
[ public, explicit ]
SFXWideStringStreamReader(Void);

SFXWideStringStreamReader::ReadSFXAnsiString
Read data from the input stream as a SFXWideString string, and convert it into SFXAnsiString.
[ public ]
SFCError ReadSFXAnsiString(
    SFXAnsiStringPtr param   // pointer to the resault
);

Return value

  • Success : SFERR_NO_ERROR
  • If stream is not set : SFERR_INVALID_STATE
  • If argument is null : SFERR_INVALID_PARAM
  • If insufficient memory : SFERR_NO_MEMORY
  • If failed : SFERR_FAILED

Description

Read data as a string until the next "\0"

If no "\0" is found until the end, read data as a string until the end.

Reference

SFXWideStringStreamReader::ReadSFXWideString


SFXWideStringStreamReader::ReadSFXWideString
Read data from the input stream as a SFXWideString string.
[ public ]
SFCError ReadSFXWideString(
    SFXWideStringPtr param   // pointer to the resault
);

Return value

  • Success : SFERR_NO_ERROR
  • If stream is not set : SFERR_INVALID_STATE
  • If argument is null : SFERR_INVALID_PARAM
  • If insufficient memory : SFERR_NO_MEMORY
  • If failed : SFERR_FAILED

Description

Read data as a string until the next "\0"

If no "\0" is found until the end, read data as a string until the end.

Reference

SFXWideStringStreamReader::ReadSFXAnsiString


SFXWideStringStreamReader::operator>>
Read data from the input stream as a SFXWideString string.
[ public, friend ]
SFXWideStringStreamReaderRef operator>(
    SFXWideStringStreamReaderRef left   // stream
    SFXWideStringRef right              // string contains the result
);
[ public, friend ]
SFXWideStringStreamReaderRef operator>(
    SFXWideStringStreamReaderRef left   // stream
    SFXAnsiStringRef right              // string contains the result
);

Description

SFXWideStringStreamReader::operator>> is the same as SFXWideStringStreamReader::ReadSFXAnsiString function or SFXWideStringStreamReader::ReadSFXWideString function.

Reference

SFXWideStringStreamReader::ReadSFXAnsiString | SFXWideStringStreamReader::ReadSFXWideString