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/sciop_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_SCIOP_Endpoint_Info[] =
00061 {
00062 { "host", &CORBA::_tc_string },
00063 { "port", &CORBA::_tc_short },
00064 { "priority", &CORBA::_tc_short }
00065
00066 };
00067 static TAO::TypeCode::Struct<char const *,
00068 CORBA::TypeCode_ptr const *,
00069 TAO::TypeCode::Struct_Field<char const *,
00070 CORBA::TypeCode_ptr const *> const *,
00071 TAO::Null_RefCount_Policy>
00072 _tao_tc_TAO_SCIOP_Endpoint_Info (
00073 CORBA::tk_struct,
00074 "IDL:TAO_SCIOP_Endpoint_Info:1.0",
00075 "TAO_SCIOP_Endpoint_Info",
00076 _tao_fields_TAO_SCIOP_Endpoint_Info,
00077 3);
00078
00079 ::CORBA::TypeCode_ptr const _tc_TAO_SCIOP_Endpoint_Info =
00080 &_tao_tc_TAO_SCIOP_Endpoint_Info;
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090 #if !defined (_TAO_SCIOPENDPOINTSEQUENCE_CS_)
00091 #define _TAO_SCIOPENDPOINTSEQUENCE_CS_
00092
00093 TAO_SCIOPEndpointSequence::TAO_SCIOPEndpointSequence (void)
00094 {}
00095
00096 TAO_SCIOPEndpointSequence::TAO_SCIOPEndpointSequence (
00097 CORBA::ULong max
00098 )
00099 : TAO::unbounded_value_sequence<
00100 TAO_SCIOP_Endpoint_Info
00101 >
00102 (max)
00103 {}
00104
00105 TAO_SCIOPEndpointSequence::TAO_SCIOPEndpointSequence (
00106 CORBA::ULong max,
00107 CORBA::ULong length,
00108 TAO_SCIOP_Endpoint_Info * buffer,
00109 CORBA::Boolean release
00110 )
00111 : TAO::unbounded_value_sequence<
00112 TAO_SCIOP_Endpoint_Info
00113 >
00114 (max, length, buffer, release)
00115 {}
00116
00117 TAO_SCIOPEndpointSequence::TAO_SCIOPEndpointSequence (
00118 const TAO_SCIOPEndpointSequence &seq
00119 )
00120 : TAO::unbounded_value_sequence<
00121 TAO_SCIOP_Endpoint_Info
00122 >
00123 (seq)
00124 {}
00125
00126 TAO_SCIOPEndpointSequence::~TAO_SCIOPEndpointSequence (void)
00127 {}
00128
00129 #endif
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140 #ifndef _TAO_TYPECODE_TAO_SCIOPEndpointSequence_GUARD
00141 #define _TAO_TYPECODE_TAO_SCIOPEndpointSequence_GUARD
00142 namespace TAO
00143 {
00144 namespace TypeCode
00145 {
00146 TAO::TypeCode::Sequence< ::CORBA::TypeCode_ptr const *,
00147 TAO::Null_RefCount_Policy>
00148 TAO_SCIOPEndpointSequence_0 (
00149 CORBA::tk_sequence,
00150 &_tc_TAO_SCIOP_Endpoint_Info,
00151 0U);
00152
00153 ::CORBA::TypeCode_ptr const tc_TAO_SCIOPEndpointSequence_0 =
00154 &TAO_SCIOPEndpointSequence_0;
00155
00156 }
00157 }
00158
00159
00160 #endif
00161 static TAO::TypeCode::Alias<char const *,
00162 CORBA::TypeCode_ptr const *,
00163 TAO::Null_RefCount_Policy>
00164 _tao_tc_TAO_SCIOPEndpointSequence (
00165 CORBA::tk_alias,
00166 "IDL:TAO_SCIOPEndpointSequence:1.0",
00167 "TAO_SCIOPEndpointSequence",
00168 &TAO::TypeCode::tc_TAO_SCIOPEndpointSequence_0);
00169
00170 ::CORBA::TypeCode_ptr const _tc_TAO_SCIOPEndpointSequence =
00171 &_tao_tc_TAO_SCIOPEndpointSequence;
00172
00173
00174
00175
00176 CORBA::Boolean operator<< (
00177 TAO_OutputCDR &strm,
00178 const TAO_SCIOP_Endpoint_Info &_tao_aggregate
00179 )
00180 {
00181 return
00182 (strm << _tao_aggregate.host.in ()) &&
00183 (strm << _tao_aggregate.port) &&
00184 (strm << _tao_aggregate.priority);
00185 }
00186
00187 CORBA::Boolean operator>> (
00188 TAO_InputCDR &strm,
00189 TAO_SCIOP_Endpoint_Info &_tao_aggregate
00190 )
00191 {
00192 return
00193 (strm >> _tao_aggregate.host.out ()) &&
00194 (strm >> _tao_aggregate.port) &&
00195 (strm >> _tao_aggregate.priority);
00196 }
00197
00198
00199
00200
00201 #if !defined _TAO_CDR_OP_TAO_SCIOPEndpointSequence_CPP_
00202 #define _TAO_CDR_OP_TAO_SCIOPEndpointSequence_CPP_
00203
00204 CORBA::Boolean operator<< (
00205 TAO_OutputCDR &strm,
00206 const TAO_SCIOPEndpointSequence &_tao_sequence
00207 )
00208 {
00209 return TAO::marshal_sequence(strm, _tao_sequence);
00210 }
00211
00212 CORBA::Boolean operator>> (
00213 TAO_InputCDR &strm,
00214 TAO_SCIOPEndpointSequence &_tao_sequence
00215 )
00216 {
00217 return TAO::demarshal_sequence(strm, _tao_sequence);
00218 }
00219
00220 #endif
00221
00222 TAO_END_VERSIONED_NAMESPACE_DECL