Logo
~Sockets~
~Examples~
~Contact~


Event Class Reference
[EventTimer event handling]

Store information about a timer event. More...

#include <Event.h>

Collaboration diagram for Event:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Event (IEventOwner *, long sec, long usec)
 ~Event ()
bool operator< (Event &)
long GetID ()
const EventTimeGetTime () const
IEventOwnerGetFrom ()

Private Member Functions

 Event (const Event &)
Eventoperator= (const Event &)

Private Attributes

IEventOwnerm_from
EventTime m_time
long m_id

Static Private Attributes

static long m_unique_id = 0

Detailed Description

Store information about a timer event.

Definition at line 49 of file Event.h.


Constructor & Destructor Documentation

Event::Event ( IEventOwner ,
long  sec,
long  usec 
)

Definition at line 48 of file Event.cpp.

00048                                                  : m_from(from), m_time(sec, usec), m_id(++m_unique_id)
00049 {
00050 }

Event::~Event (  ) 

Definition at line 53 of file Event.cpp.

00054 {
00055 }

Event::Event ( const Event  )  [inline, private]

Definition at line 61 of file Event.h.

00061 {} // copy constructor


Member Function Documentation

bool Event::operator< ( Event  ) 

Definition at line 58 of file Event.cpp.

References m_time.

00059 {
00060         return m_time < e.m_time;
00061 }

long Event::GetID (  ) 

Definition at line 64 of file Event.cpp.

References m_id.

00065 {
00066         return m_id;
00067 }

const EventTime & Event::GetTime (  )  const

Definition at line 70 of file Event.cpp.

References m_time.

00071 {
00072         return m_time;
00073 }

IEventOwner * Event::GetFrom (  ) 

Definition at line 76 of file Event.cpp.

References m_from.

00077 {
00078         return m_from;
00079 }

Event& Event::operator= ( const Event  )  [inline, private]

Definition at line 62 of file Event.h.

00062 { return *this; } // assignment operator


Member Data Documentation

Definition at line 63 of file Event.h.

Referenced by GetFrom().

Definition at line 64 of file Event.h.

Referenced by GetTime(), and operator<().

long Event::m_unique_id = 0 [static, private]

Definition at line 65 of file Event.h.

long Event::m_id [private]

Definition at line 66 of file Event.h.

Referenced by GetID().


The documentation for this class was generated from the following files:
Page, code, and content Copyright (C) 2007 by Anders Hedström
Generated for C++ Sockets by  doxygen 1.4.4