summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/InterfaceRepo/Application_Test/client.cpp
blob: a38d0d88fb852ddb775677aac0f13129fcb2c39f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// -*- 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_TRY_ENV) 
           == -1)
        {
          return 1;
        }
      else
        {
          client.run (ACE_TRY_ENV);
          ACE_TRY_CHECK;
        }
    }
  ACE_CATCHANY
    {
      ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, 
                           "Client Exception");
      return -1;
    }
  ACE_ENDTRY;

  return 0;
}