00001 // -*- C++ -*- 00002 // 00003 // $Id: Tagged_Components.inl 73791 2006-07-27 20:54:56Z wotte $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE 00008 TAO_Tagged_Components::TAO_Tagged_Components (void) 00009 : orb_type_ (0), 00010 orb_type_set_ (0), 00011 code_sets_set_ (0) 00012 { 00013 } 00014 00015 ACE_INLINE int 00016 TAO_Tagged_Components::get_orb_type (CORBA::ULong& orb_type) const 00017 { 00018 if (this->orb_type_set_ == 1) 00019 { 00020 orb_type = this->orb_type_; 00021 } 00022 00023 return this->orb_type_set_; 00024 } 00025 00026 ACE_INLINE int 00027 TAO_Tagged_Components::get_code_sets ( 00028 const CONV_FRAME::CodeSetComponentInfo* &ci) const 00029 { 00030 if (this->code_sets_set_ == 1) 00031 { 00032 ci = &this->code_sets_; 00033 } 00034 00035 return this->code_sets_set_; 00036 } 00037 00038 ACE_INLINE int 00039 TAO_Tagged_Components::get_code_sets ( 00040 CONV_FRAME::CodeSetComponentInfo &ci) const 00041 { 00042 if (this->code_sets_set_ == 1) 00043 { 00044 ci = this->code_sets_; 00045 } 00046 00047 return this->code_sets_set_; 00048 } 00049 00050 ACE_INLINE int 00051 TAO_Tagged_Components::known_tag (IOP::ComponentId tag) const 00052 { 00053 return (tag == IOP::TAG_ORB_TYPE 00054 || tag == IOP::TAG_CODE_SETS); 00055 } 00056 00057 00058 ACE_INLINE int 00059 TAO_Tagged_Components::unique_tag (IOP::ComponentId tag) const 00060 { 00061 return (tag == IOP::TAG_ORB_TYPE 00062 || tag == IOP::TAG_CODE_SETS 00063 || tag == IOP::TAG_POLICIES 00064 || tag == TAO_TAG_ENDPOINTS 00065 // || tag == IOP::TAG_ALTERNATE_IIOP_ADDRESS 00066 || tag == IOP::TAG_COMPLETE_OBJECT_KEY 00067 || tag == IOP::TAG_ENDPOINT_ID_POSITION 00068 || tag == IOP::TAG_LOCATION_POLICY 00069 || tag == IOP::TAG_FT_PRIMARY 00070 || tag == IOP::TAG_FT_GROUP 00071 || tag == IOP::TAG_DCE_STRING_BINDING 00072 || tag == IOP::TAG_DCE_BINDING_NAME 00073 || tag == IOP::TAG_DCE_NO_PIPES); 00074 } 00075 00076 ACE_INLINE IOP::MultipleComponentProfile& 00077 TAO_Tagged_Components::components (void) 00078 { 00079 return this->components_; 00080 } 00081 00082 TAO_END_VERSIONED_NAMESPACE_DECL