Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / EndpointPolicy / EndpointPolicy.h
blob54d628e224326b73740780a95aa22d25b3931bcc
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file EndpointPolicy.h
7 * @author Yan Dai <dai_y@ociweb.com>
8 */
9 //=============================================================================
12 #ifndef TAO_ENDPOINTPOLICY_H
13 #define TAO_ENDPOINTPOLICY_H
15 #include /**/ "ace/pre.h"
17 #include "tao/EndpointPolicy/EndpointPolicy_Export.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 # pragma once
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "tao/PI/PI.h"
24 #include "tao/Versioned_Namespace.h"
26 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
28 class TAO_EndpointPolicy_Export TAO_EndpointPolicy_Initializer
29 : public ACE_Service_Object
31 public:
32 /// Used to force the initialization of the ORB code.
33 static int static_init ();
35 /// Initialize the Endpoint Policy loader hooks.
36 virtual int init (int argc, ACE_TCHAR* []);
39 static int
40 TAO_Requires_EndpointPolicy_Initializer = TAO_EndpointPolicy_Initializer::static_init ();
43 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_EndpointPolicy, TAO_EndpointPolicy_Initializer)
44 ACE_FACTORY_DECLARE (TAO_EndpointPolicy, TAO_EndpointPolicy_Initializer)
46 TAO_END_VERSIONED_NAMESPACE_DECL
47 #include /**/ "ace/post.h"
49 #define TAO_ENDPOINTPOLICY_SAFE_INCLUDE
50 #include "tao/EndpointPolicy/EndpointPolicyC.h"
51 #include "tao/EndpointPolicy/EndpointPolicyA.h"
52 #include "tao/IOPC.h"
53 #include "tao/AnyTypeCode/Any.h"
54 #undef TAO_ENDPOINTPOLICY_SAFE_INCLUDE
56 #endif /* TAO_ENDPOINTPOLICY_H */