Adding example for a CPP that calls class skeleton
authorrtrimana <rtrimana@uci.edu>
Sat, 10 Dec 2016 00:03:52 +0000 (16:03 -0800)
committerrtrimana <rtrimana@uci.edu>
Sat, 10 Dec 2016 00:03:52 +0000 (16:03 -0800)
iotjava/iotrmi/C++/basics/TestClassInterface_Skeleton.cpp [new file with mode: 0644]

diff --git a/iotjava/iotrmi/C++/basics/TestClassInterface_Skeleton.cpp b/iotjava/iotrmi/C++/basics/TestClassInterface_Skeleton.cpp
new file mode 100644 (file)
index 0000000..ef814d4
--- /dev/null
@@ -0,0 +1,27 @@
+#include <iostream>
+#include <string>
+#include "TestClassInterface_Skeleton.hpp"
+#include "TestClass.hpp"
+
+using namespace std;
+
+int main(int argc, char *argv[])
+{
+       // First argument is port number
+       int port = atoi(argv[1]);
+       int argv2 = atoi(argv[2]);
+       float argv3 = atof(argv[3]);
+       string argv4 = string(argv[4]);
+
+       cout << port << endl;
+       cout << argv2 << endl;
+       cout << argv3 << endl;
+       cout << argv4 << endl;
+
+       //TestClassInterface *tc = new TestClass(argv1, argv2, argv3);
+       //TestClassInterface_Skeleton *tcSkel = new TestClassInterface_Skeleton(tc, port);
+
+       //delete tc;
+       //delete tcSkel;
+       return 0;
+}