ot_time Class Reference

OT_LIB time type class. More...

#include <ot_time.h>

Inheritance diagram for ot_time:

ot_obj

List of all members.

Public Member Functions

 ot_time (void)
 Costructor, set the object with the current time.
 ot_time (time_t value)
 Costructor, set the object with the value time.
virtual ~ot_time ()
 Destructor.
 ot_time (const ot_time &c)
ot_objdup (void) const
void asXml (ostream &s=cout, int i=0) const
bool asData (ostream &s) const
const time_t & get (void) const
bool operator== (const ot_obj *o) const
 Op. ==.

Private Attributes

time_t m_value
 Time in system format.


Detailed Description

OT_LIB time type class.

This class can be used to store time values


Constructor & Destructor Documentation

ot_time::ot_time ( void   ) 

Costructor, set the object with the current time.

ot_time::ot_time ( time_t  value  ) 

Costructor, set the object with the value time.

virtual ot_time::~ot_time (  )  [virtual]

Destructor.

ot_time::ot_time ( const ot_time c  ) 

Copy constructor

Parameters:
c The object to coy


Member Function Documentation

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

close the object

Returns:
Pointer to the new object

Implements ot_obj.

void ot_time::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_time::asData ( ostream &  s  )  const [virtual]

Build a binary image of data object

Parameters:
s The output stream

Implements ot_obj.

const time_t& ot_time::get ( void   )  const

Get the time value

Returns:
Time value

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

Op. ==.

Implements ot_obj.

References ot_obj::getType().


Member Data Documentation

time_t ot_time::m_value [private]

Time in system format.


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