SophiaFramework UNIVERSE 5.3 |
#include <SFXWideStringStreamWriter.h.hpp>
class SFXWideStringStreamWriter : public SFXStreamWriter, public SFXStringStream;
SFMTYPEDEFCLASS(SFXWideStringStreamWriter)
The SFXWideStringStreamWriter class is used to write the string of the WChar type onto the string stream of the storage.
In case of the variable buffer stream, the SFXElasticStreamWriter class is internally used. But you don't have to be aware of this class.
Inserter(<< Operator) | |
---|---|
In the string stream, the inserter(<< operator) whose right operand is of the SFXBuffer type is not defined. Therefore, the SFXBuffer instance cannot be specified as the right operand. However, since it is defined in the binary stream, the SFXBuffer instance can be specified as the right operand. |
SFXWideStringStreamReader | SFXAnsiStringStreamWriter | SFXBinaryStreamWriter | SFXElasticStreamWriter | SFXWideString | Character Type | String Stream | Storage
Constructor/Destructor |
---|
SFXWideStringStreamWriter( Void ) Constructor of the SFXWideStringStreamWriter class.
|
Public Functions | |
---|---|
SFCError |
WriteAChar(
ACharConstPtr string
, SInt32 length = -1
) Write the specified string onto this stream.
|
SFCError |
WriteNull( Void ) Write "\0" onto this stream.
|
SFCError |
WriteSFXAnsiString(
SFXAnsiStringConstRef param
) Write the specified string onto this stream.
|
SFCError |
WriteSFXWideString(
SFXWideStringConstRef param
) Write the specified string onto this stream.
|
SFCError |
WriteWChar(
WCharConstPtr string
, SInt32 length = -1
) Write the specified string onto this stream.
|
Void |
ends(
SFXWideStringStreamWriterRef stream
) Manipulator for writing "\0" onto this stream.
|
SFXWideStringStreamWriterRef |
operator<<(
SFXWideStringStreamWriterRef left
, SFXWideStringStreamWriter::ManipulatorSPP right
) Write data onto the output stream as a SFXWideString string
|
SFXWideStringStreamWriterRef |
operator<<(
SFXWideStringStreamWriterRef left
, WCharConstPtr right
) Write data onto the output stream as a SFXWideString string
|
SFXWideStringStreamWriterRef |
operator<<(
SFXWideStringStreamWriterRef left
, ACharConstPtr right
) Write data onto the output stream as a SFXWideString string
|
SFXWideStringStreamWriterRef |
operator<<(
SFXWideStringStreamWriterRef left
, SFXWideStringConstRef right
) Write data onto the output stream as a SFXWideString string
|
SFXWideStringStreamWriterRef |
operator<<(
SFXWideStringStreamWriterRef left
, SFXAnsiStringConstRef right
) Write data onto the output stream as a SFXWideString string
|
Void |
Attach(
SFXOutputStreamPtr stream
)
(inherits from SFXStreamWriter)
Attach the specified stream to this stream.
|
Void |
Cancel( Void )
(inherits from SFXStreamWriter)
Cancel to write onto this stream.
|
SFXOutputStreamPtr |
Detach( Void )
(inherits from SFXStreamWriter)
Detach the stream from this stream.
|
SFCError |
Flush( Void )
(inherits from SFXStreamWriter)
Write data in the stream buffer into the storage.
|
SFCError |
Flush(
CallbackSPP spp
, VoidPtr reference
)
(inherits from SFXStreamWriter)
Write data in the stream buffer into the storage.
|
UInt32 |
GetWritableSize( Void )
(inherits from SFXStreamWriter)
Get the size of data that can be written into this stream. [in bytes]
|
Void |
Release( Void )
(inherits from SFXStreamWriter)
Release this stream.
|
SFCError |
ResetTrigger( Void )
(inherits from SFXStreamWriter)
Reset the trigger condition that the callback function will be booted up.
|
SFCError |
SetTrigger(
UInt32 size
)
(inherits from SFXStreamWriter)
Set the trigger condition that the callback function will be booted up.
|
SFCError |
SetTrigger(
SFXBufferConstRef buffer
)
(inherits from SFXStreamWriter)
Set the trigger condition that the callback function will be booted up.
|
SFCError |
SetTrigger(
VoidConstPtr buffer
, UInt32 size
)
(inherits from SFXStreamWriter)
Set the trigger condition that the callback function will be booted up.
|
Bool |
Triggers( Void )
(inherits from SFXStreamWriter)
Check whether or not the callback function is booted up by the trigger condition.
|
SFCError |
Write(
SFXBufferConstRef buffer
)
(inherits from SFXStreamWriter)
Write data onto the stream.
|
SFCError |
Write(
VoidConstPtr buffer
, UInt32 size
)
(inherits from SFXStreamWriter)
Write data onto the stream.
|
Types |
---|
ManipulatorSPP Type that represents the manpulator of the SFXWideStringStreamWriter class.
|
CallbackSPP
(inherits from SFXStream)
Type that represents the callback function.
|
[ public, explicit ] SFXWideStringStreamWriter(Void);
[ public ] SFCError WriteAChar( ACharConstPtr string // string to write SInt32 length = -1 // length of the string );
String of AChar type.
string length. If specified with "-1", the length is until the "\0"( "\0" is not included ).
This function writes the specified AChar string of the specified size as the AChar string onto the buffer of this stream.
If "-1" is specified in the length argument, the string until '\0' specified in the string argument ('\0' is not included) will be passed.
Note | |
---|---|
'\0' will not be appended onto the tail of the string. The SFXBinaryStreamWriter::WriteAChar function of the binary string will append '\0' onto the tail of the string. |
SFXWideStringStreamReader::ReadSFXAnsiString | SFXWideStringStreamWriter::WriteSFXAnsiString | SFXWideStringStreamWriter::WriteWChar | SFXWideStringStreamWriter::WriteSFXWideString | SFXBinaryStreamWriter::WriteWChar | SFXWideString | SFXAnsiString | Character Type
[ public ] SFCError WriteNull(Void);
This function writes "\0" (2 byte) of the WChar type onto the buffer of this stream.
This function is same as the SFXWideStringStreamWriter::ends function, except it returns the error value.
SFXWideStringStreamWriter::ends | SFXWideString | Character Type
[ public ] SFCError WriteSFXAnsiString( SFXAnsiStringConstRef param // string to write );
This function writes the specified SFXAnsiString string onto the buffer of this stream.
Note | |
---|---|
"\0" will not be appended onto the tail of the string. The SFXBinaryStreamWriter::WriteSFXAnsiString function of the binary stream will append '\0' onto the tail of the string automatically. |
SFXWideStringStreamReader::ReadSFXAnsiString | SFXWideStringStreamWriter::WriteAChar | SFXWideStringStreamWriter::WriteWChar | SFXWideStringStreamWriter::WriteSFXWideString | SFXBinaryStreamWriter::WriteSFXWideString | Stream Buffer | SFXWideString | SFXAnsiString | Character Type
[ public ] SFCError WriteSFXWideString( SFXWideStringConstRef param // string to write );
This function writes the specified SFXWideString string onto the buffer of this stream.
Note | |
---|---|
"\0" will not be appended onto the tail of the string. The SFXBinaryStreamWriter::WriteSFXWideString function of the binary stream will append '\0' onto the tail of the string automatically. |
SFXWideStringStreamReader::ReadSFXWideString | SFXWideStringStreamWriter::WriteAChar | SFXWideStringStreamWriter::WriteSFXAnsiString | SFXWideStringStreamWriter::WriteWChar | SFXBinaryStreamWriter::WriteSFXWideString | Stream Buffer | SFXWideString | Character Type
[ public ] SFCError WriteWChar( WCharConstPtr string // string to write SInt32 length = -1 // length of the string );
String of WChar type.
string length. If specified with "-1", the length is until the "\0"( "\0" is not included ).
This function writes the specified WChar string of the specified size onto the buffer of this stream.
If "-1" is specified in the length argument, the string until '\0' specified in the string argument ('\0' is not included) will be passed.
Note | |
---|---|
'\0' will not be appended onto the tail of the string. The SFXBinaryStreamWriter::WriteWChar function of the binary string will append '\0' onto the tail of the string. |
SFXWideStringStreamReader::ReadSFXWideString | SFXWideStringStreamWriter::WriteSFXWideString | SFXWideStringStreamWriter::WriteAChar | SFXWideStringStreamWriter::WriteSFXAnsiString | SFXBinaryStreamWriter::WriteWChar | SFXWideString | Character Type
[ public, friend ] Void ends( SFXWideStringStreamWriterRef stream // stream );
This function is the manipulator for writing "\0" (2 byte) of the WChar type onto the buffer of this stream.
This function is same as the SFXWideStringStreamWriter::WriteNull function, except that it returns no error value.
[ public, friend ] SFXWideStringStreamWriterRef operator<<( SFXWideStringStreamWriterRef left // stream SFXWideStringStreamWriter::ManipulatorSPP right // manipulator );
[ public, friend ] SFXWideStringStreamWriterRef operator<<( SFXWideStringStreamWriterRef left // stream WCharConstPtr right // string to write );
[ public, friend ] SFXWideStringStreamWriterRef operator<<( SFXWideStringStreamWriterRef left // stream ACharConstPtr right // string to write );
[ public, friend ] SFXWideStringStreamWriterRef operator<<( SFXWideStringStreamWriterRef left // stream SFXWideStringConstRef right // string to write );
[ public, friend ] SFXWideStringStreamWriterRef operator<<( SFXWideStringStreamWriterRef left // stream SFXAnsiStringConstRef right // string to write );
This operator is the inserter (<< operator) to write the specified string onto the buffer of this stream.
In case one of the following errors occurs, no data will be written into this stream, no error value will be returned, and nothing will happen.
* The corresponding alternate function below will return the error value above.
Alternate Function | |
---|---|
Except that the inserter will not return the error value, it is the same as the SFXWideStringStreamWriter::WriteAChar / SFXWideStringStreamWriter::WriteSFXAnsiString / SFXWideStringStreamWriter::WriteWChar / SFXWideStringStreamWriter::WriteSFXWideString function. |
Note | |
---|---|
"\0" will not be appended onto the tail of the string. The SFXBinaryStreamWriter::operator< inserter(<< operator) of the binary stream will append '\0' onto the tail of the string automatically. |
SFXWideStringStreamReader::operator>> | SFXWideStringStreamWriter::WriteAChar | SFXWideStringStreamWriter::WriteSFXAnsiString | SFXWideStringStreamWriter::WriteWChar | SFXWideStringStreamWriter::WriteSFXWideString | SFXWideString | SFXAnsiString | Character Type
typedef Void(* SFXWideStringStreamWriter::ManipulatorSPP)(SFXWideStringStreamWriterRef stream)
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |