1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <stdio.h> #include "rotor.h" using namespace std; using namespace Rotor; int main(){ 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"); }