diff options
Diffstat (limited to 'trunk/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp')
-rw-r--r-- | trunk/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/trunk/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp b/trunk/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp new file mode 100644 index 00000000000..410ad1fd4f3 --- /dev/null +++ b/trunk/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp @@ -0,0 +1,44 @@ +// -*- C++ -*- +// $Id$ + +#include "idl3_client.h" + +ACE_RCSID (Application_Test, + client, + "$Id$") + +int +main (int argc, char *argv[]) +{ + IDL3_Client client; + + ACE_TRY_NEW_ENV + { + 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; +} |