00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file EndpointPolicy.h 00006 * 00007 * $Id: EndpointPolicy.h 84281 2009-01-30 15:01:17Z wotte $ 00008 * 00009 * @author Yan Dai <dai_y@ociweb.com> 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef TAO_ENDPOINTPOLICY_H 00015 #define TAO_ENDPOINTPOLICY_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "tao/EndpointPolicy/EndpointPolicy_Export.h" 00020 00021 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00022 # pragma once 00023 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00024 00025 #include "tao/PI/PI.h" 00026 #include "tao/Versioned_Namespace.h" 00027 00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00029 00030 class TAO_EndpointPolicy_Export TAO_EndpointPolicy_Initializer 00031 : public ACE_Service_Object 00032 { 00033 public: 00034 /// Used to force the initialization of the ORB code. 00035 static int static_init (void); 00036 00037 /// Initialize the Endpoint Policy loader hooks. 00038 virtual int init (int argc, ACE_TCHAR* []); 00039 }; 00040 00041 static int 00042 TAO_Requires_EndpointPolicy_Initializer = TAO_EndpointPolicy_Initializer::static_init (); 00043 00044 00045 00046 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_EndpointPolicy, TAO_EndpointPolicy_Initializer) 00047 ACE_FACTORY_DECLARE (TAO_EndpointPolicy, TAO_EndpointPolicy_Initializer) 00048 00049 TAO_END_VERSIONED_NAMESPACE_DECL 00050 #include /**/ "ace/post.h" 00051 00052 #define TAO_ENDPOINTPOLICY_SAFE_INCLUDE 00053 #include "tao/EndpointPolicy/EndpointPolicyC.h" 00054 #include "tao/EndpointPolicy/EndpointPolicyA.h" 00055 #include "tao/IOPC.h" 00056 #include "tao/AnyTypeCode/Any.h" 00057 #undef TAO_ENDPOINTPOLICY_SAFE_INCLUDE 00058 00059 #endif /* TAO_ENDPOINTPOLICY_H */