OmTime Class Reference

A class representing a time. More...

#include <omtime.h>

List of all members.

Public Member Functions

 OmTime ()
 Initialise to 0.
 OmTime (long int msec)
 Initialised.
 OmTime (long int sec_, long int usec_)
void operator+= (Xapian::timeout msecs)
void operator+= (const OmTime &add)
OmTime operator+ (Xapian::timeout msecs) const
OmTime operator+ (const OmTime &add) const
OmTime operator- (const OmTime &sub) const
bool operator> (const OmTime &rhs) const
bool is_set () const
double as_double () const

Static Public Member Functions

static OmTime now ()
 Return the current time.

Public Attributes

long int sec
long int usec


Detailed Description

A class representing a time.

Definition at line 38 of file omtime.h.


Constructor & Destructor Documentation

OmTime::OmTime (  )  [inline]

Initialise to 0.

Definition at line 41 of file omtime.h.

OmTime::OmTime ( long int  msec  )  [inline]

Initialised.

Definition at line 47 of file omtime.h.

OmTime::OmTime ( long int  sec_,
long int  usec_ 
) [inline]

Definition at line 48 of file omtime.h.


Member Function Documentation

OmTime OmTime::now (  )  [inline, static]

Return the current time.

Definition at line 106 of file omtime.h.

References sec, and usec.

Referenced by bigoaddvalue_helper(), RemoteServer::get_message(), RemoteDatabase::get_message(), RemoteConnection::read_at_least(), RemoteServer::run(), RemoteServer::send_message(), RemoteDatabase::send_message(), and time_query_parse().

void OmTime::operator+= ( Xapian::timeout  msecs  )  [inline]

Definition at line 50 of file omtime.h.

References sec, and usec.

void OmTime::operator+= ( const OmTime add  )  [inline]

Definition at line 56 of file omtime.h.

References sec, and usec.

OmTime OmTime::operator+ ( Xapian::timeout  msecs  )  const [inline]

Definition at line 62 of file omtime.h.

References sec, and usec.

OmTime OmTime::operator+ ( const OmTime add  )  const [inline]

Definition at line 70 of file omtime.h.

References sec, and usec.

OmTime OmTime::operator- ( const OmTime sub  )  const [inline]

Definition at line 78 of file omtime.h.

References sec, and usec.

bool OmTime::operator> ( const OmTime rhs  )  const [inline]

Definition at line 89 of file omtime.h.

References sec, and usec.

bool OmTime::is_set (  )  const [inline]

Definition at line 95 of file omtime.h.

References sec, and usec.

Referenced by RemoteConnection::read_at_least().

double OmTime::as_double (  )  const [inline]

Definition at line 97 of file omtime.h.

References sec, and usec.


Member Data Documentation

long int OmTime::sec

Definition at line 101 of file omtime.h.

Referenced by as_double(), is_set(), now(), operator+(), operator+=(), operator-(), operator>(), and RemoteConnection::read_at_least().

long int OmTime::usec

Definition at line 102 of file omtime.h.

Referenced by as_double(), is_set(), now(), operator+(), operator+=(), operator-(), operator>(), and RemoteConnection::read_at_least().


The documentation for this class was generated from the following file:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.