Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / Exposed_Policies / Policy_Verifier.h
blobc035274d2ee3a307a80a8ce4ecf1a46de6430eec
1 //=============================================================================
2 /**
3 * @file Policy_Verifier.h
5 * This class verifies that the policy are correctly embedded
6 * in the IOR.
8 * @author Angelo Corsaro <corsaro@cs.wustl.edu>
9 */
10 //=============================================================================
13 #ifndef POLICY_VERIFIER_H_
14 #define POLICY_VERIFIER_H_
16 // -- App. Specific Include --
17 #include "CounterC.h"
18 #include "RT_Properties.h"
20 // -- ACE Include --
21 #include "ace/Arg_Shifter.h"
22 #include "ace/Log_Msg.h"
24 // -- TAO Include --
25 #include "tao/Basic_Types.h"
26 #include "tao/ORB_Constants.h"
28 class Policy_Verifier
30 public:
31 // -- Ctor/Dtor --
32 Policy_Verifier ();
33 ~Policy_Verifier ();
35 bool init (int argc, ACE_TCHAR *argv[]);
37 void run ();
39 private:
40 // -- Helper methods --
41 void verify_reference (Counter_ptr counter,
42 RT_Properties *rt_properties);
44 CORBA::Boolean check_reference (CORBA::Object_ptr object,
45 const char *msg);
47 private:
48 CORBA::ORB_var orb_;
50 RT_Properties *rt_object_properties_;
51 RT_Properties *rt_poa_properties_;
52 unsigned int priority_bands_;
53 Counter_var base_object_;
54 Counter_var overridden_object_;
56 ACE_TCHAR base_object_ref_[256];
57 ACE_TCHAR overridden_object_ref_[256];
60 #endif /* POLICY_VERIFIER_H_ */