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