Logo
~Sockets~
~Examples~
~Contact~


Event Class Reference
[EventTimer event handling]

Store information about a timer event. More...

#include <Event.h>

Collaboration diagram for Event:

List of all members.


Public Member Functions

 Event (IEventOwner *, long sec, long usec, unsigned long data=0)
 ~Event ()
bool operator< (Event &)
long GetID () const
const EventTimeGetTime () const
IEventOwnerGetFrom () const
unsigned long Data () const

Private Member Functions

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

Private Attributes

IEventOwnerm_from
unsigned long m_data
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 51 of file Event.h.


Constructor & Destructor Documentation

Event::Event ( IEventOwner from,
long  sec,
long  usec,
unsigned long  data = 0 
)

Definition at line 50 of file Event.cpp.

00050                                                                     : m_from(from), m_data(data), m_time(sec, usec), m_id(++m_unique_id)
00051 {
00052 }

Event::~Event (  ) 

Definition at line 55 of file Event.cpp.

00056 {
00057 }

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

Definition at line 64 of file Event.h.

00064 {} // copy constructor


Member Function Documentation

bool Event::operator< ( Event e  ) 

Definition at line 60 of file Event.cpp.

References m_time.

00061 {
00062         return m_time < e.m_time;
00063 }

long Event::GetID (  )  const

Definition at line 66 of file Event.cpp.

References m_id.

00067 {
00068         return m_id;
00069 }

const EventTime & Event::GetTime (  )  const

Definition at line 72 of file Event.cpp.

References m_time.

00073 {
00074         return m_time;
00075 }

IEventOwner * Event::GetFrom (  )  const

Definition at line 78 of file Event.cpp.

References m_from.

00079 {
00080         return m_from;
00081 }

unsigned long Event::Data (  )  const

Definition at line 84 of file Event.cpp.

References m_data.

00085 {
00086         return m_data;
00087 }

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

Definition at line 65 of file Event.h.

00065 { return *this; } // assignment operator


Member Data Documentation

Definition at line 66 of file Event.h.

Referenced by GetFrom().

unsigned long Event::m_data [private]

Definition at line 67 of file Event.h.

Referenced by Data().

Definition at line 68 of file Event.h.

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

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

Definition at line 69 of file Event.h.

long Event::m_id [private]

Definition at line 70 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