Jamoma API  0.6.0.a19
TTApplicationManager.cpp File Reference

Handles TTApplication and #Protocol instances. More...

#include "TTApplicationManager.h"
#include "TTProtocol.h"
#include <libxml/encoding.h>
#include <libxml/xmlwriter.h>
#include <libxml/xmlreader.h>
+ Include dependency graph for TTApplicationManager.cpp:

Go to the source code of this file.

Functions

TTErr TTApplicationManagerAddApplicationObserver (TTSymbol anApplicationName, const TTObject anObserver)
 Add a TTCallback as observer of application creation/destruction note : it uses the extern TTModularApplications variable. More...
 
TTErr TTApplicationManagerRemoveApplicationObserver (TTSymbol anApplicationName, const TTObject anObserver)
 Remove a TTCallback as observer of application creation/destruction note : it uses the extern TTModularApplications variable. More...
 
TTErr TTApplicationManagerProtocolActivityInCallback (const TTValue &baton, const TTValue &data)
 To get back raw incoming messages from any protocol. More...
 
TTErr TTApplicationManagerProtocolActivityOutCallback (const TTValue &baton, const TTValue &data)
 To get back raw outputing messages from any protocol. More...
 

Detailed Description

Handles TTApplication and #Protocol instances.

See also
TTApplication, ProtocolLib
Authors
Théo de la Hogue

Definition in file TTApplicationManager.cpp.

Function Documentation

TTErr TTApplicationManagerAddApplicationObserver ( TTSymbol  anApplicationName,
const TTObject  anObserver 
)

Add a TTCallback as observer of application creation/destruction note : it uses the extern TTModularApplications variable.

Parameters
anApplicationNamean application to observe
observera TTCallbackPtr to add
Returns
an error code

Definition at line 1403 of file TTApplicationManager.cpp.

References TTHash::append(), kTTErrNone, kTTErrValueNotFound, TTHash::lookup(), and TTModularApplicationManager.

+ Here is the call graph for this function:

TTErr TTApplicationManagerProtocolActivityInCallback ( const TTValue baton,
const TTValue data 
)

To get back raw incoming messages from any protocol.

Parameters
baton..
data..
Returns
an error code

Definition at line 1470 of file TTApplicationManager.cpp.

References kTTErrNone, TTValue::prepend(), TTObject::set(), and TTModularApplicationManager.

+ Here is the call graph for this function:

TTErr TTApplicationManagerProtocolActivityOutCallback ( const TTValue baton,
const TTValue data 
)

To get back raw outputing messages from any protocol.

Parameters
baton..
data..
Returns
an error code

Definition at line 1486 of file TTApplicationManager.cpp.

References kTTErrNone, TTValue::prepend(), TTObject::set(), and TTModularApplicationManager.

+ Here is the call graph for this function:

TTErr TTApplicationManagerRemoveApplicationObserver ( TTSymbol  anApplicationName,
const TTObject  anObserver 
)

Remove a TTCallback as observer of application creation/destruction note : it uses the extern TTModularApplications variable.

Parameters
anApplicationNamean application
observera TTCallbackPtr to remove
Returns
a kTTErrGeneric if there isn't observer

Definition at line 1435 of file TTApplicationManager.cpp.

References kTTErrValueNotFound, TTHash::lookup(), TTHash::remove(), and TTModularApplicationManager.

+ Here is the call graph for this function: