From: rtrimana <rtrimana@uci.edu>
Date: Sat, 10 Dec 2016 00:03:52 +0000 (-0800)
Subject: Adding example for a CPP that calls class skeleton
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2b21e53cb37d36f25039a4e5009ff90335cdc06c;p=iot2.git

Adding example for a CPP that calls class skeleton
---

diff --git a/iotjava/iotrmi/C++/basics/TestClassInterface_Skeleton.cpp b/iotjava/iotrmi/C++/basics/TestClassInterface_Skeleton.cpp
new file mode 100644
index 0000000..ef814d4
--- /dev/null
+++ b/iotjava/iotrmi/C++/basics/TestClassInterface_Skeleton.cpp
@@ -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;
+}