#include <ot_time.h>
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_obj * | dup (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. |
This class can be used to store time values
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
c | The object to coy |
ot_obj* ot_time::dup | ( | void | ) | const [virtual] |
void ot_time::asXml | ( | ostream & | s = cout , |
|
int | i = 0 | |||
) | const [virtual] |
Print the XML rappresentation of object into string
s | the output string | |
i | The indent spaces |
Implements ot_obj.
bool ot_time::asData | ( | ostream & | s | ) | const [virtual] |
const time_t& ot_time::get | ( | void | ) | const |
Get the time value
bool ot_time::operator== | ( | const ot_obj * | o | ) | const [inline, virtual] |
time_t ot_time::m_value [private] |
Time in system format.