ot_lib::ot_num< X > Class Template Reference

OT_LIB Numeric type base class. More...

#include <ot_lib.h>

Inheritance diagram for ot_lib::ot_num< X >:

ot_lib::ot_obj

List of all members.

Public Member Functions

virtual ~ot_num ()
 destructor
bool operator== (const ot_obj *o) const
 Eq operator.
void asXml (ostream &s=cout, int i=0) const
bool asData (ostream &s) const
const X get (void) const

Protected Member Functions

 ot_num (OT_OBJECT_TYPE t, X val)

Protected Attributes

m_value
 Value.


Detailed Description

template<class X>
class ot_lib::ot_num< X >

OT_LIB Numeric type base class.

Base class for the numeric object type


Constructor & Destructor Documentation

template<class X>
ot_lib::ot_num< X >::ot_num ( OT_OBJECT_TYPE  t,
val 
) [inline, protected]

Get object type

Parameters:
t The object type object
val X value

template<class X>
virtual ot_lib::ot_num< X >::~ot_num (  )  [inline, virtual]

destructor


Member Function Documentation

template<class X>
bool ot_lib::ot_num< X >::operator== ( const ot_obj o  )  const [inline, virtual]

Eq operator.

Implements ot_lib::ot_obj.

template<class X>
void ot_num< X >::asXml ( ostream &  s = cout,
int  i = 0 
) const [inline, virtual]

Print the XML rappresentation of object into output stream

Parameters:
s The output stream
i The indent spaces

Implements ot_lib::ot_obj.

template<class X>
bool ot_num< X >::asData ( ostream &  s  )  const [inline, virtual]

Build a binary image of data object

Parameters:
s The output stream

Implements ot_lib::ot_obj.

template<class X>
const X ot_lib::ot_num< X >::get ( void   )  const [inline]

Get X value

Returns:
X value


Member Data Documentation

template<class X>
X ot_lib::ot_num< X >::m_value [protected]

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