diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-27 12:45:46 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-27 12:45:46 +0000 |
| commit | ea8d3b6fa7ac59d064e86755fae8f25f7ed8a0d2 (patch) | |
| tree | 726a099a532d1098a5a102083a301f98f74b9962 /NT/src/rotor.cpp | |
| parent | fba8f7cbf38bfa6ecd7bab7cdd5e6d08d53840c6 (diff) | |
making template connection logic
Diffstat (limited to 'NT/src/rotor.cpp')
| -rw-r--r-- | NT/src/rotor.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/NT/src/rotor.cpp b/NT/src/rotor.cpp index 0c09b39..9a0bc5d 100644 --- a/NT/src/rotor.cpp +++ b/NT/src/rotor.cpp @@ -6,8 +6,10 @@ using namespace std; using namespace Rotor; int main(){ - //a_node a; - //map<string,string> settings={{"p1","1"}, {"p2","2"}, {"p3","3"}}; - //a.init(settings); - printf("hello, world\n"); + Rotor::time t; + multiply m; + map<string,string> settings={{"value","2"}}; + m.init(settings); + if (m.connect("inlet",&t)) printf("connected!\n"); + else printf("not connected...\n"); }
\ No newline at end of file |
