#include <operationalcalendar.h>
Public Member Functions | |
OperationalCalendar (nap::Core &core) | |
virtual | ~OperationalCalendar () |
virtual bool | init (utility::ErrorState &errorState) override |
CalendarInstance & | getInstance () override |
const CalendarInstance & | getInstance () const override |
bool | isOperational () |
![]() | |
ICalendar (nap::Core &core) | |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
bool | mAllowFailure = true |
Property: 'AllowLoadFailure' If initialization continues when loading a calendar from disk fails. In that case resource defaults are used. More... | |
CalendarItem::Point | mMonday |
Property: 'Monday' Monday operational hours. More... | |
CalendarItem::Point | mTuesday |
Property: 'Tuesday' Tuesday operational hours. More... | |
CalendarItem::Point | mWednesday |
Property: 'Wednesday' Wednesday operational hours. More... | |
CalendarItem::Point | mThursday |
Property: 'Thursday' Thursday operational hours. More... | |
CalendarItem::Point | mFriday |
Property: 'Friday' Friday operational hours. More... | |
CalendarItem::Point | mSaturday |
Property: 'Saturday' Saturday operational hours. More... | |
CalendarItem::Point | mSunday |
Property: 'Sunday' Sunday operational hours. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
![]() | |
nap::Core & | mCore |
NAP core. More... | |
Special, but common, type of calendar. Allows you to define and inspect, for every day of the week, when something is in operation. If you want more control use the regular nap::Calendar instead. The title of every created item is the 'nap::EDay' of the week, the ID is unique.
OperationalCalendar | ( | nap::Core & | core | ) |
|
virtual |
|
overridevirtual |
Implements ICalendar.
|
overridevirtual |
Implements ICalendar.
|
overridevirtual |
Creates and initializes the operational calendar instance
Reimplemented from Object.
bool isOperational | ( | ) |
bool mAllowFailure = true |
Property: 'AllowLoadFailure' If initialization continues when loading a calendar from disk fails. In that case resource defaults are used.
CalendarItem::Point mFriday |
Property: 'Friday' Friday operational hours.
CalendarItem::Point mMonday |
Property: 'Monday' Monday operational hours.
CalendarItem::Point mSaturday |
Property: 'Saturday' Saturday operational hours.
CalendarItem::Point mSunday |
Property: 'Sunday' Sunday operational hours.
CalendarItem::Point mThursday |
Property: 'Thursday' Thursday operational hours.
CalendarItem::Point mTuesday |
Property: 'Tuesday' Tuesday operational hours.
CalendarItem::Point mWednesday |
Property: 'Wednesday' Wednesday operational hours.