Removing printing statements from C++ RMI library - this will cause SO files to get...
[iot2.git] / iotjava / iotrmi / C++ / sample / TestClass_Skeleton.hpp
index 9ea8bab47648fa0dd3667c3a7b3e415f2c51be18..96b37b45276782a977dd4db14e742f6104253a7c 100644 (file)
@@ -52,7 +52,7 @@ class TestClass_Skeleton : public TestClassInterface {
                TestClassInterface                      *tc;
                IoTRMIObject                            *rmiObj;
                // Permission setup
-               const static int                        object0Id;
+               const static int                        object0Id = 0;
                //const static int                      object0Permission[];
                const static set<int>           set0Allowed;
                
@@ -64,7 +64,7 @@ class TestClass_Skeleton : public TestClassInterface {
 
 
 // Permission setup
-const int TestClass_Skeleton::object0Id = 0;
+//const int TestClass_Skeleton::object0Id = 0;
 //const int TestClass_Skeleton::object0Permission[] = {0, 1, 2, 3, 4, 5};
 const set<int> TestClass_Skeleton::set0Allowed {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12};
 
@@ -368,7 +368,7 @@ int TestClass_Skeleton::___enumSize() {
 }
 
 
-void TestClass_Skeleton::___handleEnum(int enumsize1) {
+void TestClass_Skeleton::___handleEnum() {
 
        int numParam = 1;
        string paramCls[] = { "int[]" };
@@ -400,7 +400,7 @@ void TestClass_Skeleton::___handleEnum(int enumsize1) {
 void TestClass_Skeleton::___waitRequestInvokeMethod() {
 
        int structsize1 = 0;
-       int enumsize1 = 0;
+
        // Loop continuously waiting for incoming bytes
        while (true) {
 
@@ -439,7 +439,7 @@ void TestClass_Skeleton::___waitRequestInvokeMethod() {
                        // Handle struct
                        case 10: ___handleStruct(structsize1); break;
                        case 11: structsize1 = ___structSize(); break;
-                       case 12: ___handleEnum(enumsize1); break;
+                       case 12: ___handleEnum(); break;
                        default:
                                string error = "Method Id not recognized!";
                                throw error;