00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #include "tao/CONV_FRAMEC.h"
00033 #include "tao/CDR.h"
00034
00035
00036
00037
00038 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00039
00040
00041 namespace TAO
00042 {
00043 }
00044
00045
00046
00047
00048
00049 #if !defined (_CONV_FRAME_CODESETIDSEQ_CS_)
00050 #define _CONV_FRAME_CODESETIDSEQ_CS_
00051
00052 CONV_FRAME::CodeSetIdSeq::CodeSetIdSeq (void)
00053 {}
00054
00055 CONV_FRAME::CodeSetIdSeq::CodeSetIdSeq (
00056 CORBA::ULong max
00057 )
00058 : TAO::unbounded_value_sequence<
00059 CodeSetId
00060 >
00061 (max)
00062 {}
00063
00064 CONV_FRAME::CodeSetIdSeq::CodeSetIdSeq (
00065 CORBA::ULong max,
00066 CORBA::ULong length,
00067 CORBA::ULong * buffer,
00068 CORBA::Boolean release
00069 )
00070 : TAO::unbounded_value_sequence<
00071 CodeSetId
00072 >
00073 (max, length, buffer, release)
00074 {}
00075
00076 CONV_FRAME::CodeSetIdSeq::CodeSetIdSeq (
00077 const CodeSetIdSeq &seq
00078 )
00079 : TAO::unbounded_value_sequence<
00080 CodeSetId
00081 >
00082 (seq)
00083 {}
00084
00085 CONV_FRAME::CodeSetIdSeq::~CodeSetIdSeq (void)
00086 {}
00087
00088 void CONV_FRAME::CodeSetIdSeq::_tao_any_destructor (
00089 void * _tao_void_pointer
00090 )
00091 {
00092 CodeSetIdSeq * _tao_tmp_pointer =
00093 static_cast<CodeSetIdSeq *> (_tao_void_pointer);
00094 delete _tao_tmp_pointer;
00095 }
00096
00097 #endif
00098
00099
00100
00101
00102 void
00103 CONV_FRAME::CodeSetComponent::_tao_any_destructor (
00104 void *_tao_void_pointer
00105 )
00106 {
00107 CodeSetComponent *_tao_tmp_pointer =
00108 static_cast<CodeSetComponent *> (_tao_void_pointer);
00109 delete _tao_tmp_pointer;
00110 }
00111
00112
00113
00114
00115 void
00116 CONV_FRAME::CodeSetComponentInfo::_tao_any_destructor (
00117 void *_tao_void_pointer
00118 )
00119 {
00120 CodeSetComponentInfo *_tao_tmp_pointer =
00121 static_cast<CodeSetComponentInfo *> (_tao_void_pointer);
00122 delete _tao_tmp_pointer;
00123 }
00124
00125
00126
00127
00128 void
00129 CONV_FRAME::CodeSetContext::_tao_any_destructor (
00130 void *_tao_void_pointer
00131 )
00132 {
00133 CodeSetContext *_tao_tmp_pointer =
00134 static_cast<CodeSetContext *> (_tao_void_pointer);
00135 delete _tao_tmp_pointer;
00136 }
00137
00138
00139
00140
00141 #if !defined _TAO_CDR_OP_CONV_FRAME_CodeSetIdSeq_CPP_
00142 #define _TAO_CDR_OP_CONV_FRAME_CodeSetIdSeq_CPP_
00143
00144 CORBA::Boolean operator<< (
00145 TAO_OutputCDR &strm,
00146 const CONV_FRAME::CodeSetIdSeq &_tao_sequence
00147 )
00148 {
00149 return TAO::marshal_sequence(strm, _tao_sequence);
00150 }
00151
00152 CORBA::Boolean operator>> (
00153 TAO_InputCDR &strm,
00154 CONV_FRAME::CodeSetIdSeq &_tao_sequence
00155 )
00156 {
00157 return TAO::demarshal_sequence(strm, _tao_sequence);
00158 }
00159
00160 #endif
00161
00162
00163
00164
00165 CORBA::Boolean operator<< (
00166 TAO_OutputCDR &strm,
00167 const CONV_FRAME::CodeSetComponent &_tao_aggregate
00168 )
00169 {
00170 return
00171 (strm << _tao_aggregate.native_code_set) &&
00172 (strm << _tao_aggregate.conversion_code_sets);
00173 }
00174
00175 CORBA::Boolean operator>> (
00176 TAO_InputCDR &strm,
00177 CONV_FRAME::CodeSetComponent &_tao_aggregate
00178 )
00179 {
00180 return
00181 (strm >> _tao_aggregate.native_code_set) &&
00182 (strm >> _tao_aggregate.conversion_code_sets);
00183 }
00184
00185
00186
00187
00188 CORBA::Boolean operator<< (
00189 TAO_OutputCDR &strm,
00190 const CONV_FRAME::CodeSetComponentInfo &_tao_aggregate
00191 )
00192 {
00193 return
00194 (strm << _tao_aggregate.ForCharData) &&
00195 (strm << _tao_aggregate.ForWcharData);
00196 }
00197
00198 CORBA::Boolean operator>> (
00199 TAO_InputCDR &strm,
00200 CONV_FRAME::CodeSetComponentInfo &_tao_aggregate
00201 )
00202 {
00203 return
00204 (strm >> _tao_aggregate.ForCharData) &&
00205 (strm >> _tao_aggregate.ForWcharData);
00206 }
00207
00208
00209
00210
00211 CORBA::Boolean operator<< (
00212 TAO_OutputCDR &strm,
00213 const CONV_FRAME::CodeSetContext &_tao_aggregate
00214 )
00215 {
00216 return
00217 (strm << _tao_aggregate.char_data) &&
00218 (strm << _tao_aggregate.wchar_data);
00219 }
00220
00221 CORBA::Boolean operator>> (
00222 TAO_InputCDR &strm,
00223 CONV_FRAME::CodeSetContext &_tao_aggregate
00224 )
00225 {
00226 return
00227 (strm >> _tao_aggregate.char_data) &&
00228 (strm >> _tao_aggregate.wchar_data);
00229 }
00230
00231 TAO_END_VERSIONED_NAMESPACE_DECL