Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Strategies / COIOP_Endpoint.h
blob61ac7a6ad987eeee4ef41e48c46b8d796fc10e65
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file COIOP_Endpoint.h
7 * COIOP implementation of PP Framework Endpoint interface.
9 * @author Johnny Willemsen <jwillemsen@remedy.nl>
11 //=============================================================================
14 #ifndef TAO_COIOP_ENDPOINT_H
15 #define TAO_COIOP_ENDPOINT_H
16 #include /**/ "ace/pre.h"
18 #include "tao/orbconf.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 # pragma once
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #if defined (TAO_HAS_COIOP) && (TAO_HAS_COIOP != 0)
26 #include "tao/Strategies/strategies_export.h"
27 #include "tao/Endpoint.h"
28 #include "ace/UUID.h"
30 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
32 class TAO_COIOP_Connection_Handler;
34 /**
35 * @class TAO_COIOP_Endpoint
37 * @brief TAO_COIOP_Endpoint
39 * COIOP-specific implementation of PP Framework Endpoint interface.
41 class TAO_Strategies_Export TAO_COIOP_Endpoint : public TAO_Endpoint
43 public:
44 friend class TAO_COIOP_Profile;
45 friend class TAO_SSLIOP_Profile;
47 /// Default constructor.
48 TAO_COIOP_Endpoint ();
50 /// Constructor. This is the most efficient constructor since it
51 /// does not require any address resolution processing.
52 TAO_COIOP_Endpoint (const ACE_Utils::UUID& uuid);
54 /// Destructor.
55 ~TAO_COIOP_Endpoint () = default;
57 /**
58 * @name TAO_Endpoint Methods
60 * Please check the documentation in Endpoint.h for details.
62 //@{
63 virtual TAO_Endpoint *next ();
64 virtual int addr_to_string (char *buffer, size_t length);
65 virtual TAO_Endpoint *duplicate ();
67 /// Return true if this endpoint is equivalent to @a other_endpoint. Two
68 /// endpoints are equivalent if their port and host are the same.
69 CORBA::Boolean is_equivalent (const TAO_Endpoint *other_endpoint);
71 /// Return a hash value for this object.
72 CORBA::ULong hash ();
73 //@}
75 // = COIOP_Endpoint-specific methods.
77 /// Return a pointer to the host string. This object maintains
78 /// ownership of this string.
79 const ACE_Utils::UUID& uuid () const;
81 private:
82 /// UUID uniquely identifying this COIOP endpoint
83 mutable ACE_Utils::UUID uuid_;
85 /// COIOP Endpoints can be strung into a list. Return the next
86 /// endpoint in the list, if any.
87 TAO_COIOP_Endpoint *next_;
90 TAO_END_VERSIONED_NAMESPACE_DECL
92 #if defined (__ACE_INLINE__)
93 # include "tao/Strategies/COIOP_Endpoint.inl"
94 #endif /* __ACE_INLINE__ */
96 #endif /* TAO_HAS_COIOP && TAO_HAS_COIOP != 0 */
98 #include /**/ "ace/post.h"
99 #endif /* TAO_COIOP_PROFILE_H */