#include <ot_lib.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_lib::ot_string::ot_string | ( | const string & | val = "" |
) |
Costructor
| val | The string |
| ot_lib::ot_string::ot_string | ( | const ot_string & | c | ) |
| virtual ot_lib::ot_string::~ot_string | ( | ) | [virtual] |
Destructor.
| ot_obj* ot_lib::ot_string::dup | ( | void | ) | const [virtual] |
| void ot_lib::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_lib::ot_obj.
| bool ot_lib::ot_string::asData | ( | ostream & | s | ) | const [virtual] |
| const string& ot_lib::ot_string::get | ( | void | ) | const |
Get string value
| const ot_string& ot_lib::ot_string::operator= | ( | const string & | v | ) |
Operator =.
| bool ot_lib::ot_string::operator== | ( | const ot_string & | v | ) | const |
Operator ==.
| bool ot_lib::ot_string::operator== | ( | const string & | v | ) |
Operator ==.
| bool ot_lib::ot_string::operator!= | ( | const ot_string & | v | ) |
Operator !=.
| bool ot_lib::ot_string::operator!= | ( | const string & | v | ) |
Operator !=.
| bool ot_lib::ot_string::operator== | ( | const ot_obj * | o | ) | const [inline, virtual] |
| void ot_lib::ot_string::operator+= | ( | const ot_string & | c | ) |
Operator +=, add string.
| void ot_string::operator+= | ( | X | x | ) | [inline] |
Operator +=, add a generic type.
| void ot_string::operator<< | ( | X | x | ) | [inline] |
Operator +=, add a generic type.
string ot_lib::ot_string::m_value [private] |
String value.
1.5.5