Adding new policy, Java, and Cpp files for testing/debugging
[iot2.git] / iotjava / iotrmi / C++ / basics / TestClass_Stub.cpp
1 #include <iostream>
2 #include <string>
3 #include "TestClassComplete_Stub.hpp"
4
5 using namespace std;
6
7 int main(int argc, char *argv[])
8 {
9
10         int port = 5010;
11         const char* address = "localhost";
12         int rev = 0;
13         bool bResult = false;
14         vector<int> ports;
15         ports.push_back(12345);
16
17         TestClassComplete *tcStub = new TestClassComplete_Stub(port, address, rev, &bResult, ports);
18         cout << "Return value: " << tcStub->setAndGetA(123) << endl;
19         cout << "Return value: " << tcStub->setACAndGetA("string", 123) << endl;
20         vector<string> input;
21         input.push_back("123");
22         input.push_back("456");
23         input.push_back("987");
24
25         cout << "Return value: " << tcStub->sumArray(input) << endl;
26         
27         return 0;
28 }