SophiaFramework UNIVERSE 5.3 |
#include <SFXAnsiStringStreamWriter.h.hpp>
class SFXAnsiStringStreamWriter : public SFXStreamWriter, public SFXStringStream;
SFMTYPEDEFCLASS(SFXAnsiStringStreamWriter)
The SFXAnsiStringStreamWriter class is used to write the string of the AChar 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. |
SFXAnsiStringStreamReader | SFXWideStringStreamWriter | SFXBinaryStreamWriter | SFXElasticStreamWriter | SFXAnsiString | Character Type | String Stream | Storage
Constructor/Destructor |
---|
SFXAnsiStringStreamWriter( Void ) Constructor of the SFXAnsiStringStreamWriter 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(
SFXAnsiStringStreamWriterRef stream
) Manipulator for writing "\0" onto this stream.
|
SFXAnsiStringStreamWriterRef |
operator<<(
SFXAnsiStringStreamWriterRef left
, SFXAnsiStringStreamWriter::ManipulatorSPP right
) Write the specified string onto this stream.
|
SFXAnsiStringStreamWriterRef |
operator<<(
SFXAnsiStringStreamWriterRef left
, ACharConstPtr right
) Write the specified string onto this stream.
|
SFXAnsiStringStreamWriterRef |
operator<<(
SFXAnsiStringStreamWriterRef left
, WCharConstPtr right
) Write the specified string onto this stream.
|
SFXAnsiStringStreamWriterRef |
operator<<(
SFXAnsiStringStreamWriterRef left
, SFXAnsiStringConstRef right
) Write the specified string onto this stream.
|
SFXAnsiStringStreamWriterRef |
operator<<(
SFXAnsiStringStreamWriterRef left
, SFXWideStringConstRef right
) Write the specified string onto this stream.
|
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 SFXAnsiStringStreamWriter class.
|
CallbackSPP
(inherits from SFXStream)
Type that represents the callback function.
|
[ public, explicit ] SFXAnsiStringStreamWriter(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 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. |
SFXAnsiStringStreamReader::ReadSFXAnsiString | SFXAnsiStringStreamWriter::WriteSFXAnsiString | SFXAnsiStringStreamWriter::WriteWChar | SFXAnsiStringStreamWriter::WriteSFXWideString | SFXBinaryStreamWriter::WriteAChar | SFXAnsiString | Character Type
[ public ] SFCError WriteNull(Void);
This function writes "\0" (1 byte) of the AChar type onto the buffer of this stream.
This function is same as the SFXAnsiStringStreamWriter::ends function, except it returns the error value.
SFXAnsiStringStreamWriter::ends | SFXAnsiString | 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. |
SFXAnsiStringStreamReader::ReadSFXAnsiString | SFXAnsiStringStreamWriter::WriteAChar | SFXAnsiStringStreamWriter::WriteWChar | SFXAnsiStringStreamWriter::WriteSFXWideString | SFXBinaryStreamWriter::WriteSFXAnsiString | Stream Buffer | 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. |
SFXAnsiStringStreamReader::ReadSFXWideString | SFXAnsiStringStreamWriter::WriteAChar | SFXAnsiStringStreamWriter::WriteSFXAnsiString | SFXAnsiStringStreamWriter::WriteWChar | SFXBinaryStreamWriter::WriteSFXAnsiString | Stream Buffer | SFXAnsiString | 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 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::WriteWChar function of the binary string will append '\0' onto the tail of the string. |
SFXAnsiStringStreamWriter::WriteSFXWideString | SFXAnsiStringStreamWriter::WriteAChar | SFXAnsiStringStreamWriter::WriteSFXAnsiString
[ public, friend ] Void ends( SFXAnsiStringStreamWriterRef stream // stream );
This function is the manipulator for writing "\0" (1 byte) of the AChar type onto the buffer of this stream.
This function is same as the SFXAnsiStringStreamWriter::WriteNull function, except that it returns no error value.
[ public, friend ] SFXAnsiStringStreamWriterRef operator<<( SFXAnsiStringStreamWriterRef left // stream SFXAnsiStringStreamWriter::ManipulatorSPP right // manipulator );
[ public, friend ] SFXAnsiStringStreamWriterRef operator<<( SFXAnsiStringStreamWriterRef left // stream ACharConstPtr right // string to write );
[ public, friend ] SFXAnsiStringStreamWriterRef operator<<( SFXAnsiStringStreamWriterRef left // stream WCharConstPtr right // string to write );
[ public, friend ] SFXAnsiStringStreamWriterRef operator<<( SFXAnsiStringStreamWriterRef left // stream SFXAnsiStringConstRef right // string to write );
[ public, friend ] SFXAnsiStringStreamWriterRef operator<<( SFXAnsiStringStreamWriterRef left // stream SFXWideStringConstRef 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 SFXAnsiStringStreamWriter::WriteAChar / SFXAnsiStringStreamWriter::WriteSFXAnsiString / SFXAnsiStringStreamWriter::WriteWChar / SFXAnsiStringStreamWriter::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. |
SFXAnsiStringStreamReader::operator>> | SFXAnsiStringStreamWriter::WriteAChar | SFXAnsiStringStreamWriter::WriteSFXAnsiString | SFXAnsiStringStreamWriter::WriteWChar | SFXAnsiStringStreamWriter::WriteSFXWideString | SFXAnsiString | SFXWideString | Character Type
typedef Void(* SFXAnsiStringStreamWriter::ManipulatorSPP)(SFXAnsiStringStreamWriterRef stream)
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |