diff options
Diffstat (limited to 'TAO/orbsvcs/examples/Log/Basic/main.cpp')
-rw-r--r-- | TAO/orbsvcs/examples/Log/Basic/main.cpp | 33 |
1 files changed, 33 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..e3fb93ff58c --- /dev/null +++ b/TAO/orbsvcs/examples/Log/Basic/main.cpp @@ -0,0 +1,33 @@ +#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 + + try + { + client.init (argc, argv); //Init the Client + + client.run_tests (); //Init the Client + + } + catch (const CORBA::UserException& ue) + { + ue._tao_print_exception ("TLS_Client user error: "); + return 1; + } + catch (const CORBA::SystemException& se) + { + se._tao_print_exception ("TLS_Client system error: "); + return 1; + } + + return 0; +} |