OPAL
Version 3.18.8
|
#include <safestrings.h>
Inherits PObject.
Public Member Functions | |
SafeString () | |
SafeString (PString newValue) | |
void | operator= (PString newValue) |
PString | Get () |
virtual void | PrintOn (ostream &str) const |
operator PString () | |
void | operator+= (PString toBeAdded) |
PString | GetAndDelete () |
PBoolean | IsEmpty () const |
Protected Member Functions | |
PDECLARE_MUTEX (mutex) | |
Protected Attributes | |
PString | internal |
A class to handle thread safe access to a PString
|
inline |
Construct this class with an empty internal value
|
inline |
Construct this class with the internal value set to something
|
inline |
Retrieve the value of the internal variable
PString SafeString::GetAndDelete | ( | ) |
Retrieve and clear the value of the internal variable
PBoolean SafeString::IsEmpty | ( | ) | const |
Return True if this list is empty
SafeString::operator PString | ( | ) |
Retrive the value of the internal variable as a string
void SafeString::operator+= | ( | PString | toBeAdded | ) |
Add a new text to the string, in a thread safe fashion.
void SafeString::operator= | ( | PString | newValue | ) |
Assign a new value to the internal variable
|
protected |
The lock, which is used to safeguard access to this variable
|
virtual |
print the internal string to the designated stream
|
protected |
The internal variable which is accessed in a thread safe fashion.