Completing stub and skeleton sides' APIs; Adding tests for C++ side; Still need to...
[iot2.git] / iotjava / iotrmi / C++ / sample / TestClass.cpp
1 #include <iostream>
2 #include <string>
3 #include "TestClass.hpp"
4
5 using namespace std;
6
7 int main(int argc, char *argv[])
8 {
9
10         TestClassInterface *tc = new TestClass();
11         cout << "Return value: " << tc->setAndGetA(123) << endl;
12         cout << "Return value: " << tc->setACAndGetA("string", 123) << endl;
13         vector<string> input;
14         input.push_back("123");
15         input.push_back("456");
16         input.push_back("987");
17
18         cout << "Return value: " << tc->sumArray(input) << endl;
19
20         delete tc;
21
22         return 0;
23 }