From 2b21e53cb37d36f25039a4e5009ff90335cdc06c Mon Sep 17 00:00:00 2001 From: rtrimana Date: Fri, 9 Dec 2016 16:03:52 -0800 Subject: [PATCH] Adding example for a CPP that calls class skeleton --- .../basics/TestClassInterface_Skeleton.cpp | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 iotjava/iotrmi/C++/basics/TestClassInterface_Skeleton.cpp 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 +#include +#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; +} -- 2.34.1