ot_string Class Reference

OT_LIB String class. More...

#include <ot_string.h>

Inheritance diagram for ot_string:

ot_obj

List of all members.

Public Member Functions

 ot_string (const string &val="")
 ot_string (const ot_string &c)
virtual ~ot_string ()
 Destructor.
ot_objdup (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_stringoperator= (const ot_string &c)
 Operator =.
const ot_stringoperator= (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.


Detailed Description

OT_LIB String class.

Implementation of the base string object


Constructor & Destructor Documentation

ot_string::ot_string ( const string &  val = ""  ) 

Costructor

Parameters:
val The string

ot_string::ot_string ( const ot_string c  ) 

virtual ot_string::~ot_string (  )  [virtual]

Destructor.


Member Function Documentation

ot_obj* ot_string::dup ( void   )  const [virtual]

Duplicate object.

Implements ot_obj.

void ot_string::asXml ( ostream &  s = cout,
int  i = 0 
) const [virtual]

Print the XML rappresentation of object into string

Parameters:
s The output string
i The indent spaces

Implements ot_obj.

bool ot_string::asData ( ostream &  s  )  const [virtual]

Build a binary image of data object

Parameters:
s The output stream

Implements ot_obj.

const string& ot_string::get ( void   )  const

Get string value

Returns:
string value

const ot_string& ot_string::operator= ( const ot_string c  ) 

Operator =.

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]

Op. ==.

Implements ot_obj.

References ot_obj::getType().

const ot_string ot_string::operator+ ( const ot_string c  )  const

Operator +, add string.

void ot_string::operator+= ( const ot_string c  ) 

Operator +=, add string.

template<class X>
void ot_string::operator+= ( x  )  [inline]

Operator +=, add a generic type.

References m_value.

template<class X>
void ot_string::operator<< ( x  )  [inline]

Operator +=, add a generic type.

References m_value.


Member Data Documentation

string ot_string::m_value [private]

String value.

Referenced by operator+=(), and operator<<().


The documentation for this class was generated from the following file:

Generated on Sun May 4 12:42:44 2008 for OT_LIB 4.1 by  doxygen 1.5.5