Adding permission check and error throw in C++
[iot2.git] / iotjava / iotrmi / C++ / sample / TestClass_Stub.cpp
index 8f28f236fdcd3e9b1c3c5cbdc4cf013c5e8545e2..a4127d8ebdb5d9ac126923173d6d77acbf572b06 100644 (file)
@@ -5,6 +5,8 @@
 
 using namespace std;
 
+static exception_ptr teptr = nullptr;
+
 int main(int argc, char *argv[])
 {
 
@@ -30,7 +32,7 @@ int main(int argc, char *argv[])
 
        cout << "Return value: " << tcStub->sumArray(input) << endl;
        
-       /*CallBackInterface *cb1 = new CallBack(23);
+       CallBackInterface *cb1 = new CallBack(23);
        CallBackInterface *cb2 = new CallBack(33);
        CallBackInterface *cb3 = new CallBack(43);
        vector<CallBackInterface*> cb;
@@ -47,7 +49,7 @@ int main(int argc, char *argv[])
        cbsec.push_back(cb6);
        tcStub->registerCallback(cbsec);
        cout << "Return value from callback: " << tcStub->callBack() << endl;
-*/
+
        vector<data> dataset;
 
        data testdata;