#include <ot_string.h>
Public Member Functions | |
ot_string (const string &val="") | |
ot_string (const ot_string &c) | |
virtual | ~ot_string () |
Destructor. | |
ot_obj * | dup (void) const |
Duplicate object. | |
void | asXml (ostream &s=cout, int i=0) const |
bool | asData (ostream &s) const |
const string & | get (void) const |
const ot_string & | operator= (const ot_string &c) |
Operator =. | |
const ot_string & | operator= (const string &v) |
Operator =. | |
bool | operator== (const ot_string &v) const |
Operator ==. | |
bool | operator== (const string &v) |
Operator ==. | |
bool | operator!= (const ot_string &v) |
Operator !=. | |
bool | operator!= (const string &v) |
Operator !=. | |
bool | operator== (const ot_obj *o) const |
Op. ==. | |
const ot_string | operator+ (const ot_string &c) const |
Operator +, add string. | |
void | operator+= (const ot_string &c) |
Operator +=, add string. | |
template<class X> | |
void | operator+= (X x) |
Operator +=, add a generic type. | |
template<class X> | |
void | operator<< (X x) |
Operator +=, add a generic type. | |
Private Attributes | |
string | m_value |
String value. |
Implementation of the base string object
ot_string::ot_string | ( | const string & | val = "" |
) |
Costructor
val | The string |
ot_string::ot_string | ( | const ot_string & | c | ) |
virtual ot_string::~ot_string | ( | ) | [virtual] |
Destructor.
void ot_string::asXml | ( | ostream & | s = cout , |
|
int | i = 0 | |||
) | const [virtual] |
Print the XML rappresentation of object into string
s | The output string | |
i | The indent spaces |
Implements ot_obj.
bool ot_string::asData | ( | ostream & | s | ) | const [virtual] |
const string& ot_string::get | ( | void | ) | const |
Get string value
const ot_string& ot_string::operator= | ( | const string & | v | ) |
Operator =.
bool ot_string::operator== | ( | const ot_string & | v | ) | const |
Operator ==.
bool ot_string::operator== | ( | const string & | v | ) |
Operator ==.
bool ot_string::operator!= | ( | const ot_string & | v | ) |
Operator !=.
bool ot_string::operator!= | ( | const string & | v | ) |
Operator !=.
bool ot_string::operator== | ( | const ot_obj * | o | ) | const [inline, virtual] |
void ot_string::operator+= | ( | const ot_string & | c | ) |
Operator +=, add string.
void ot_string::operator+= | ( | X | x | ) | [inline] |
void ot_string::operator<< | ( | X | x | ) | [inline] |
string ot_string::m_value [private] |