Public Member Functions

openfluid::core::EventsCollection Class Reference

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

List of all members.

Public Member Functions

 EventsCollection ()
virtual ~EventsCollection ()
bool addEvent (const Event *Ev)
bool addEvent (const Event &Ev)
bool getEventsBetween (const DateTime BeginDate, const DateTime EndDate, EventsCollection *Events) const
bool getEventsBetween (const DateTime BeginDate, const DateTime EndDate, EventsCollection &Events) const
EventsList_tgetEventsList ()
int getCount () const
void clear ()
void clear (const InstantiationInfo::Type &InstType)
void println () const

Detailed Description

Class defining a collection of discrete events.


Constructor & Destructor Documentation

openfluid::core::EventsCollection::EventsCollection ( )
virtual openfluid::core::EventsCollection::~EventsCollection ( ) [virtual]

Member Function Documentation

bool openfluid::core::EventsCollection::addEvent ( const Event Ev)

Inserts an event in the event collection, ordered by date

Deprecated:
bool openfluid::core::EventsCollection::addEvent ( const Event Ev)

Inserts an event in the event collection, ordered by date

Deprecated:
void openfluid::core::EventsCollection::clear ( const InstantiationInfo::Type InstType)

Clears the events corresponding to the given instantiation type.

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

Clears the event collection

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

Returns number of events in the event collection

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

Returns an event collection extracted from the current event collection, taking into account a time period If some events are already in the given collection, they are not deleted. Events matching the period are appended at the end of the given collection

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

Returns an event collection extracted from the current event collection, taking into account a time period If some events are already in the given collection, they are not deleted. Events matching the period are appended at the end of the given collection

Deprecated:
EventsList_t* openfluid::core::EventsCollection::getEventsList ( ) [inline]

Returns the event collection as a list

void openfluid::core::EventsCollection::println ( ) const

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