Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CDR.i

Go to the documentation of this file.
00001 // This may look like C, but it's really -*- C++ -*-
00002 // $Id: CDR.i,v 1.1.1.2.64.1 2003/04/10 14:04:02 phil Exp $
00003 
00004 ACE_INLINE
00005 TAO_OutputCDR::~TAO_OutputCDR (void)
00006 {
00007 }
00008 
00009 ACE_INLINE
00010 TAO_InputCDR::TAO_InputCDR (const char *buf,
00011                             size_t bufsiz,
00012                             int byte_order,
00013                             ACE_CDR::Octet major_version,
00014                             ACE_CDR::Octet minor_version,
00015                             TAO_ORB_Core* orb_core)
00016   : ACE_InputCDR (buf,
00017                   bufsiz,
00018                   byte_order,
00019                   major_version,
00020                   minor_version),
00021     orb_core_ (orb_core)
00022 {
00023 }
00024 
00025 ACE_INLINE
00026 TAO_InputCDR::TAO_InputCDR (size_t bufsiz,
00027                             int byte_order,
00028                             ACE_CDR::Octet major_version,
00029                             ACE_CDR::Octet minor_version,
00030                             TAO_ORB_Core* orb_core)
00031   : ACE_InputCDR (bufsiz,
00032                   byte_order,
00033                   major_version,
00034                   minor_version),
00035     orb_core_ (orb_core)
00036 {
00037 }
00038 
00039 ACE_INLINE
00040 TAO_InputCDR::TAO_InputCDR (const ACE_Message_Block *data,
00041                             int byte_order,
00042                             ACE_CDR::Octet major_version,
00043                             ACE_CDR::Octet minor_version,
00044                             TAO_ORB_Core* orb_core)
00045   : ACE_InputCDR (data,
00046                   byte_order,
00047                   major_version,
00048                   minor_version),
00049     orb_core_ (orb_core)
00050 {
00051 }
00052 
00053 ACE_INLINE
00054 TAO_InputCDR::TAO_InputCDR (ACE_Data_Block *data,
00055                             ACE_Message_Block::Message_Flags flag,
00056                             int byte_order,
00057                             ACE_CDR::Octet major_version,
00058                             ACE_CDR::Octet minor_version,
00059                             TAO_ORB_Core* orb_core)
00060   : ACE_InputCDR (data,
00061                   flag,
00062                   byte_order,
00063                   major_version,
00064                   minor_version),
00065     orb_core_ (orb_core)
00066 {
00067 }
00068 
00069 
00070 ACE_INLINE
00071 TAO_InputCDR::TAO_InputCDR (ACE_Data_Block *data,
00072                             ACE_Message_Block::Message_Flags flag,
00073                             size_t rd_pos,
00074                             size_t wr_pos,
00075                             int byte_order,
00076                             ACE_CDR::Octet major_version,
00077                             ACE_CDR::Octet minor_version,
00078                             TAO_ORB_Core* orb_core)
00079   : ACE_InputCDR (data,
00080                   flag,
00081                   rd_pos,
00082                   wr_pos,
00083                   byte_order,
00084                   major_version,
00085                   minor_version),
00086     orb_core_ (orb_core)
00087 {
00088 }
00089 
00090 
00091 ACE_INLINE
00092 TAO_InputCDR::TAO_InputCDR (const TAO_InputCDR& rhs,
00093                             size_t size,
00094                             ACE_CDR::Long offset)
00095   : ACE_InputCDR (rhs,
00096                   size,
00097                   offset),
00098     orb_core_ (rhs.orb_core_)
00099 {
00100 }
00101 
00102 ACE_INLINE
00103 TAO_InputCDR::TAO_InputCDR (const TAO_InputCDR& rhs,
00104                             size_t size)
00105   : ACE_InputCDR (rhs,
00106                   size),
00107     orb_core_ (rhs.orb_core_)
00108 {
00109 }
00110 
00111 ACE_INLINE
00112 TAO_InputCDR::TAO_InputCDR (const TAO_InputCDR& rhs)
00113   : ACE_InputCDR (rhs),
00114     orb_core_ (rhs.orb_core_)
00115 {
00116 }
00117 
00118 ACE_INLINE
00119 TAO_InputCDR::TAO_InputCDR (ACE_InputCDR::Transfer_Contents rhs,
00120                             TAO_ORB_Core* orb_core)
00121   : ACE_InputCDR (rhs),
00122     orb_core_ (orb_core)
00123 {
00124 }
00125 
00126 ACE_INLINE
00127 TAO_InputCDR::~TAO_InputCDR (void)
00128 {
00129 }
00130 
00131 ACE_INLINE TAO_ORB_Core*
00132 TAO_InputCDR::orb_core (void) const
00133 {
00134   return this->orb_core_;
00135 }
00136 
00137 // ****************************************************************
00138 
00139 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os,
00140                                       CORBA::Short x)
00141 {
00142   return ACE_static_cast (ACE_OutputCDR &, os) << x;
00143 }
00144 
00145 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os,
00146                                       CORBA::UShort x)
00147 {
00148   return ACE_static_cast (ACE_OutputCDR &, os) << x;
00149 }
00150 
00151 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os,
00152                                       CORBA::Long x)
00153 {
00154   return ACE_static_cast (ACE_OutputCDR &, os) << x;
00155 }
00156 
00157 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os,
00158                                       CORBA::ULong x)
00159 {
00160   return ACE_static_cast (ACE_OutputCDR &, os) << x;
00161 }
00162 
00163 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os,
00164                                       CORBA::LongLong x)
00165 {
00166   return ACE_static_cast (ACE_OutputCDR &, os) << x;
00167 }
00168 
00169 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os,
00170                                       CORBA::ULongLong x)
00171 {
00172   return ACE_static_cast (ACE_OutputCDR &, os) << x;
00173 }
00174 
00175 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR& os,
00176                                       CORBA::LongDouble x)
00177 {
00178   return ACE_static_cast (ACE_OutputCDR &, os) << x;
00179 }
00180 
00181 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os,
00182                                       CORBA::Float x)
00183 {
00184   return ACE_static_cast (ACE_OutputCDR &, os) << x;
00185 }
00186 
00187 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os,
00188                                       CORBA::Double x)
00189 {
00190   return ACE_static_cast (ACE_OutputCDR &, os) << x;
00191 }
00192 
00193 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os,
00194                                       const CORBA::Char* x)
00195 {
00196   return ACE_static_cast (ACE_OutputCDR &, os) << x;
00197 }
00198 
00199 ACE_INLINE CORBA::Boolean operator<< (TAO_OutputCDR &os,
00200                                       const CORBA::WChar* x)
00201 {
00202   return ACE_static_cast (ACE_OutputCDR &, os) << x;
00203 }
00204 
00205 // ****************************************************************
00206 
00207 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is,
00208                                       CORBA::Short &x)
00209 {
00210   return ACE_static_cast (ACE_InputCDR &, is) >> x;
00211 }
00212 
00213 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is,
00214                                       CORBA::UShort &x)
00215 {
00216   return ACE_static_cast (ACE_InputCDR &, is) >> x;
00217 }
00218 
00219 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is,
00220                                       CORBA::Long &x)
00221 {
00222   return ACE_static_cast(ACE_InputCDR&,is) >> x;
00223 }
00224 
00225 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is,
00226                                       CORBA::ULong &x)
00227 {
00228   return ACE_static_cast (ACE_InputCDR &, is) >> x;
00229 }
00230 
00231 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is,
00232                                       CORBA::LongLong &x)
00233 {
00234   return ACE_static_cast (ACE_InputCDR &, is) >> x;
00235 }
00236 
00237 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is,
00238                                       CORBA::ULongLong &x)
00239 {
00240   return ACE_static_cast (ACE_InputCDR &, is) >> x;
00241 }
00242 
00243 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is,
00244                                       CORBA::LongDouble &x)
00245 {
00246   return ACE_static_cast (ACE_InputCDR &, is) >> x;
00247 }
00248 
00249 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is,
00250                                       CORBA::Float &x)
00251 {
00252   return ACE_static_cast (ACE_InputCDR &, is) >> x;
00253 }
00254 
00255 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is,
00256                                       CORBA::Double &x)
00257 {
00258   return ACE_static_cast (ACE_InputCDR &, is) >> x;
00259 }
00260 
00261 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is,
00262                                       CORBA::Char* &x)
00263 {
00264   return ACE_static_cast (ACE_InputCDR &, is) >> x;
00265 }
00266 
00267 ACE_INLINE CORBA::Boolean operator>> (TAO_InputCDR &is,
00268                                       CORBA::WChar* &x)
00269 {
00270   return ACE_static_cast (ACE_InputCDR &, is) >> x;
00271 }
00272 
00273 ACE_INLINE CORBA::Boolean
00274 operator<< (TAO_OutputCDR &strm, const CORBA::ParameterMode &_tao_enumval)
00275 {
00276   CORBA::ULong _tao_temp = _tao_enumval;
00277   return strm << _tao_temp;
00278 }
00279 
00280 ACE_INLINE CORBA::Boolean
00281 operator>> (TAO_InputCDR &strm, CORBA::ParameterMode &_tao_enumval)
00282 {
00283   CORBA::ULong _tao_temp = 0;
00284   CORBA::Boolean _tao_result = strm >> _tao_temp;
00285 
00286   if (_tao_result == 1)
00287     {
00288       _tao_enumval = ACE_static_cast (CORBA::ParameterMode, _tao_temp);
00289     }
00290 
00291   return _tao_result;
00292 }

Generated on Mon Jun 16 13:48:03 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002