sciop_endpointsC.cpp

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // sciop_endpointsC.cpp,v 1.12 2006/04/19 09:33:00 jwillemsen Exp
00004 
00005 // ****  Code generated by the The ACE ORB (TAO) IDL Compiler ****
00006 // TAO and the TAO IDL Compiler have been developed by:
00007 //       Center for Distributed Object Computing
00008 //       Washington University
00009 //       St. Louis, MO
00010 //       USA
00011 //       http://www.cs.wustl.edu/~schmidt/doc-center.html
00012 // and
00013 //       Distributed Object Computing Laboratory
00014 //       University of California at Irvine
00015 //       Irvine, CA
00016 //       USA
00017 //       http://doc.ece.uci.edu/
00018 // and
00019 //       Institute for Software Integrated Systems
00020 //       Vanderbilt University
00021 //       Nashville, TN
00022 //       USA
00023 //       http://www.isis.vanderbilt.edu/
00024 //
00025 // Information about TAO is available at:
00026 //     http://www.cs.wustl.edu/~schmidt/TAO.html
00027 
00028 // TAO_IDL - Generated from
00029 // be/be_codegen.cpp:291
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 /* __BORLANDC__ */
00045 
00046 // TAO_IDL - Generated from
00047 // be/be_visitor_arg_traits.cpp:69
00048 
00049 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00050 
00051 // Arg traits specializations.
00052 namespace TAO
00053 {
00054 }
00055 
00056 
00057 // TAO_IDL - Generated from
00058 // be/be_visitor_typecode/struct_typecode.cpp:74
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 // TAO_IDL - Generated from
00083 // be/be_visitor_structure/structure_cs.cpp:66
00084 
00085 
00086 
00087 // TAO_IDL - Generated from
00088 // be/be_visitor_sequence/sequence_cs.cpp:65
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 /* end #if !defined */
00130 
00131 // TAO_IDL - Generated from
00132 // be/be_visitor_typecode/alias_typecode.cpp:31
00133 
00134 
00135 
00136 // TAO_IDL - Generated from
00137 // be/be_visitor_typecode/typecode_defn.cpp:925
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 /* _TAO_TYPECODE_TAO_SCIOPEndpointSequence_GUARD */
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 // TAO_IDL - Generated from
00174 // be/be_visitor_structure/cdr_op_cs.cpp:61
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 // TAO_IDL - Generated from
00199 // be/be_visitor_sequence/cdr_op_cs.cpp:96
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 /* _TAO_CDR_OP_TAO_SCIOPEndpointSequence_CPP_ */
00221 
00222 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 13:39:29 2006 for TAO_Strategies by doxygen 1.3.6