summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/Log/Basic/main.cpp
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:21 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:21 +0000
commit3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (patch)
tree197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/orbsvcs/examples/Log/Basic/main.cpp
parent6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (diff)
downloadATCD-3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c.tar.gz
Repo restructuring
Diffstat (limited to 'TAO/orbsvcs/examples/Log/Basic/main.cpp')
-rw-r--r--TAO/orbsvcs/examples/Log/Basic/main.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/TAO/orbsvcs/examples/Log/Basic/main.cpp b/TAO/orbsvcs/examples/Log/Basic/main.cpp
new file mode 100644
index 00000000000..3b5098b43ad
--- /dev/null
+++ b/TAO/orbsvcs/examples/Log/Basic/main.cpp
@@ -0,0 +1,39 @@
+#include "TLS_Client.h"
+#include "ace/OS_main.h"
+
+ACE_RCSID (Basic,
+ main,
+ "$Id$")
+
+
+int
+ACE_TMAIN (int argc, ACE_TCHAR *argv[])
+{
+ TLS_Client client; // Telecom Log Service Client
+
+ ACE_TRY_NEW_ENV
+ {
+ client.init (argc, argv
+ ACE_ENV_ARG_PARAMETER); //Init the Client
+ ACE_TRY_CHECK;
+
+ client.run_tests (ACE_ENV_SINGLE_ARG_PARAMETER); //Init the Client
+
+ ACE_TRY_CHECK;
+ }
+ ACE_CATCH (CORBA::UserException, ue)
+ {
+ ACE_PRINT_EXCEPTION (ue,
+ "TLS_Client user error: ");
+ return 1;
+ }
+ ACE_CATCH (CORBA::SystemException, se)
+ {
+ ACE_PRINT_EXCEPTION (se,
+ "TLS_Client system error: ");
+ return 1;
+ }
+ ACE_ENDTRY;
+
+ return 0;
+}