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/IIOP_EndpointsC.h"
00033 #include "tao/CDR.h"
00034
00035 #if defined (__BORLANDC__)
00036 #pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
00037 #endif
00038
00039
00040
00041
00042 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00043
00044
00045 namespace TAO
00046 {
00047 }
00048
00049
00050
00051
00052
00053 void
00054 TAO::IIOP_Endpoint_Info::_tao_any_destructor (
00055 void *_tao_void_pointer
00056 )
00057 {
00058 IIOP_Endpoint_Info *_tao_tmp_pointer =
00059 static_cast<IIOP_Endpoint_Info *> (_tao_void_pointer);
00060 delete _tao_tmp_pointer;
00061 }
00062
00063
00064
00065
00066 #if !defined (_TAO_IIOPENDPOINTSEQUENCE_CS_)
00067 #define _TAO_IIOPENDPOINTSEQUENCE_CS_
00068
00069 TAO::IIOPEndpointSequence::IIOPEndpointSequence (void)
00070 {}
00071
00072 TAO::IIOPEndpointSequence::IIOPEndpointSequence (
00073 CORBA::ULong max
00074 )
00075 : TAO::unbounded_value_sequence<
00076 TAO::IIOP_Endpoint_Info
00077 >
00078 (max)
00079 {}
00080
00081 TAO::IIOPEndpointSequence::IIOPEndpointSequence (
00082 CORBA::ULong max,
00083 CORBA::ULong length,
00084 TAO::IIOP_Endpoint_Info * buffer,
00085 CORBA::Boolean release
00086 )
00087 : TAO::unbounded_value_sequence<
00088 TAO::IIOP_Endpoint_Info
00089 >
00090 (max, length, buffer, release)
00091 {}
00092
00093 TAO::IIOPEndpointSequence::IIOPEndpointSequence (
00094 const IIOPEndpointSequence &seq
00095 )
00096 : TAO::unbounded_value_sequence<
00097 TAO::IIOP_Endpoint_Info
00098 >
00099 (seq)
00100 {}
00101
00102 TAO::IIOPEndpointSequence::~IIOPEndpointSequence (void)
00103 {}
00104
00105 void TAO::IIOPEndpointSequence::_tao_any_destructor (
00106 void * _tao_void_pointer
00107 )
00108 {
00109 IIOPEndpointSequence * _tao_tmp_pointer =
00110 static_cast<IIOPEndpointSequence *> (_tao_void_pointer);
00111 delete _tao_tmp_pointer;
00112 }
00113
00114 #endif
00115
00116
00117
00118
00119 CORBA::Boolean operator<< (
00120 TAO_OutputCDR &strm,
00121 const TAO::IIOP_Endpoint_Info &_tao_aggregate
00122 )
00123 {
00124 return
00125 (strm << _tao_aggregate.host.in ()) &&
00126 (strm << _tao_aggregate.port) &&
00127 (strm << _tao_aggregate.priority);
00128 }
00129
00130 CORBA::Boolean operator>> (
00131 TAO_InputCDR &strm,
00132 TAO::IIOP_Endpoint_Info &_tao_aggregate
00133 )
00134 {
00135 return
00136 (strm >> _tao_aggregate.host.out ()) &&
00137 (strm >> _tao_aggregate.port) &&
00138 (strm >> _tao_aggregate.priority);
00139 }
00140
00141
00142
00143
00144 #if !defined _TAO_CDR_OP_TAO_IIOPEndpointSequence_CPP_
00145 #define _TAO_CDR_OP_TAO_IIOPEndpointSequence_CPP_
00146
00147 CORBA::Boolean operator<< (
00148 TAO_OutputCDR &strm,
00149 const TAO::IIOPEndpointSequence &_tao_sequence
00150 )
00151 {
00152 return TAO::marshal_sequence(strm, _tao_sequence);
00153 }
00154
00155 CORBA::Boolean operator>> (
00156 TAO_InputCDR &strm,
00157 TAO::IIOPEndpointSequence &_tao_sequence
00158 )
00159 {
00160 return TAO::demarshal_sequence(strm, _tao_sequence);
00161 }
00162
00163 #endif
00164
00165 TAO_END_VERSIONED_NAMESPACE_DECL