Jamoma API  0.6.0.a19
Foundation/library/test.cpp
1 //
2 // main.cpp
3 // JamomaTest
4 //
5 // Created by Timothy Place on 7/3/13.
6 //
7 //
8 
9 #include <iostream>
10 #include "TTFoundationAPI.h"
11 
12 int main(int argc, const char * argv[])
13 {
14  TTFoundationInit();
15 
16  TTValue classNames;
17 
19 
20  for (int i=0; i<classNames.size(); i++) {
21  TTSymbol name = classNames[i];
22  std::cerr << name.c_str() << std::endl;
23  TTObject obj(name);
24 
25  obj.send("test");
26  }
27 
28  // insert code here...
29  std::cout << "Hello, World!\n";
30  return 0;
31 }
32 
static TTErr GetRegisteredClassNames(TTValue &classNames)
Query TTEnvironment for names of all registered TTObjectBase classes.
Definition: TTObject.cpp:71
Create and use Jamoma object instances.
Definition: TTObject.h:29
size_type size() const noexcept
Return the number of elements.
The TTSymbol class is used to represent a string and efficiently pass and compare that string...
Definition: TTSymbol.h:26
const char * c_str() const
Return a pointer to the internal string as a C-string.
Definition: TTSymbol.h:77
[doxygenAppendixC_copyExample]
Definition: TTValue.h:34