summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/nrvo/Client.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-03-10 09:06:11 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-03-10 09:06:11 -0230
commit213ced126a3ff84d54341dea37bf0d9b5d72912a (patch)
treecbdc8b9b050a3f772fea0a965f8347daa90b3b51 /cpp/demo/Ice/nrvo/Client.cpp
parentChanges for bug 3795 (diff)
parentBug 3783 - 3.3.1 release notes. (diff)
downloadice-213ced126a3ff84d54341dea37bf0d9b5d72912a.tar.bz2
ice-213ced126a3ff84d54341dea37bf0d9b5d72912a.tar.xz
ice-213ced126a3ff84d54341dea37bf0d9b5d72912a.zip
Fixed conflicts from unpushed changes
Diffstat (limited to 'cpp/demo/Ice/nrvo/Client.cpp')
-rw-r--r--cpp/demo/Ice/nrvo/Client.cpp102
1 files changed, 54 insertions, 48 deletions
diff --git a/cpp/demo/Ice/nrvo/Client.cpp b/cpp/demo/Ice/nrvo/Client.cpp
index 155caa16eac..2ff70a697a3 100644
--- a/cpp/demo/Ice/nrvo/Client.cpp
+++ b/cpp/demo/Ice/nrvo/Client.cpp
@@ -69,54 +69,59 @@ NrvoClient::run(int argc, char* argv[])
cout << "==> ";
cin >> c;
- if(c == '1' || c == '2' || c == '3' || c == 's' || c == '?' || c == 'x')
- {
- switch(c)
- {
- case '1':
- {
- cout << "calling op1" << endl;
- MyStringSeq seq = nrvo->op1();
- break;
- }
-
- case '2':
- {
- cout << "calling op2" << endl;
- MyStringSeq seq = nrvo->op2();
- break;
- }
-
- case '3':
- {
- cout << "calling op3" << endl;
- MyStringSeq seq = nrvo->op3(10);
- break;
- }
-
- case 's':
- {
- nrvo->shutdown();
- break;
- }
-
- case '?':
- {
- menu();
- break;
- }
-
- case 'x':
- {
- break;
- }
- }
- }
- else
- {
- cout << "unknown command `" << c << "'" << endl;
- menu();
- }
+ switch(c)
+ {
+ case '1':
+ {
+ cout << "calling op1" << endl;
+ MyStringSeq seq = nrvo->op1();
+ break;
+ }
+
+ case '2':
+ {
+ cout << "calling op2" << endl;
+ MyStringSeq seq = nrvo->op2();
+ break;
+ }
+
+ case '3':
+ {
+ cout << "calling op3(10)" << endl;
+ MyStringSeq seq = nrvo->op3(10);
+ break;
+ }
+
+ case '4':
+ {
+ cout << "calling op3(0)" << endl;
+ MyStringSeq seq = nrvo->op3(0);
+ break;
+ }
+
+ case 's':
+ {
+ nrvo->shutdown();
+ break;
+ }
+
+ case '?':
+ {
+ menu();
+ break;
+ }
+
+ case 'x':
+ {
+ break;
+ }
+ default:
+ {
+ cout << "unknown command `" << c << "'" << endl;
+ menu();
+ break;
+ }
+ }
}
catch(const Ice::Exception& ex)
{
@@ -138,6 +143,7 @@ NrvoClient::menu()
"1: return a string sequence\n"
"2: return a string sequence that is a data member of the servant\n"
"3: return a string sequence from an operation with multiple return paths\n"
+ "4: return a string sequence from an operation with multiple return paths, using RVO\n"
"s: shutdown server\n"
"x: exit\n"
"?: show this menu\n";