00001 // -*- C++ -*- 00002 //============================================================================= 00003 /** 00004 * @file Endpoint_Value_Impl.h 00005 * 00006 * $Id: Endpoint_Value_Impl.h 81982 2008-06-16 17:52:07Z sowayaa $ 00007 * 00008 * Implementation of the IIOP-Specific endpoint policy value 00009 * 00010 * @author Phil Mesnier <mesnier_p@ociweb.com> 00011 */ 00012 //============================================================================= 00013 00014 #ifndef _TAO_ENDPOINT_VALUE_IMPL_H_ 00015 #define _TAO_ENDPOINT_VALUE_IMPL_H_ 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "tao/Basic_Types.h" 00020 #include "tao/EndpointPolicy/EndpointPolicy_Export.h" 00021 00022 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00023 # pragma once 00024 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00025 00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00027 00028 class TAO_Endpoint; 00029 class TAO_Acceptor; 00030 00031 /** 00032 * @class Endpoint_Value_Impl 00033 * 00034 * @brief Abstract base class to be mixed in to servants of protocol 00035 * specific EndpointValues. 00036 * 00037 * This inteface defines the methods necessary for the 00038 * protocol-specific endpoint value to be used with the endpoint 00039 * policy 00040 */ 00041 00042 class TAO_EndpointPolicy_Export TAO_Endpoint_Value_Impl 00043 { 00044 public: 00045 virtual ~TAO_Endpoint_Value_Impl(void); 00046 00047 /// This method is used to compare a candidate IOR endpoint with the 00048 /// endpoint defined by this policy value. 00049 virtual CORBA::Boolean is_equivalent (const TAO_Endpoint * ) const = 0; 00050 00051 /// This method is used by the framework to validate that an 00052 /// acceptor is available to produce an endpoint required by at 00053 /// least one of the endpoint policies values. 00054 virtual CORBA::Boolean validate_acceptor (TAO_Acceptor *, 00055 bool is_multi_prot) const = 0; 00056 }; 00057 00058 TAO_END_VERSIONED_NAMESPACE_DECL 00059 00060 #include /**/ "ace/post.h" 00061 00062 #endif /* _TAO_Endpoint_Value_Impl_H_ */