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

BoundsC.cpp File Reference

#include "tao_pch.h"
#include "BoundsC.h"
#include "tao/Stub.h"
#include "tao/Invocation.h"
#include "tao/PortableInterceptor.h"
#include "tao/RequestInfo_Util.h"
#include "tao/ClientRequestInfo_i.h"
#include "tao/ClientInterceptorAdapter.h"
#include "BoundsC.i"

Include dependency graph for BoundsC.cpp:

Include dependency graph

Go to the source code of this file.

Functions

CORBA::TypeCode _tc_TAO_tc_CORBA_Bounds (CORBA::tk_except, sizeof(_oc_CORBA_Bounds),(char *)&_oc_CORBA_Bounds, 0, sizeof(CORBA::Bounds))
void operator<<= (CORBA::Any &_tao_any, const CORBA::Bounds &_tao_elem)
void operator<<= (CORBA::Any &_tao_any, CORBA::Bounds *_tao_elem)
CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, CORBA::Bounds *&_tao_elem)
CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const CORBA::Bounds *&_tao_elem)

Variables

const CORBA::Long _oc_CORBA_Bounds []


Function Documentation

CORBA::TypeCode _tc_TAO_tc_CORBA_Bounds CORBA::tk_except   ,
sizeof(_oc_CORBA_Bounds  ,
(char *)&    _oc_CORBA_Bounds,
 ,
sizeof(CORBA::Bounds  
[static]
 

void operator<<= CORBA::Any   _tao_any,
CORBA::Bounds   _tao_elem
 

Definition at line 188 of file BoundsC.cpp.

References CORBA::Bounds::_tao_any_destructor, ACE_OutputCDR::begin, and TAO_ENCAP_BYTE_ORDER.

00189 {
00190   TAO_OutputCDR stream;
00191   stream << *_tao_elem;
00192   _tao_any._tao_replace (
00193       CORBA::_tc_Bounds,
00194       TAO_ENCAP_BYTE_ORDER,
00195       stream.begin (),
00196       1,
00197       _tao_elem,
00198       CORBA::Bounds::_tao_any_destructor
00199     );
00200 }

void operator<<= CORBA::Any   _tao_any,
const CORBA::Bounds   _tao_elem
 

Definition at line 177 of file BoundsC.cpp.

References ACE_OutputCDR::begin, and TAO_ENCAP_BYTE_ORDER.

00178 {
00179   TAO_OutputCDR stream;
00180   stream << _tao_elem;
00181   _tao_any._tao_replace (
00182       CORBA::_tc_Bounds,
00183       TAO_ENCAP_BYTE_ORDER,
00184       stream.begin ()
00185     );
00186 }

CORBA::Boolean operator>>= const CORBA::Any   _tao_any,
const CORBA::Bounds *&    _tao_elem
 

Definition at line 210 of file BoundsC.cpp.

References CORBA::Bounds::_tao_any_destructor, ACE_CATCHANY, ACE_ENDTRY, ACE_ENV_ARG_PARAMETER, ACE_NEW_RETURN, ACE_TRY_CHECK, ACE_TRY_NEW_ENV, and ACE_OS_String::strcmp.

00211 {
00212   _tao_elem = 0;
00213   ACE_TRY_NEW_ENV
00214   {
00215     CORBA::TypeCode_var type = _tao_any.type ();
00216 
00217     CORBA::Boolean result = type->equivalent (CORBA::_tc_Bounds ACE_ENV_ARG_PARAMETER);
00218     ACE_TRY_CHECK;
00219 
00220     if (!result)
00221       return 0; // not equivalent
00222 
00223     if (_tao_any.any_owns_data ())
00224     {
00225       _tao_elem = (CORBA::Bounds *)_tao_any.value ();
00226       return 1;
00227     }
00228     else
00229     {
00230       CORBA::Bounds *tmp;
00231       ACE_NEW_RETURN (tmp, CORBA::Bounds, 0);
00232       TAO_InputCDR stream (
00233           _tao_any._tao_get_cdr (),
00234           _tao_any._tao_byte_order ()
00235         );
00236       CORBA::String_var interface_repository_id;
00237       if (!(stream >> interface_repository_id.out ()))
00238         return 0;
00239       if (ACE_OS::strcmp (
00240           interface_repository_id.in (),
00241           "IDL:omg.org/CORBA/Bounds:1.0"))
00242         return 0;
00243       if (stream >> *tmp)
00244       {
00245         ((CORBA::Any *)&_tao_any)->_tao_replace (
00246             CORBA::_tc_Bounds,
00247             1,
00248             tmp,
00249             CORBA::Bounds::_tao_any_destructor
00250           );
00251         _tao_elem = tmp;
00252         return 1;
00253       }
00254       else
00255       {
00256         delete tmp;
00257       }
00258     }
00259   }
00260   ACE_CATCHANY
00261   {
00262   }
00263   ACE_ENDTRY;
00264   return 0;
00265 }

CORBA::Boolean operator>>= const CORBA::Any   _tao_any,
CORBA::Bounds *&    _tao_elem
 

Definition at line 202 of file BoundsC.cpp.

00203 {
00204   return _tao_any >>= ACE_const_cast(
00205       const CORBA::Bounds*&,
00206       _tao_elem
00207     );
00208 }


Variable Documentation

const CORBA::Long _oc_CORBA_Bounds[] [static]
 

Initial value:

{
  TAO_ENCAP_BYTE_ORDER, 
  29,
  ACE_NTOHL (0x49444c3a),
  ACE_NTOHL (0x6f6d672e),
  ACE_NTOHL (0x6f72672f),
  ACE_NTOHL (0x434f5242),
  ACE_NTOHL (0x412f426f),
  ACE_NTOHL (0x756e6473),
  ACE_NTOHL (0x3a312e30),
  ACE_NTOHL (0x0),  
  7,
  ACE_NTOHL (0x426f756e),
  ACE_NTOHL (0x64730000),  
  0, 
}

Definition at line 139 of file BoundsC.cpp.


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