summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/InterfaceRepo/IDL3_Test/client.cpp
blob: 3397a80f770afdbe9fde6a22980b1addccf6fc8a (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
40
// -*- C++ -*-
// $Id$

#include "idl3_client.h"

ACE_RCSID (Application_Test,
           client,
           "$Id$")

int
main (int argc, char *argv[])
{
  IDL3_Client client;

  try
    {
      if (client.init (argc,
                       argv)
           == -1)
        {
          return 1;
        }
      else
        {
          int status = client.run ();

          if (status == -1)
            {
              return 1;
            }
        }
    }
  catch (const CORBA::Exception& ex)
    {
      ex._tao_print_exception ("Client Exception");
      return -1;
    }

  return 0;
}