summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/objects/Client.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-10-22 15:54:56 +0000
committerMarc Laukien <marc@zeroc.com>2001-10-22 15:54:56 +0000
commitbbe924f6c28a0519e54fdadab0470cc8819d9c96 (patch)
treea8cfd140006c6287c0923eda2ab5f237cdf1d7b3 /cpp/test/Ice/objects/Client.cpp
parentfixed value demo (diff)
downloadice-bbe924f6c28a0519e54fdadab0470cc8819d9c96.tar.bz2
ice-bbe924f6c28a0519e54fdadab0470cc8819d9c96.tar.xz
ice-bbe924f6c28a0519e54fdadab0470cc8819d9c96.zip
started with objects test
Diffstat (limited to 'cpp/test/Ice/objects/Client.cpp')
-rw-r--r--cpp/test/Ice/objects/Client.cpp57
1 files changed, 57 insertions, 0 deletions
diff --git a/cpp/test/Ice/objects/Client.cpp b/cpp/test/Ice/objects/Client.cpp
new file mode 100644
index 00000000000..c61fa56625c
--- /dev/null
+++ b/cpp/test/Ice/objects/Client.cpp
@@ -0,0 +1,57 @@
+// **********************************************************************
+//
+// Copyright (c) 2001
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#include <Ice/Ice.h>
+#include <TestCommon.h>
+#include <Test.h>
+
+using namespace std;
+
+int
+run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
+{
+ InitialPrx allTests(const Ice::CommunicatorPtr&);
+ InitialPrx initial = allTests(communicator);
+ initial->shutdown();
+ return EXIT_SUCCESS;
+}
+
+int
+main(int argc, char* argv[])
+{
+ int status;
+ Ice::CommunicatorPtr communicator;
+
+ try
+ {
+ communicator = Ice::initialize(argc, argv);
+ status = run(argc, argv, communicator);
+ }
+ catch(const Ice::Exception& ex)
+ {
+ cerr << ex << endl;
+ status = EXIT_FAILURE;
+ }
+
+ if (communicator)
+ {
+ try
+ {
+ communicator->destroy();
+ }
+ catch(const Ice::Exception& ex)
+ {
+ cerr << ex << endl;
+ status = EXIT_FAILURE;
+ }
+ }
+
+ return status;
+}