Go to the documentation of this file.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/IOPC.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
00110
00111 int decode (TAO_InputCDR& cdr);
00112
00113
00114
00115
00116
00117
00118 IOP::MultipleComponentProfile &components (void);
00119
00120 private:
00121
00122 void set_code_sets_i (CONV_FRAME::CodeSetComponent &lhs,
00123 CONV_FRAME::CodeSetComponent &rhs);
00124
00125
00126 void set_known_component_i (const IOP::TaggedComponent& component);
00127 void set_component_i (const IOP::TaggedComponent& component);
00128 void set_component_i (IOP::TaggedComponent& component);
00129 void add_component_i (const IOP::TaggedComponent& component);
00130 void add_component_i (IOP::TaggedComponent& component);
00131 void set_component_i (IOP::ComponentId tag, TAO_OutputCDR &cdr);
00132
00133
00134 int remove_known_component_i (IOP::ComponentId tag);
00135 int remove_component_i (IOP::ComponentId tag);
00136
00137
00138 int get_known_component_i (IOP::TaggedComponent& component) const;
00139 int get_component_i (IOP::TaggedComponent& component) const;
00140
00141
00142 bool known_tag (IOP::ComponentId tag) const;
00143
00144
00145 bool unique_tag (IOP::ComponentId tag) const;
00146
00147 private:
00148
00149 CORBA::ULong orb_type_;
00150
00151
00152 CONV_FRAME::CodeSetComponentInfo code_sets_;
00153
00154
00155
00156 IOP::MultipleComponentProfile components_;
00157
00158
00159 CORBA::Octet orb_type_set_;
00160 CORBA::Octet code_sets_set_;
00161 };
00162
00163 TAO_END_VERSIONED_NAMESPACE_DECL
00164
00165 #if defined (__ACE_INLINE__)
00166 # include "tao/Tagged_Components.inl"
00167 #endif
00168
00169 #include "ace/post.h"
00170
00171 #endif