diff options
Diffstat (limited to 'TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp new file mode 100644 index 00000000000..3e16668c65b --- /dev/null +++ b/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp @@ -0,0 +1,45 @@ +// -*- C++ -*- +// $Id$ + +#include "ifr_dii_client.h" + +ACE_RCSID (Application_Test, + client, + "$Id$") + +int +main (int argc, char *argv[]) +{ + IFR_DII_Client client; + + ACE_DECLARE_NEW_CORBA_ENV; + ACE_TRY + { + if (client.init (argc, + argv + ACE_ENV_ARG_PARAMETER) + == -1) + { + return 1; + } + else + { + int status = client.run (ACE_ENV_SINGLE_ARG_PARAMETER); + ACE_TRY_CHECK; + + if (status == -1) + { + return 1; + } + } + } + ACE_CATCHANY + { + ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, + "Client Exception"); + return -1; + } + ACE_ENDTRY; + + return 0; +} |