Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ZTime Class Reference

#include <ZTime.h>

Inheritance diagram for ZTime:

Object List of all members.

Public Methods

 ZTime ()
 ~ZTime ()
void print (char *buf)
const char * print_ctime ()
const char * print_hour ()
ZTime operator- (const ZTime &time)
ZTime operator- (const uint time)
ZTime operator+ (const ZTime &time)
ZTime operator+ (const uint time)
ZTime & operator= (const uint time)
int operator== (const ZTime &time)
int operator== (const uint time)
int operator> (const ZTime &time)
int operator> (const uint time)
int operator>= (const ZTime &time)
int operator>= (const uint time)
void GetTimeOfDay ()
void Now ()
virtual int compare (Object *)
virtual ObjectCopy ()

Public Attributes

uint sec
uint usec

Private Attributes

char * ctimebuf
char * hourbuf

Constructor & Destructor Documentation

ZTime::ZTime   [inline]
 

Definition at line 33 of file ZTime.h.

ZTime::~ZTime   [inline]
 

Definition at line 38 of file ZTime.h.


Member Function Documentation

virtual int Object::compare Object   [inline, virtual, inherited]
 

To ensure a consistent comparison interface and to allow comparison of all kinds of different objects, we will define a comparison functions.

Definition at line 31 of file Object.h.

virtual Object* Object::Copy   [inline, virtual, inherited]
 

To allow a deep copy of data structures we will define a standard interface... This member will return a copy of itself, freshly allocated and deep copied.

Reimplemented in List.

Definition at line 37 of file Object.h.

Referenced by List::Copy(), and List::operator=().

void ZTime::GetTimeOfDay  
 

Definition at line 24 of file ZTime.cpp.

References sec, and usec.

Referenced by Master::log_job_msg(), Master::log_other_msg(), Master::log_slave_msg(), Master::log_task_msg(), Master::Master(), Master::msgTaskMove(), and Master::sndMessageToClient().

void ZTime::Now   [inline]
 

Definition at line 63 of file ZTime.h.

Referenced by Master::checkingThread(), UDPConfirm::checkList(), Master::checkReserves(), Master::dispatchMsg(), UDPConfirm::insertConfirm(), UDPConfirm::isConfirm(), Master::log_slave_state_change(), Master::Master(), Master::msgSlaveStatus_Busy(), Master::msgSlaveStatus_Disabled(), Master::msgSlaveStatus_Ready(), Master::msgTaskStatus_Started(), Master::print_status(), UDPSocket::sendData(), UDPConfirm::sendItem(), SlaveStatistics::SlaveStatistics(), Master::startTask(), SlaveStatistics::stateChange(), and UDPSocket::waitData().

ZTime ZTime::operator+ const uint    time
 

Definition at line 111 of file ZTime.cpp.

References sec, uint, and usec.

ZTime ZTime::operator+ const ZTime &    time
 

Definition at line 101 of file ZTime.cpp.

References sec, and usec.

ZTime ZTime::operator- const uint    time
 

Definition at line 91 of file ZTime.cpp.

References sec, uint, and usec.

ZTime ZTime::operator- const ZTime &    time
 

Definition at line 80 of file ZTime.cpp.

References sec, and usec.

ZTime & ZTime::operator= const uint    time
 

Definition at line 122 of file ZTime.cpp.

References sec, uint, and usec.

int ZTime::operator== const uint    time
 

Definition at line 138 of file ZTime.cpp.

References sec, and uint.

int ZTime::operator== const ZTime &    time
 

Definition at line 131 of file ZTime.cpp.

References sec, and usec.

int ZTime::operator> const uint    time
 

Definition at line 152 of file ZTime.cpp.

References sec, and uint.

int ZTime::operator> const ZTime &    time
 

Definition at line 144 of file ZTime.cpp.

References sec, and usec.

int ZTime::operator>= const uint    time
 

Definition at line 166 of file ZTime.cpp.

References sec, and uint.

int ZTime::operator>= const ZTime &    time
 

Definition at line 158 of file ZTime.cpp.

void ZTime::print char *    buf
 

Definition at line 50 of file ZTime.cpp.

References sec, and usec.

Referenced by Master::checkingThread(), Master::dispatchMsg(), UDPSocket::sendData(), and UDPSocket::waitData().

const char * ZTime::print_ctime  
 

Definition at line 58 of file ZTime.cpp.

References ctimebuf, CTIMEBUFSIZE, and sec.

Referenced by Master::log_job_msg(), Master::log_other_msg(), Master::log_slave_msg(), Master::log_task_msg(), and Master::print_status().

const char * ZTime::print_hour  
 

Definition at line 70 of file ZTime.cpp.

References hourbuf, and sec.

Referenced by Master::log_slave_state_change(), and Master::log_slave_total().


Member Data Documentation

char* ZTime::ctimebuf [private]
 

Definition at line 26 of file ZTime.h.

Referenced by print_ctime().

char* ZTime::hourbuf [private]
 

Definition at line 29 of file ZTime.h.

Referenced by print_hour().

uint ZTime::sec
 

Definition at line 22 of file ZTime.h.

Referenced by Master::checkingThread(), GetTimeOfDay(), Master::log_slave_state_change(), Master::log_slave_total(), Master::Master(), operator+(), operator-(), operator=(), operator==(), operator>(), operator>=(), print(), print_ctime(), print_hour(), Master::print_status(), and SlaveStatistics::stateChange().

uint ZTime::usec
 

Definition at line 23 of file ZTime.h.

Referenced by Master::checkingThread(), GetTimeOfDay(), Master::log_slave_state_change(), Master::log_slave_total(), Master::Master(), operator+(), operator-(), operator=(), operator==(), operator>(), print(), Master::print_status(), and SlaveStatistics::stateChange().


The documentation for this class was generated from the following files:
Generated on Mon Nov 25 12:46:42 2002 for qadpz by doxygen1.2.18