00001 // This may look like C, but it's really -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file OC_Endpoint_Selector_Loader.h 00006 * 00007 * $Id: OC_Endpoint_Selector_Loader.h 72369 2006-04-26 19:08:02Z mesnier_p $ 00008 * 00009 * Strategies for selecting profile/endpoint from an IOR for making an 00010 * invocation. 00011 * 00012 * @author Phil Mesnier <mesnier_p@ociweb.com> 00013 */ 00014 //============================================================================= 00015 00016 00017 #ifndef TAO_OC_ENDPOINT_LOADER_H 00018 #define TAO_OC_ENDPOINT_LOADER_H 00019 #include /**/ "ace/pre.h" 00020 00021 #include "tao/Strategies/strategies_export.h" 00022 #include "tao/Strategies/OC_Endpoint_Selector_Factory.h" 00023 00024 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00025 # pragma once 00026 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00027 00028 00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 // Forward references 00032 class TAO_Optimized_Connection_Endpoint_Selector; 00033 00034 // **************************************************************** 00035 00036 /** 00037 * @class TAO_OC_Endpoint_Selector_Loader 00038 * 00039 * @brief Static initializer used to ensure the Optimized Connector 00040 * Endpoint Selector is available for use in static applications 00041 * 00042 * This class is not needed when using dynamic linking and the service 00043 * configuratior. Statically linked applications need to include this 00044 * header to ensure that all the necessary dependencies are met. In 00045 * addition, the svc config directive is required for setting any 00046 * initialization parameters for the endpoint selector. 00047 * 00048 */ 00049 class TAO_Strategies_Export TAO_OC_Endpoint_Selector_Loader 00050 { 00051 public: 00052 static int init(void); 00053 }; 00054 00055 static int 00056 TAO_Requires_OC_Endpoint_Selector_Loader = 00057 TAO_OC_Endpoint_Selector_Loader::init (); 00058 00059 00060 TAO_END_VERSIONED_NAMESPACE_DECL 00061 00062 #include /**/ "ace/post.h" 00063 #endif /* TAO_OC_ENDPOINT_LOADER_H */