blob: bbf8f97ee28a21f05154f4be88fdbf0ede812f10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
// -*- C++ -*-
/**
* @file RT_Transport_Descriptor.h
*
* $Id$
*
* @author Pradeep Gore <pradeep@oomworks.com>
*/
#ifndef TAO_RT_TRANSPORT_DESCRIPTOR_H
#define TAO_RT_TRANSPORT_DESCRIPTOR_H
#include /**/ "ace/pre.h"
#include "tao/RTCORBA/rtcorba_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/RTCORBA/RT_Transport_Descriptor_Property.h"
#include "tao/Transport_Descriptor_Interface.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class TAO_RT_Transport_Descriptor
*
* @brief Transport Descriptor for RTCORBA.
*
* The TAO_RT_Transport_Descriptor contains Descriptor Properties.
* It uses the "Chain of Command" pattern in the implementation of the <_is_equivalent> method.
*
*/
class TAO_RTCORBA_Export TAO_RT_Transport_Descriptor
: public TAO_Transport_Descriptor_Interface
{
public:
/// Constuctor
TAO_RT_Transport_Descriptor (TAO_Endpoint *endpoint,
CORBA::Boolean flag = 0);
/// Destructor
~TAO_RT_Transport_Descriptor ();
/// Insert Properties.
void insert (TAO_RT_Transport_Descriptor_Property *descriptor_property);
/// = TAO_Transport_Descriptor_Interface methods
/// This call allocates and copies the contents of this class and
/// returns the pointer
virtual TAO_Transport_Descriptor_Interface *duplicate (void);
/// Try to determine if this object is same as the <other_prop>.
virtual CORBA::Boolean is_equivalent (
const TAO_Transport_Descriptor_Interface *other_prop);
/// Generate hash value for our class
virtual u_long hash (void) const;
private:
/// Stack of properties.
TAO_RT_Transport_Descriptor_Property *property_list_;
/// Flag to delete properties.
int delete_properties_;
};
TAO_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
#include "tao/RTCORBA/RT_Transport_Descriptor.inl"
#endif /* __ACE_INLINE__ */
#include /**/ "ace/post.h"
#endif /* TAO_RT_TRANSPORT_DESCRIPTOR_H */
|