This class is a standard C++ stream class descendent for reading or writing streamed data to or from a PString class.
![]() | PStringStream () Create a new, empty, string stream. |
![]() | PStringStream ( const PString & str ) Create a new string stream and initialise it to the provided value. |
![]() | PStringStream ( const char * cstr ) Create a new string stream and initialise it with the provided value. |
![]() | operator= ( const PStringStream & strm ) Assign the string part of the stream to the current object. |
![]() | operator= ( const PString & str ) Assign the string to the current object. |
![]() | operator= ( const char * cstr ) Assign the C string to the string stream. |
![]() | operator= ( char ch ) Assign the character to the current object. |
![]() | ~PStringStream () Destroy the string stream, deleting the stream buffer |
Construction
Overrides from class PObject
Overrides from class PContainer
Size/Length functions
Concatenation operators *
Comparison operators
Search & replace functions
Sub-string functions
Conversion functions
New functions for class
Common functions for containers
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
This class is a standard C++ stream class descendent for reading or writing streamed data to or from a PString class.All of the standard stream I/O operators, manipulators etc will operate on the PStringStream class.
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.
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.
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.
PStringStream( const PString & str )
PStringStream( const char * cstr )
PStringStream& operator=( const PStringStream & strm )
PStringStream& operator=( const PString & str )
PStringStream& operator=( const char * cstr )
myStr = "fred";
PStringStream& operator=( char ch )
myStr = 'A';
virtual ~PStringStream()
Alphabetic index HTML hierarchy of classes or Java