summaryrefslogtreecommitdiff
path: root/TAO/tao/Tagged_Components.i
blob: da5b23331ba61fe0557a885d25c63c53ac89a817 (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
81
82
83
84
85
86
87
// $Id$

ACE_INLINE
TAO_Tagged_Components::TAO_Tagged_Components (void)
  :  orb_type_ (0),
     tao_priority_ (0),
     orb_type_set_ (0),
     code_sets_set_ (0),
     tao_priority_set_ (0)
{
}

ACE_INLINE int
TAO_Tagged_Components::get_orb_type (CORBA::ULong& orb_type) const
{
  if (this->orb_type_set_ == 1)
    orb_type = this->orb_type_;
  return this->orb_type_set_;
}

ACE_INLINE int
TAO_Tagged_Components::get_tao_priority (CORBA::Short& p) const
{
  if (this->tao_priority_set_ == 1)
    {
      p = this->tao_priority_;
    }
  return this->tao_priority_set_;
}

ACE_INLINE int
TAO_Tagged_Components::get_code_sets (const CONV_FRAME::CodeSetComponentInfo* &ci) const
{
  if (this->code_sets_set_ == 1)
    ci = &this->code_sets_;
  return this->code_sets_set_;
}

ACE_INLINE int
TAO_Tagged_Components::get_code_sets (CONV_FRAME::CodeSetComponentInfo &ci) const
{
  if (this->code_sets_set_ == 1)
    ci = this->code_sets_;
  return this->code_sets_set_;
}

ACE_INLINE int
TAO_Tagged_Components::known_tag (IOP::ComponentId tag) const
{
  return (tag == IOP::TAG_ORB_TYPE
          || tag == IOP::TAG_CODE_SETS
          || tag == TAO_TAG_PRIORITY);
}

ACE_INLINE int
TAO_Tagged_Components::unique_tag (IOP::ComponentId tag) const
{
  return (tag == IOP::TAG_ORB_TYPE
          || tag == IOP::TAG_CODE_SETS
          || tag == TAO_TAG_PRIORITY
          || tag == IOP::TAG_POLICIES
          // || tag == IOP::TAG_ALTERNATE_IIOP_ADDRESS
          || tag == IOP::TAG_ASSOCIATION_OPTIONS
          || tag == IOP::TAG_SEC_NAME
          || tag == IOP::TAG_SPKM_1_SEC_MECH
          || tag == IOP::TAG_SPKM_2_SEC_MECH
          || tag == IOP::TAG_KerberosV5_SEC_MECH
          || tag == IOP::TAG_CSI_ECMA_Secret_SEC_MECH
          || tag == IOP::TAG_CSI_ECMA_Hybrid_SEC_MECH
          || tag == IOP::TAG_SSL_SEC_TRANS
          || tag == IOP::TAG_CSI_ECMA_Public_SEC_MECH
          || tag == IOP::TAG_GENERIC_SEC_MECH

          || tag == IOP::TAG_COMPLETE_OBJECT_KEY
          || tag == IOP::TAG_ENDPOINT_ID_POSITION
          || tag == IOP::TAG_LOCATION_POLICY
          || tag == IOP::TAG_DCE_STRING_BINDING
          || tag == IOP::TAG_DCE_BINDING_NAME
          || tag == IOP::TAG_DCE_NO_PIPES
          || tag == IOP::TAG_DCE_SEC_MECH);
}

ACE_INLINE IOP::MultipleComponentProfile&
TAO_Tagged_Components::components (void)
{
  return this->components_;
}