NAP
Public Member Functions | Protected Attributes | List of all members
ICalendar Class Referenceabstract

#include <calendar.h>

Public Member Functions

 ICalendar (nap::Core &core)
 
virtual CalendarInstancegetInstance ()=0
 
virtual const CalendarInstancegetInstance () const =0
 
- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual bool init (utility::ErrorState &errorState)
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Protected Attributes

nap::CoremCore
 NAP core. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Description

Base class of all Calendar types. Acts as an interface to the underlying calendar instance. Every derived class must create and return a calendar instance. Use the nap::CalendarComponent to receive a notification when an event starts and ends.

Inheritance diagram for ICalendar:
[legend]
Collaboration diagram for ICalendar:
[legend]

Constructor & Destructor Documentation

◆ ICalendar()

ICalendar ( nap::Core core)

Member Function Documentation

◆ getInstance() [1/2]

virtual const CalendarInstance& getInstance ( ) const
pure virtual
Returns
the calendar instance, only available after initialization

Implemented in Calendar, and OperationalCalendar.

◆ getInstance() [2/2]

virtual CalendarInstance& getInstance ( )
pure virtual
Returns
the calendar instance, only available after initialization

Implemented in Calendar, and OperationalCalendar.

Member Data Documentation

◆ mCore

nap::Core& mCore
protected

NAP core.