Reverting type resolution in C++ to Java types, e.g. byte and char instead of just...
[iot2.git] / iotjava / iotrmi / C++ / basics / TestClass_Stub.cpp
index 20defbb69d15a778fca95aa83efe4ae19c15e215..c4a692d38477c13732c986c14ca65b9cd9d2b697 100644 (file)
@@ -9,12 +9,22 @@ int main(int argc, char *argv[])
 
        int port = 5010;
        const char* address = "localhost";
+       //const char* address = "128.195.136.170";      // dc-9.calit2.uci.edu
        int rev = 0;
        bool bResult = false;
        vector<int> ports;
        ports.push_back(12345);
 
        TestClassComplete *tcStub = new TestClassComplete_Stub(port, address, rev, &bResult, ports);
+       cout << "Return value: " << tcStub->getByte(68) << endl;
+       cout << "Return value: " << tcStub->getShort(1234) << endl;
+       //cout << "Return value: " << tcStub->getLong(12345678) << endl;
+       cout << "Return value: " << tcStub->getFloat(12.345) << endl;
+       cout << "Return value: " << tcStub->getDouble(12345.678) << endl;
+       cout << "Return value: " << tcStub->getBoolean(true) << endl;
+       cout << "Return value: " << tcStub->getChar('c') << endl;
+
+       cout << "Return value: " << tcStub->getA() << endl;
        cout << "Return value: " << tcStub->setAndGetA(123) << endl;
        cout << "Return value: " << tcStub->setACAndGetA("string", 123) << endl;
        vector<string> input;