![]() |
Class defining a collection of discrete events. More...
#include <core/EventsCollection.hpp>
Public Member Functions | |
EventsCollection ()=default | |
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_t * | eventsList () |
EventsList_t * | getEventsList () |
int | getCount () const |
void | clear () |
void | println () const |
Class defining a collection of discrete events.
|
default |
Default constructor
|
inlinevirtual |
bool openfluid::core::EventsCollection::addEvent | ( | const Event * | Ev | ) |
Inserts an event in the event collection, ordered by date
bool openfluid::core::EventsCollection::addEvent | ( | const Event & | Ev | ) |
Inserts an event in the event collection, ordered by date
|
inline |
Clears the event collection
|
inline |
Returns the event collection as a list
|
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
|
inline |
void openfluid::core::EventsCollection::println | ( | ) | const |