Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / Exposed_Policies / Policy_Tester.h
blob8e34e786ca04ce28ac215356cd9d67ccd122de39
1 //=============================================================================
2 /**
3 * @file Policy_Tester.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_TESTER_H_
14 #define POLICY_TESTER_H_
16 // -- App. Specific Include --
17 #include "RT_Properties.h"
19 // -- TAO Include --
20 #include "tao/ORB.h"
21 #include "tao/PortableServer/PortableServer.h"
22 #include "tao/RTPortableServer/RTPortableServer.h"
24 class Policy_Tester
26 public:
27 // Ctor/Dtor.
28 Policy_Tester () = default;
29 ~Policy_Tester () = default;
31 /// Runs the test.
32 void run ();
34 int init (int argc,
35 ACE_TCHAR *argv[]);
37 void shutdown ();
38 private:
39 // Helper method used internally.
40 int create_objects ();
42 CORBA::Boolean check_reference (CORBA::Object_ptr object,
43 const char *msg);
45 private:
46 RTCORBA::RTORB_var rt_orb_;
47 CORBA::ORB_var orb_;
48 PortableServer::POA_var poa_;
49 RTPortableServer::POA_var child_poa_;
50 RT_Properties *rt_object_properties_ {};
51 RT_Properties *rt_poa_properties_ {};
55 #endif /* POLICY_TESTER_H_ */