Doing the same set of transformations for C++
[iot2.git] / iotjava / iotrmi / C++ / sample / CallBack_Stub.hpp
index 42f105994df70b847d1eccd289244f11d035f0d2..9bdcef4f04a89bdb50e7ae20ec9ddc0641ba46fd 100644 (file)
@@ -45,7 +45,7 @@ CallBack_Stub::CallBack_Stub() {
 CallBack_Stub::CallBack_Stub(int _port, const char* _address, int _rev, bool* _bResult) {
 
        address = _address;
-       rmiCall = new IoTRMICall(_port, _address, _rev, _bResult, methodSignatures, size);
+       rmiCall = new IoTRMICall(_port, _address, _rev, _bResult);
 }
 
 
@@ -61,13 +61,13 @@ CallBack_Stub::~CallBack_Stub() {
 int CallBack_Stub::printInt() {
 
        int numParam = 0;
-       string sign = "intprintInt()";
+       int methodId = 0;
        string retType = "int";
        string paramCls[] = { };
        void* paramObj[] = { };
        int retVal = 0;
        void* retObj = &retVal;
-       rmiCall->remoteCall(objectId, sign, retType, paramCls, paramObj, numParam, retObj);
+       rmiCall->remoteCall(objectId, methodId, retType, paramCls, paramObj, numParam, retObj);
        return retVal;
 }
 
@@ -75,12 +75,12 @@ int CallBack_Stub::printInt() {
 void CallBack_Stub::setInt(int _i) {
 
        int numParam = 1;
-       string sign = "voidsetInt(int)";
+       int methodId = 1;
        string retType = "void";
        string paramCls[] = { "int" };
        void* paramObj[] = { &_i };
        void* retObj = NULL;
-       rmiCall->remoteCall(objectId, sign, retType, paramCls, paramObj, numParam, retObj);
+       rmiCall->remoteCall(objectId, methodId, retType, paramCls, paramObj, numParam, retObj);
 }
 
 #endif