8 #ifndef META_OCEAN_BASE_APPLICATION_INTERFACE_H
9 #define META_OCEAN_BASE_APPLICATION_INTERFACE_H
This class implements a very light application interface.
Definition: ApplicationInterface.h:29
void setContentRemoveCallbackFunction(const ContentCallback &callback)
Sets or replaces the remove content callback function.
static const EventId invalidEventId
Definition of an invalid event id.
Definition: ApplicationInterface.h:42
EventCallbacks contentEventCallbacks
Event callbacks.
Definition: ApplicationInterface.h:146
unsigned int EventId
Definition of an event id.
Definition: ApplicationInterface.h:37
ContentCallback contentAddCallback
Content add callback.
Definition: ApplicationInterface.h:140
ContentCallback contentRemoveCallback
Content remove callback.
Definition: ApplicationInterface.h:143
void removeEventCallbackFunction(const EventCallback &callback)
Removes an event callback function.
Callback< void, EventId, bool, bool > EventCallback
Definition of a content event callback function.
Definition: ApplicationInterface.h:67
void contentAdded(const EventId eventId, const bool state)
Event function for added content.
void contentRemoved(const EventId eventId, const bool state)
Event function for removed content.
std::vector< std::string > StringVector
Definition of a vector holding strings.
Definition: ApplicationInterface.h:52
virtual ~ApplicationInterface()
Destructs an application interface object.
std::vector< EventId > EventIds
Definition of a vector holding event ids.
Definition: ApplicationInterface.h:47
Callback< EventIds, const StringVector & > ContentCallback
Definition of a content add or remove callback function.
Definition: ApplicationInterface.h:59
void addEventCallbackFunction(const EventCallback &callback)
Adds an event callback function.
EventIds addContent(const StringVector &content)
Tells the application to add content.
void setContentAddCallbackFunction(const ContentCallback &callback)
Sets or replaces the add content callback function.
Lock lock
Interface lock.
Definition: ApplicationInterface.h:149
Callbacks< EventCallback > EventCallbacks
Definition of an vector holding event callbacks.
Definition: ApplicationInterface.h:74
EventIds removeContent(const StringVector &content)
Tells the application to close all existing files.
This class implements a recursive lock object.
Definition: Lock.h:31
This template class is the base class for all singleton objects.
Definition: Singleton.h:71
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15