summaryrefslogtreecommitdiff
path: root/TAO/tests/Exposed_Policies/client.cpp
blob: 92ef57a48c3f61145f114d010a0f2a1289152903 (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
41
42
// $Id$

// -- App. Specific Include --
#include "CounterC.h"
// #include "util.h"

// -- App. Specific Include --
#include "Policy_Verifier.h"

#include "tao/Strategies/advanced_resource.h"

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

int
ACE_TMAIN(int argc, ACE_TCHAR *argv[])
{
  int status = 0;

  try
    {
      Policy_Verifier policy_verifier;

      bool retval = policy_verifier.init (argc, argv);

      if (retval)
        {
          policy_verifier.run ();
        }
      else
        {
          ++status;
        }
    }
  catch (const CORBA::Exception& ex)
    {
      ex._tao_print_exception ("CORBA Exception Raised");
      ++status;
    }


  return status;
}