openfluid::core::EventCollection Class Reference

Class defining a collection of discrete events. More...

List of all members.

Public Member Functions

bool addEvent (DistributedEvent *Ev)
bool getEventsBetween (const DateTime BeginDate, const DateTime EndDate, EventCollection *Events)
std::list< DistributedEvent * > * getEventsList ()
int getCount () const
void clear ()


Detailed Description

Class defining a collection of discrete events.

Member Function Documentation

bool openfluid::core::EventCollection::addEvent ( DistributedEvent Ev  ) 

Inserts an event in the event collection, ordered by date

bool openfluid::core::EventCollection::getEventsBetween ( const DateTime  BeginDate,
const DateTime  EndDate,
EventCollection Events 
)

Returns an event collection extracted from the current event collection, taking into account a time period

std::list<DistributedEvent*>* openfluid::core::EventCollection::getEventsList (  )  [inline]

Returns the event collection as a list

int openfluid::core::EventCollection::getCount (  )  const [inline]

Returns number of events in the event collection

void openfluid::core::EventCollection::clear (  )  [inline]

Clears the event collection


Generated using Doxygen 1.5.5
Creative Commons License Creative Commons By-NC-ND license