Jamoma API  0.6.0.a19
TTGraphInput.cpp
Go to the documentation of this file.
1 /** @file
2  *
3  * @ingroup graphLibrary
4  *
5  * @brief Jamoma Asynchronous Object Graph Layer
6  *
7  * @details Creates a wrapper for TTObjectBases that can be used to build a control graph for asynchronous message passing
8  *
9  * @authors Timothy Place
10  *
11  * @copyright Copyright © 2010 by Timothy Place @n
12  * This code is licensed under the terms of the "New BSD License" @n
13  * http://creativecommons.org/licenses/BSD/
14  */
15 
16 
17 #include "TTGraphObjectBase.h"
18 #include "TTGraphInput.h"
19 
20 #define thisTTClass TTGraphInput
21 #define thisTTClassName "graph.input"
22 #define thisTTClassTags "graph, input"
23 
24 
26  mOwner(NULL)
27 {
28  ;
29 }
30 
31 
32 TTGraphInput::~TTGraphInput()
33 {
34  ;
35 }
36 
37 
38 TTErr TTGraphInput::setOwner(TTGraphObjectBasePtr newOwner)
39 {
40  mOwner = newOwner;
41  return kTTErrNone;
42 }
43 
44 
45 TTErr TTGraphInput::push(const TTDictionary& aDictionary)
46 {
47  if (mOwner) {
48  return mOwner->push(aDictionary);
49  }
50  else {
51  return kTTErrGeneric;
52  }
53 }
54 
The TTGraphObjectBase wraps a TTDSP object such that it is possible to build a dynamic graph of audio...
Jamoma Asynchronous Object Graph Layer.
A type that represents the key as a C-String and the value as a pointer to the matching TTSymbol obje...
Definition: TTDictionary.h:47
Something went wrong, but what exactly is not known. Typically used for context-specific problems...
Definition: TTBase.h:344
TTErr
Jamoma Error Codes Enumeration of error codes that might be returned by any of the TTBlue functions a...
Definition: TTBase.h:342
Jamoma Asynchronous Object Graph Layer.
No Error.
Definition: TTBase.h:343
TT_OBJECT_CONSTRUCTOR
Constructor macro.