#include <pstring.h>
Inheritance diagram for PStringStream:
Public Member Functions | |
PStringStream () | |
PStringStream (PINDEX fixedBufferSize) | |
PStringStream (const PString &str) | |
PStringStream (const char *cstr) | |
virtual PString & | MakeEmpty () |
PStringStream & | operator= (const PStringStream &strm) |
PStringStream & | operator= (const PString &str) |
PStringStream & | operator= (const char *cstr) |
PStringStream & | operator= (char ch) |
virtual | ~PStringStream () |
Destroy the string stream, deleting the stream buffer. | |
Protected Member Functions | |
virtual void | AssignContents (const PContainer &cont) |
All of the standard stream I/O operators, manipulators etc will operate on the PStringStream class.
|
Create a new, empty, string stream. Data may be output to this stream, but attempts to input from it will return end of file. The internal string is continually grown as required during output. |
|
Create a new, empty, string stream of a fixed size. Data may be output to this stream, but attempts to input from it will return end of file. When the fixed size is reached then no more data may be output to it. |
|
Create a new string stream and initialise it to the provided value. The string stream references the same string buffer as the str# parameter until any output to the string stream is attempted. The reference is then broken and the instance of the string stream becomes a unique reference to a string buffer.
|
|
Create a new string stream and initialise it with the provided value. The stream may be read or written from. Writes will append to the end of the string.
|
|
Destroy the string stream, deleting the stream buffer.
|
|
Reimplemented in PHTML. |
|
Make the current string empty Reimplemented from PString. |
|
Assign the character to the current object. The current instance then becomes a unique reference to a copy of the character parameter. eg: {verbatim} myStr = 'A'; {verbatim}
Reimplemented from PString. Reimplemented in PHTML. |
|
Assign the C string to the string stream. The current instance then becomes a unique reference to a copy of the cstr# parameter. The cstr# parameter is typically a literal string, eg: {verbatim} myStr = "fred"; {verbatim} This will reset the read pointer for input to the beginning of the string. Also, any data output to the string up until the asasignement will be lost.
Reimplemented from PString. Reimplemented in PHTML. |
|
Assign the string to the current object. The current instance then becomes another reference to the same string in the str# parameter. This will reset the read pointer for input to the beginning of the string. Also, any data output to the string up until the asasignement will be lost.
Reimplemented from PString. Reimplemented in PHTML. |
|
Assign the string part of the stream to the current object. The current instance then becomes another reference to the same string in the strm# parameter. This will reset the read pointer for input to the beginning of the string. Also, any data output to the string up until the asasignement will be lost.
|