Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / RTCORBA / RT_Transport_Descriptor.h
blobceab8cd7c8afd53ef38076ef365f66209b0a7edd
1 // -*- C++ -*-
3 /**
4 * @file RT_Transport_Descriptor.h
6 * @author Pradeep Gore <pradeep@oomworks.com>
7 */
9 #ifndef TAO_RT_TRANSPORT_DESCRIPTOR_H
10 #define TAO_RT_TRANSPORT_DESCRIPTOR_H
12 #include /**/ "ace/pre.h"
14 #include "tao/RTCORBA/rtcorba_export.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
17 # pragma once
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 #include "tao/RTCORBA/RT_Transport_Descriptor_Property.h"
22 #include "tao/Transport_Descriptor_Interface.h"
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
26 /**
27 * @class TAO_RT_Transport_Descriptor
29 * @brief Transport Descriptor for RTCORBA.
31 * The TAO_RT_Transport_Descriptor contains Descriptor Properties.
32 * It uses the "Chain of Command" pattern in the implementation of the <_is_equivalent> method.
34 class TAO_RTCORBA_Export TAO_RT_Transport_Descriptor
35 : public TAO_Transport_Descriptor_Interface
37 public:
38 /// Constructor
39 TAO_RT_Transport_Descriptor (TAO_Endpoint *endpoint,
40 CORBA::Boolean flag = false);
42 /// Destructor
43 ~TAO_RT_Transport_Descriptor ();
45 /// Insert Properties.
46 void insert (TAO_RT_Transport_Descriptor_Property *descriptor_property);
48 /// = TAO_Transport_Descriptor_Interface methods
50 /// This call allocates and copies the contents of this class and
51 /// returns the pointer
52 virtual TAO_Transport_Descriptor_Interface *duplicate ();
54 /// Try to determine if this object is same as the <other_prop>.
55 virtual CORBA::Boolean is_equivalent (
56 const TAO_Transport_Descriptor_Interface *other_prop);
58 /// Generate hash value for our class
59 virtual u_long hash () const;
61 private:
62 /// Stack of properties.
63 TAO_RT_Transport_Descriptor_Property *property_list_;
65 /// Flag to delete properties.
66 int delete_properties_;
69 TAO_END_VERSIONED_NAMESPACE_DECL
71 #if defined (__ACE_INLINE__)
72 #include "tao/RTCORBA/RT_Transport_Descriptor.inl"
73 #endif /* __ACE_INLINE__ */
75 #include /**/ "ace/post.h"
77 #endif /* TAO_RT_TRANSPORT_DESCRIPTOR_H */