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/IIOPC.h"
00033 #include "tao/CDR.h"
00034 
00035 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00036 
00037 
00038 
00039 
00040 
00041 namespace TAO
00042 {
00043 }
00044 
00045 
00046 
00047 
00048 
00049 void
00050 IIOP::ListenPoint::_tao_any_destructor (
00051     void *_tao_void_pointer
00052   )
00053 {
00054   ListenPoint *_tao_tmp_pointer =
00055     static_cast<ListenPoint *> (_tao_void_pointer);
00056   delete _tao_tmp_pointer;
00057 }
00058 
00059 
00060 
00061 
00062 #if !defined (_IIOP_LISTENPOINTLIST_CS_)
00063 #define _IIOP_LISTENPOINTLIST_CS_
00064 
00065 IIOP::ListenPointList::ListenPointList (void)
00066 {}
00067 
00068 IIOP::ListenPointList::ListenPointList (
00069     CORBA::ULong max
00070   )
00071   : TAO::unbounded_value_sequence<
00072         ListenPoint
00073       >
00074     (max)
00075 {}
00076 
00077 IIOP::ListenPointList::ListenPointList (
00078     CORBA::ULong max,
00079     CORBA::ULong length,
00080     IIOP::ListenPoint * buffer,
00081     CORBA::Boolean release
00082   )
00083   : TAO::unbounded_value_sequence<
00084         ListenPoint
00085       >
00086     (max, length, buffer, release)
00087 {}
00088 
00089 IIOP::ListenPointList::ListenPointList (
00090     const ListenPointList &seq
00091   )
00092   : TAO::unbounded_value_sequence<
00093         ListenPoint
00094       >
00095     (seq)
00096 {}
00097 
00098 IIOP::ListenPointList::~ListenPointList (void)
00099 {}
00100 
00101 void IIOP::ListenPointList::_tao_any_destructor (
00102     void * _tao_void_pointer
00103   )
00104 {
00105   ListenPointList * _tao_tmp_pointer =
00106     static_cast<ListenPointList *> (_tao_void_pointer);
00107   delete _tao_tmp_pointer;
00108 }
00109 
00110 #endif 
00111 
00112 
00113 
00114 
00115 void
00116 IIOP::BiDirIIOPServiceContext::_tao_any_destructor (
00117     void *_tao_void_pointer
00118   )
00119 {
00120   BiDirIIOPServiceContext *_tao_tmp_pointer =
00121     static_cast<BiDirIIOPServiceContext *> (_tao_void_pointer);
00122   delete _tao_tmp_pointer;
00123 }
00124 
00125 
00126 
00127 
00128 CORBA::Boolean operator<< (
00129     TAO_OutputCDR &strm,
00130     const IIOP::ListenPoint &_tao_aggregate
00131   )
00132 {
00133   return
00134     (strm << _tao_aggregate.host.in ()) &&
00135     (strm << _tao_aggregate.port);
00136 }
00137 
00138 CORBA::Boolean operator>> (
00139     TAO_InputCDR &strm,
00140     IIOP::ListenPoint &_tao_aggregate
00141   )
00142 {
00143   return
00144     (strm >> _tao_aggregate.host.out ()) &&
00145     (strm >> _tao_aggregate.port);
00146 }
00147 
00148 
00149 
00150 
00151 #if !defined _TAO_CDR_OP_IIOP_ListenPointList_CPP_
00152 #define _TAO_CDR_OP_IIOP_ListenPointList_CPP_
00153 
00154 CORBA::Boolean operator<< (
00155     TAO_OutputCDR &strm,
00156     const IIOP::ListenPointList &_tao_sequence
00157   )
00158 {
00159   return TAO::marshal_sequence(strm, _tao_sequence);
00160 }
00161 
00162 CORBA::Boolean operator>> (
00163     TAO_InputCDR &strm,
00164     IIOP::ListenPointList &_tao_sequence
00165   )
00166 {
00167   return TAO::demarshal_sequence(strm, _tao_sequence);
00168 }
00169 
00170 #endif 
00171 
00172 
00173 
00174 
00175 CORBA::Boolean operator<< (
00176     TAO_OutputCDR &strm,
00177     const IIOP::BiDirIIOPServiceContext &_tao_aggregate
00178   )
00179 {
00180   return
00181     (strm << _tao_aggregate.listen_points);
00182 }
00183 
00184 CORBA::Boolean operator>> (
00185     TAO_InputCDR &strm,
00186     IIOP::BiDirIIOPServiceContext &_tao_aggregate
00187   )
00188 {
00189   return
00190     (strm >> _tao_aggregate.listen_points);
00191 }
00192 
00193 TAO_END_VERSIONED_NAMESPACE_DECL