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/AnyTypeCode/Null_RefCount_Policy.h"
00033 #include "tao/AnyTypeCode/TypeCode_Constants.h"
00034 #include "tao/AnyTypeCode/Alias_TypeCode_Static.h"
00035 #include "tao/AnyTypeCode/Sequence_TypeCode_Static.h"
00036 #include "tao/AnyTypeCode/String_TypeCode_Static.h"
00037 #include "tao/AnyTypeCode/Struct_TypeCode_Static.h"
00038 #include "tao/AnyTypeCode/TypeCode_Struct_Field.h"
00039 #include "tao/Strategies/uiop_endpointsC.h"
00040 #include "tao/CDR.h"
00041
00042 #if defined (__BORLANDC__)
00043 #pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
00044 #endif
00045
00046
00047
00048
00049 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00050
00051
00052 namespace TAO
00053 {
00054 }
00055
00056
00057
00058
00059
00060 static TAO::TypeCode::Struct_Field<char const *, CORBA::TypeCode_ptr const *> const _tao_fields_TAO_UIOP_Endpoint_Info[] =
00061 {
00062 { "rendezvous_point", &CORBA::_tc_string },
00063 { "priority", &CORBA::_tc_short }
00064
00065 };
00066 static TAO::TypeCode::Struct<char const *,
00067 CORBA::TypeCode_ptr const *,
00068 TAO::TypeCode::Struct_Field<char const *,
00069 CORBA::TypeCode_ptr const *> const *,
00070 TAO::Null_RefCount_Policy>
00071 _tao_tc_TAO_UIOP_Endpoint_Info (
00072 CORBA::tk_struct,
00073 "IDL:TAO_UIOP_Endpoint_Info:1.0",
00074 "TAO_UIOP_Endpoint_Info",
00075 _tao_fields_TAO_UIOP_Endpoint_Info,
00076 2);
00077
00078 ::CORBA::TypeCode_ptr const _tc_TAO_UIOP_Endpoint_Info =
00079 &_tao_tc_TAO_UIOP_Endpoint_Info;
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089 #if !defined (_TAO_UIOPENDPOINTSEQUENCE_CS_)
00090 #define _TAO_UIOPENDPOINTSEQUENCE_CS_
00091
00092 TAO_UIOPEndpointSequence::TAO_UIOPEndpointSequence (void)
00093 {}
00094
00095 TAO_UIOPEndpointSequence::TAO_UIOPEndpointSequence (
00096 CORBA::ULong max
00097 )
00098 : TAO::unbounded_value_sequence<
00099 TAO_UIOP_Endpoint_Info
00100 >
00101 (max)
00102 {}
00103
00104 TAO_UIOPEndpointSequence::TAO_UIOPEndpointSequence (
00105 CORBA::ULong max,
00106 CORBA::ULong length,
00107 TAO_UIOP_Endpoint_Info * buffer,
00108 CORBA::Boolean release
00109 )
00110 : TAO::unbounded_value_sequence<
00111 TAO_UIOP_Endpoint_Info
00112 >
00113 (max, length, buffer, release)
00114 {}
00115
00116 TAO_UIOPEndpointSequence::TAO_UIOPEndpointSequence (
00117 const TAO_UIOPEndpointSequence &seq
00118 )
00119 : TAO::unbounded_value_sequence<
00120 TAO_UIOP_Endpoint_Info
00121 >
00122 (seq)
00123 {}
00124
00125 TAO_UIOPEndpointSequence::~TAO_UIOPEndpointSequence (void)
00126 {}
00127
00128 #endif
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139 #ifndef _TAO_TYPECODE_TAO_UIOPEndpointSequence_GUARD
00140 #define _TAO_TYPECODE_TAO_UIOPEndpointSequence_GUARD
00141 namespace TAO
00142 {
00143 namespace TypeCode
00144 {
00145 TAO::TypeCode::Sequence< ::CORBA::TypeCode_ptr const *,
00146 TAO::Null_RefCount_Policy>
00147 TAO_UIOPEndpointSequence_0 (
00148 CORBA::tk_sequence,
00149 &_tc_TAO_UIOP_Endpoint_Info,
00150 0U);
00151
00152 ::CORBA::TypeCode_ptr const tc_TAO_UIOPEndpointSequence_0 =
00153 &TAO_UIOPEndpointSequence_0;
00154
00155 }
00156 }
00157
00158
00159 #endif
00160 static TAO::TypeCode::Alias<char const *,
00161 CORBA::TypeCode_ptr const *,
00162 TAO::Null_RefCount_Policy>
00163 _tao_tc_TAO_UIOPEndpointSequence (
00164 CORBA::tk_alias,
00165 "IDL:TAO_UIOPEndpointSequence:1.0",
00166 "TAO_UIOPEndpointSequence",
00167 &TAO::TypeCode::tc_TAO_UIOPEndpointSequence_0);
00168
00169 ::CORBA::TypeCode_ptr const _tc_TAO_UIOPEndpointSequence =
00170 &_tao_tc_TAO_UIOPEndpointSequence;
00171
00172
00173
00174
00175 CORBA::Boolean operator<< (
00176 TAO_OutputCDR &strm,
00177 const TAO_UIOP_Endpoint_Info &_tao_aggregate
00178 )
00179 {
00180 return
00181 (strm << _tao_aggregate.rendezvous_point.in ()) &&
00182 (strm << _tao_aggregate.priority);
00183 }
00184
00185 CORBA::Boolean operator>> (
00186 TAO_InputCDR &strm,
00187 TAO_UIOP_Endpoint_Info &_tao_aggregate
00188 )
00189 {
00190 return
00191 (strm >> _tao_aggregate.rendezvous_point.out ()) &&
00192 (strm >> _tao_aggregate.priority);
00193 }
00194
00195
00196
00197
00198 #if !defined _TAO_CDR_OP_TAO_UIOPEndpointSequence_CPP_
00199 #define _TAO_CDR_OP_TAO_UIOPEndpointSequence_CPP_
00200
00201 CORBA::Boolean operator<< (
00202 TAO_OutputCDR &strm,
00203 const TAO_UIOPEndpointSequence &_tao_sequence
00204 )
00205 {
00206 return TAO::marshal_sequence(strm, _tao_sequence);
00207 }
00208
00209 CORBA::Boolean operator>> (
00210 TAO_InputCDR &strm,
00211 TAO_UIOPEndpointSequence &_tao_sequence
00212 )
00213 {
00214 return TAO::demarshal_sequence(strm, _tao_sequence);
00215 }
00216
00217 #endif
00218
00219 TAO_END_VERSIONED_NAMESPACE_DECL