Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / RTCORBA / RT_Invocation_Endpoint_Selectors.h
blob9be25588f291c350fc115319763047408d0ea0f1
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file RT_Invocation_Endpoint_Selectors.h
7 * Strategies for selecting profile/endpoint from an IOR for making an
8 * invocation.
10 * @author Priyanka Gontla <pgontla@ece.uci.edu>
12 //=============================================================================
15 #ifndef TAO_RT_INVOCATION_ENDPOINT_SELECTOR_H
16 #define TAO_RT_INVOCATION_ENDPOINT_SELECTOR_H
18 #include /**/ "ace/pre.h"
20 #include "tao/orbconf.h"
22 #if !defined (ACE_LACKS_PRAGMA_ONCE)
23 # pragma once
24 #endif /* ACE_LACKS_PRAGMA_ONCE */
27 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
29 #include "tao/RTCORBA/RTCORBA.h"
30 #include "tao/RTCORBA/rtcorba_export.h"
31 #include "tao/Invocation_Endpoint_Selectors.h"
33 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
35 /**
36 * @class TAO_RT_Invocation_Endpoint_Selector
38 * @brief TAO_RT_Invocation_Endpoint_Selector
40 * This strategy is used when the only policy that might be set is the
41 * private connection policy.
43 **/
44 class TAO_RTCORBA_Export TAO_RT_Invocation_Endpoint_Selector
45 : public TAO_Invocation_Endpoint_Selector
47 public:
48 virtual void select_endpoint (TAO::Profile_Transport_Resolver *r,
49 ACE_Time_Value *val);
51 protected:
52 void select_endpoint_based_on_client_protocol_policy (
53 TAO::Profile_Transport_Resolver &r,
54 RTCORBA::ClientProtocolPolicy_ptr client_protocol_policy,
55 RTCORBA::ProtocolList &protocols,
56 ACE_Time_Value *val);
58 int endpoint_from_profile (TAO::Profile_Transport_Resolver &r,
59 ACE_Time_Value *v);
62 TAO_END_VERSIONED_NAMESPACE_DECL
64 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
66 #include /**/ "ace/post.h"
68 #endif /* TAO_RT_INVOCATION_ENDPOINT_SELECTOR_H */