2 // ===================================================================
4 * @file Base_Transport_Property.h
6 * @author Bala Natarajan <bala@cs.wustl.edu>
8 // ===================================================================
10 #ifndef TAO_BASE_CONNECTION_PROPERTY_H
11 #define TAO_BASE_CONNECTION_PROPERTY_H
13 #include /**/ "ace/pre.h"
15 #include "tao/Transport_Descriptor_Interface.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "tao/Endpoint.h"
23 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
26 * @class TAO_Base_Transport_Property
28 * @brief A concrete implementation for connnection property
30 * This class is a concrete implementation of a simple connection
31 * property class. This provides an implementation for the virtual
32 * functions declared in TAO_Transport_Descriptor_Interface.
34 class TAO_Export TAO_Base_Transport_Property
35 : public TAO_Transport_Descriptor_Interface
38 /// Default constructor
39 TAO_Base_Transport_Property () = default;
42 TAO_Base_Transport_Property (TAO_Endpoint
*endpoint
,
43 CORBA::Boolean flag
= false);
46 virtual ~TAO_Base_Transport_Property () = default;
48 /// The copy constructor.
49 TAO_Base_Transport_Property (const TAO_Base_Transport_Property
&rhs
);
51 /// This call allocates and copies the contents of this class and
52 /// returns the pointer
53 virtual TAO_Transport_Descriptor_Interface
*duplicate ();
55 /// Try to determine if this object is same as the @a other_prop.
56 virtual CORBA::Boolean
is_equivalent (
57 const TAO_Transport_Descriptor_Interface
*other_prop
);
59 /// Generate hash value for our class
60 virtual u_long
hash () const;
63 TAO_END_VERSIONED_NAMESPACE_DECL
65 #if defined (__ACE_INLINE__)
66 # include "tao/Base_Transport_Property.inl"
67 #endif /* __ACE_INLINE__ */
69 #include /**/ "ace/post.h"
70 #endif /*TAO_BASE_CONNECTION_PROPERTY_H*/