ot_lib::ot_bool Class Reference

OT_LIB Boolean class. More...

#include <ot_lib.h>

Inheritance diagram for ot_lib::ot_bool:

ot_lib::ot_obj

List of all members.

Public Member Functions

 ot_bool (bool value=false)
 ot_bool (const ot_bool &c)
virtual ~ot_bool ()
 Destructor.
ot_objdup (void) const
 Duplicate object.
void asXml (ostream &s=cout, int i=0) const
bool asData (ostream &s) const
bool get (void) const
const ot_booloperator= (const ot_bool &c)
 Operator =.
const ot_booloperator= (bool v)
 Operator =.
bool operator== (const ot_bool &v) const
 Operator ==.
bool operator== (bool v) const
 Operator ==.
bool operator!= (const ot_bool &v) const
 Operator !=.
bool operator!= (bool v) const
 Operator !=.
bool operator== (const ot_obj *o) const
 Op. ==.
 operator bool (void) const

Private Attributes

bool m_value
 Boolean value.


Detailed Description

OT_LIB Boolean class.

Implementation of the base boolean object


Constructor & Destructor Documentation

ot_lib::ot_bool::ot_bool ( bool  value = false  ) 

Costructor

Parameters:
val The string

ot_lib::ot_bool::ot_bool ( const ot_bool c  ) 

virtual ot_lib::ot_bool::~ot_bool (  )  [virtual]

Destructor.


Member Function Documentation

ot_obj* ot_lib::ot_bool::dup ( void   )  const [virtual]

Duplicate object.

Implements ot_lib::ot_obj.

void ot_lib::ot_bool::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_lib::ot_obj.

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

Build a binary image of data object

Parameters:
s The output stream

Implements ot_lib::ot_obj.

bool ot_lib::ot_bool::get ( void   )  const

Get string value

Returns:
string value

const ot_bool& ot_lib::ot_bool::operator= ( const ot_bool c  ) 

Operator =.

const ot_bool& ot_lib::ot_bool::operator= ( bool  v  ) 

Operator =.

bool ot_lib::ot_bool::operator== ( const ot_bool v  )  const

Operator ==.

bool ot_lib::ot_bool::operator== ( bool  v  )  const

Operator ==.

bool ot_lib::ot_bool::operator!= ( const ot_bool v  )  const

Operator !=.

bool ot_lib::ot_bool::operator!= ( bool  v  )  const

Operator !=.

bool ot_lib::ot_bool::operator== ( const ot_obj o  )  const [inline, virtual]

Op. ==.

Implements ot_lib::ot_obj.

ot_lib::ot_bool::operator bool ( void   )  const


Member Data Documentation

bool ot_lib::ot_bool::m_value [private]

Boolean value.


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

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