#include <ot_lib.h>
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 | |
X | m_value |
Value. |
Base class for the numeric object type
ot_lib::ot_num< X >::ot_num | ( | OT_OBJECT_TYPE | t, | |
X | val | |||
) | [inline, protected] |
Get object type
t | The object type object | |
val | X value |
virtual ot_lib::ot_num< X >::~ot_num | ( | ) | [inline, virtual] |
destructor
bool ot_lib::ot_num< X >::operator== | ( | const ot_obj * | o | ) | const [inline, virtual] |
Print the XML rappresentation of object into output stream
s | The output stream | |
i | The indent spaces |
Implements ot_lib::ot_obj.
bool ot_num< X >::asData | ( | ostream & | s | ) | const [inline, virtual] |
const X ot_lib::ot_num< X >::get | ( | void | ) | const [inline] |
Get X value
X ot_lib::ot_num< X >::m_value [protected] |
Value.