00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_TAGGED_COMPONENTS_H
00014 #define TAO_TAGGED_COMPONENTS_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "tao/IOP_IORC.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #include "tao/CONV_FRAMEC.h"
00025
00026
00027 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00028
00029 class TAO_Profile;
00030
00031
00032
00033
00034
00035
00036
00037 static const CORBA::ULong TAO_TAG_ENDPOINTS = 0x54414f02U;
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 class TAO_Export TAO_Tagged_Components
00058 {
00059 public:
00060
00061 TAO_Tagged_Components (void);
00062
00063
00064
00065 void set_orb_type (CORBA::ULong orb_type);
00066
00067
00068
00069 int get_orb_type (CORBA::ULong& orb_type) const;
00070
00071
00072
00073
00074
00075
00076 void set_code_sets (const CONV_FRAME::CodeSetComponentInfo &);
00077 void set_code_sets (CONV_FRAME::CodeSetComponentInfo &);
00078
00079
00080
00081 int get_code_sets (const CONV_FRAME::CodeSetComponentInfo* &) const;
00082
00083
00084
00085 int get_code_sets (CONV_FRAME::CodeSetComponentInfo &) const;
00086
00087
00088
00089
00090
00091 void set_component (const IOP::TaggedComponent& component);
00092
00093
00094
00095 void set_component (IOP::TaggedComponent& component);
00096
00097
00098
00099 int get_component (IOP::TaggedComponent& component) const;
00100
00101
00102
00103 int remove_component (IOP::ComponentId id);
00104
00105
00106
00107
00108 int encode (TAO_OutputCDR& cdr) const;
00109 int decode (TAO_InputCDR& cdr);
00110
00111
00112
00113
00114
00115
00116 IOP::MultipleComponentProfile &components (void);
00117
00118 private:
00119
00120 void set_code_sets_i (CONV_FRAME::CodeSetComponent &lhs,
00121 CONV_FRAME::CodeSetComponent &rhs);
00122
00123
00124 void set_known_component_i (const IOP::TaggedComponent& component);
00125 void set_component_i (const IOP::TaggedComponent& component);
00126 void set_component_i (IOP::TaggedComponent& component);
00127 void add_component_i (const IOP::TaggedComponent& component);
00128 void add_component_i (IOP::TaggedComponent& component);
00129 void set_component_i (IOP::ComponentId tag, TAO_OutputCDR &cdr);
00130
00131
00132 int remove_known_component_i (IOP::ComponentId tag);
00133 int remove_component_i (IOP::ComponentId tag);
00134
00135
00136 int get_known_component_i (IOP::TaggedComponent& component) const;
00137 int get_component_i (IOP::TaggedComponent& component) const;
00138
00139
00140 int known_tag (IOP::ComponentId tag) const;
00141
00142
00143 int unique_tag (IOP::ComponentId tag) const;
00144
00145 private:
00146
00147 CORBA::ULong orb_type_;
00148
00149
00150 CONV_FRAME::CodeSetComponentInfo code_sets_;
00151
00152
00153
00154 IOP::MultipleComponentProfile components_;
00155
00156
00157 CORBA::Octet orb_type_set_;
00158 CORBA::Octet code_sets_set_;
00159 };
00160
00161 TAO_END_VERSIONED_NAMESPACE_DECL
00162
00163 #if defined (__ACE_INLINE__)
00164 # include "tao/Tagged_Components.inl"
00165 #endif
00166
00167 #include "ace/post.h"
00168
00169 #endif