Jamoma API
0.6.0.a19
|
Handles TTApplication and #Protocol instances. More...
#include "TTModularIncludes.h"
Go to the source code of this file.
Classes | |
class | TTApplicationManager |
Handles TTApplication and #Protocol instances. More... | |
Enumerations | |
enum | TTApplicationNotificationFlag { kApplicationReleased = 0, kApplicationInstantiated = 1, kApplicationProtocolStarted = 2, kApplicationProtocolStopped = 3 } |
Functions | |
TTErr TTMODULAR_EXPORT | TTApplicationManagerAddApplicationObserver (TTSymbol anApplicationName, const TTObject anObserver) |
Add a TTCallback as observer of application creation/destruction note : it uses the extern TTModularApplications variable. More... | |
TTErr TTMODULAR_EXPORT | TTApplicationManagerRemoveApplicationObserver (TTSymbol anApplicationName, const TTObject anObserver) |
Remove a TTCallback as observer of application creation/destruction note : it uses the extern TTModularApplications variable. More... | |
TTErr TTMODULAR_EXPORT | TTApplicationManagerProtocolActivityInCallback (const TTValue &baton, const TTValue &data) |
To get back raw incoming messages from any protocol. More... | |
TTErr TTMODULAR_EXPORT | TTApplicationManagerProtocolActivityOutCallback (const TTValue &baton, const TTValue &data) |
To get back raw outputing messages from any protocol. More... | |
Handles TTApplication and #Protocol instances.
the TTApplicationManager class is a kind of tower control between our application (called "local") and all others (called "distant"). This coordination between applications is based on protocol units which one applications have to register.
Then, once applications are registered to protocols, any distant applications can :
Definition in file TTApplicationManager.h.
Definition at line 44 of file TTApplicationManager.h.
TTErr TTMODULAR_EXPORT TTApplicationManagerAddApplicationObserver | ( | TTSymbol | anApplicationName, |
const TTObject | anObserver | ||
) |
Add a TTCallback as observer of application creation/destruction note : it uses the extern TTModularApplications variable.
anApplicationName | an application to observe |
observer | a TTCallbackPtr to add |
Definition at line 1403 of file TTApplicationManager.cpp.
References TTHash::append(), kTTErrNone, kTTErrValueNotFound, TTHash::lookup(), and TTModularApplicationManager.
TTErr TTMODULAR_EXPORT TTApplicationManagerProtocolActivityInCallback | ( | const TTValue & | baton, |
const TTValue & | data | ||
) |
To get back raw incoming messages from any protocol.
baton | .. |
data | .. |
Definition at line 1470 of file TTApplicationManager.cpp.
References kTTErrNone, TTValue::prepend(), TTObject::set(), and TTModularApplicationManager.
TTErr TTMODULAR_EXPORT TTApplicationManagerProtocolActivityOutCallback | ( | const TTValue & | baton, |
const TTValue & | data | ||
) |
To get back raw outputing messages from any protocol.
baton | .. |
data | .. |
Definition at line 1486 of file TTApplicationManager.cpp.
References kTTErrNone, TTValue::prepend(), TTObject::set(), and TTModularApplicationManager.
TTErr TTMODULAR_EXPORT TTApplicationManagerRemoveApplicationObserver | ( | TTSymbol | anApplicationName, |
const TTObject | anObserver | ||
) |
Remove a TTCallback as observer of application creation/destruction note : it uses the extern TTModularApplications variable.
anApplicationName | an application |
observer | a TTCallbackPtr to remove |
Definition at line 1435 of file TTApplicationManager.cpp.
References kTTErrValueNotFound, TTHash::lookup(), TTHash::remove(), and TTModularApplicationManager.