From ea8d3b6fa7ac59d064e86755fae8f25f7ed8a0d2 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Fri, 27 Dec 2013 12:45:46 +0000 Subject: making template connection logic --- NT/src/rotor.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'NT/src/rotor.cpp') 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 settings={{"p1","1"}, {"p2","2"}, {"p3","3"}}; - //a.init(settings); - printf("hello, world\n"); + Rotor::time t; + multiply m; + map 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 -- cgit v1.2.3