This template provides a container which automatically releases a transcoded string, when the pointer runs out of scope.
More...
#include <xercesc_helpers.h>
|
T * | stringPtr |
| This pointer represent a string transcoded by Xercesc.
|
|
|
std::ostream & | operator<< (std::ostream &ost, SafeXTString< T > &data) |
| Applying this operator will stream out the content of this object without alteration. More...
|
|
template<class T>
class uncover::io::SafeXTString< T >
This template provides a container which automatically releases a transcoded string, when the pointer runs out of scope.
- Author
- Jan Stückrath
Generates a new SafeXTString with the specified (transcoded) string pointer as content.
- Parameters
-
ptr | a transcoded string pointer which will be safely stored |
Destroys this SafeXTString object.
The contained string is thereby properly released.
Returns the content stored in this SafeXTString object.
Note that the returned pointer may not be released, since it will be released automatically when this object is destroyed.
- Returns
- the content stored in this SafeXTString object
Replaces the content of this container object with the given content.
Applying the = operator will properly release old content and store the new content.
- Parameters
-
data | the new content to be stored |
- Returns
- a reference to this container object
std::ostream& operator<< |
( |
std::ostream & |
ost, |
|
|
SafeXTString< T > & |
data |
|
) |
| |
|
friend |
Applying this operator will stream out the content of this object without alteration.
This operator must also be defined for the content.
- Parameters
-
ost | the output stream |
data | the SafeXTString object to be streamed |
- Returns
- the output stream
The documentation for this class was generated from the following file: