1 #ifndef EVENT_SCHEDULE_H
2 #define EVENT_SCHEDULE_H
65 unsigned int size()
const;
99 ss<<
"The EventSchedule index "<<index<<
" was out-of-bounds.";
100 this->exceptionStr = ss.str();
106 const char* what()
const throw() {
107 return this->exceptionStr.c_str();
111 std::string exceptionStr;
117 typedef std::vector<Event> scheduleType;
118 scheduleType schedule;
123 #endif //EVENT_SCHEDULE_H
void setStartTime(const Quantity &time)
Definition: event-schedule.cpp:14
Definition: event-schedule.h:21
void setEndTime(const Quantity &time)
Definition: event-schedule.cpp:22
unsigned int size() const
Definition: event-schedule.cpp:26
Quantity getStartTime() const
Definition: event-schedule.cpp:10
void addEvent(const Event &event)
Definition: event-schedule.cpp:37
EventSchedule(const Quantity &startTime_=Quantity("0s", Units::Time), const Quantity &endTime_=Quantity("0s", Units::Time))
Definition: event-schedule.cpp:7
void removeEvent(unsigned int index)
Definition: event-schedule.cpp:42
Quantity getEndTime() const
Definition: event-schedule.cpp:18
Definition: event-schedule.h:95
Definition: quantity.h:16
Event getEvent(unsigned int index) const
Definition: event-schedule.cpp:30