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

DynamicC.cpp File Reference

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

Include dependency graph for DynamicC.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define __TAO_UNBOUNDED_SEQUENCE_DYNAMIC_PARAMETERLIST_CS_
#define _DYNAMIC_PARAMETERLIST_CS_
#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_DYNAMIC_EXCEPTIONLIST_CS_
#define _DYNAMIC_EXCEPTIONLIST_CS_

Functions

CORBA::TypeCode _tc_TAO_tc_Dynamic_Parameter (CORBA::tk_struct, sizeof(_oc_Dynamic_Parameter),(char *)&_oc_Dynamic_Parameter, 0, sizeof(Dynamic::Parameter))
CORBA::TypeCode _tc_TAO_tc_Dynamic_ParameterList (CORBA::tk_alias, sizeof(_oc_Dynamic_ParameterList),(char *)&_oc_Dynamic_ParameterList, 0, sizeof(Dynamic::ParameterList))
CORBA::TypeCode _tc_TAO_tc_Dynamic_ContextList (CORBA::tk_alias, sizeof(_oc_Dynamic_ContextList),(char *)&_oc_Dynamic_ContextList, 0, sizeof(Dynamic::ContextList))
CORBA::TypeCode _tc_TAO_tc_Dynamic_TypeCode (CORBA::tk_alias, sizeof(_oc_Dynamic_TypeCode),(char *)&_oc_Dynamic_TypeCode, 0, sizeof(Dynamic::TypeCode))
CORBA::TypeCode _tc_TAO_tc_Dynamic_ExceptionList (CORBA::tk_alias, sizeof(_oc_Dynamic_ExceptionList),(char *)&_oc_Dynamic_ExceptionList, 0, sizeof(Dynamic::ExceptionList))
CORBA::TypeCode _tc_TAO_tc_Dynamic_RequestContext (CORBA::tk_alias, sizeof(_oc_Dynamic_RequestContext),(char *)&_oc_Dynamic_RequestContext, 0, sizeof(Dynamic::RequestContext))
TAO_NAMESPACE_END void operator<<= (CORBA::Any &_tao_any, const Dynamic::Parameter &_tao_elem)
void operator<<= (CORBA::Any &_tao_any, Dynamic::Parameter *_tao_elem)
CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, Dynamic::Parameter *&_tao_elem)
CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const Dynamic::Parameter *&_tao_elem)
void operator<<= (CORBA::Any &_tao_any, const Dynamic::ParameterList &_tao_elem)
void operator<<= (CORBA::Any &_tao_any, Dynamic::ParameterList *_tao_elem)
CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, Dynamic::ParameterList *&_tao_elem)
CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const Dynamic::ParameterList *&_tao_elem)
void operator<<= (CORBA::Any &_tao_any, const Dynamic::ExceptionList &_tao_elem)
void operator<<= (CORBA::Any &_tao_any, Dynamic::ExceptionList *_tao_elem)
CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, Dynamic::ExceptionList *&_tao_elem)
CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const Dynamic::ExceptionList *&_tao_elem)
CORBA::Boolean operator<< (TAO_OutputCDR &strm, const Dynamic::ParameterList &_tao_sequence)
CORBA::Boolean operator>> (TAO_InputCDR &strm, Dynamic::ParameterList &_tao_sequence)
CORBA::Boolean operator<< (TAO_OutputCDR &strm, const Dynamic::ExceptionList &_tao_sequence)
CORBA::Boolean operator>> (TAO_InputCDR &strm, Dynamic::ExceptionList &_tao_sequence)

Variables

const CORBA::Long _oc_Dynamic_Parameter []
const CORBA::Long _oc_Dynamic_ParameterList []
TAO_NAMESPACE_END const CORBA::Long _oc_Dynamic_ContextList []
TAO_NAMESPACE_END const CORBA::Long _oc_Dynamic_TypeCode []
const CORBA::Long _oc_Dynamic_ExceptionList []
TAO_NAMESPACE_END const CORBA::Long _oc_Dynamic_RequestContext []


Define Documentation

#define __TAO_UNBOUNDED_OBJECT_SEQUENCE_DYNAMIC_EXCEPTIONLIST_CS_
 

Definition at line 403 of file DynamicC.cpp.

#define __TAO_UNBOUNDED_SEQUENCE_DYNAMIC_PARAMETERLIST_CS_
 

Definition at line 126 of file DynamicC.cpp.

#define _DYNAMIC_EXCEPTIONLIST_CS_
 

Definition at line 476 of file DynamicC.cpp.

#define _DYNAMIC_PARAMETERLIST_CS_
 

Definition at line 172 of file DynamicC.cpp.


Function Documentation

CORBA::TypeCode _tc_TAO_tc_Dynamic_ContextList CORBA::tk_alias   ,
sizeof(_oc_Dynamic_ContextList  ,
(char *)&    _oc_Dynamic_ContextList,
 ,
sizeof(Dynamic::ContextList  
[static]
 

CORBA::TypeCode _tc_TAO_tc_Dynamic_ExceptionList CORBA::tk_alias   ,
sizeof(_oc_Dynamic_ExceptionList  ,
(char *)&    _oc_Dynamic_ExceptionList,
 ,
sizeof(Dynamic::ExceptionList  
[static]
 

CORBA::TypeCode _tc_TAO_tc_Dynamic_Parameter CORBA::tk_struct   ,
sizeof(_oc_Dynamic_Parameter  ,
(char *)&    _oc_Dynamic_Parameter,
 ,
sizeof(Dynamic::Parameter  
[static]
 

CORBA::TypeCode _tc_TAO_tc_Dynamic_ParameterList CORBA::tk_alias   ,
sizeof(_oc_Dynamic_ParameterList  ,
(char *)&    _oc_Dynamic_ParameterList,
 ,
sizeof(Dynamic::ParameterList  
[static]
 

CORBA::TypeCode _tc_TAO_tc_Dynamic_RequestContext CORBA::tk_alias   ,
sizeof(_oc_Dynamic_RequestContext  ,
(char *)&    _oc_Dynamic_RequestContext,
 ,
sizeof(Dynamic::RequestContext  
[static]
 

CORBA::TypeCode _tc_TAO_tc_Dynamic_TypeCode CORBA::tk_alias   ,
sizeof(_oc_Dynamic_TypeCode  ,
(char *)&    _oc_Dynamic_TypeCode,
 ,
sizeof(Dynamic::TypeCode  
[static]
 

CORBA::Boolean operator<< TAO_OutputCDR   strm,
const Dynamic::ExceptionList   _tao_sequence
 

Definition at line 1064 of file DynamicC.cpp.

References TAO_Unbounded_Base_Sequence::length.

01068 {
01069   if (strm << _tao_sequence.length ())
01070   {
01071     // encode all elements
01072     CORBA::Boolean _tao_marshal_flag = 1;
01073     for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
01074     {
01075       _tao_marshal_flag = (strm << _tao_sequence[i].in ());
01076     }
01077     return _tao_marshal_flag;
01078   }
01079   return 0; // error
01080 }

CORBA::Boolean operator<< TAO_OutputCDR   strm,
const Dynamic::ParameterList   _tao_sequence
 

Definition at line 1017 of file DynamicC.cpp.

References TAO_Unbounded_Base_Sequence::length.

01021 {
01022   if (strm << _tao_sequence.length ())
01023   {
01024     // encode all elements
01025     CORBA::Boolean _tao_marshal_flag = 1;
01026     for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
01027     {
01028       _tao_marshal_flag = (strm << _tao_sequence[i]);
01029     }
01030     return _tao_marshal_flag;
01031   }
01032   return 0; // error
01033 }

void operator<<= CORBA::Any   _tao_any,
Dynamic::ExceptionList   _tao_elem
 

Definition at line 912 of file DynamicC.cpp.

References Dynamic::ExceptionList::_tao_any_destructor, ACE_OutputCDR::begin, and TAO_ENCAP_BYTE_ORDER.

00916 {
00917   TAO_OutputCDR stream;
00918   
00919   if (stream << *_tao_elem)
00920     {
00921       _tao_any._tao_replace (
00922           Dynamic::_tc_ExceptionList,
00923           TAO_ENCAP_BYTE_ORDER,
00924           stream.begin (),
00925           1,
00926           _tao_elem,
00927           Dynamic::ExceptionList::_tao_any_destructor
00928         );
00929     }
00930 }

void operator<<= CORBA::Any   _tao_any,
const Dynamic::ExceptionList   _tao_elem
 

Definition at line 894 of file DynamicC.cpp.

References ACE_OutputCDR::begin, and TAO_ENCAP_BYTE_ORDER.

00898 {
00899   TAO_OutputCDR stream;
00900   
00901   if (stream << _tao_elem)
00902     {
00903       _tao_any._tao_replace (
00904           Dynamic::_tc_ExceptionList,
00905           TAO_ENCAP_BYTE_ORDER,
00906           stream.begin ()
00907         );
00908     }
00909 }

void operator<<= CORBA::Any   _tao_any,
Dynamic::ParameterList   _tao_elem
 

Definition at line 784 of file DynamicC.cpp.

References Dynamic::ParameterList::_tao_any_destructor, ACE_OutputCDR::begin, and TAO_ENCAP_BYTE_ORDER.

00788 {
00789   TAO_OutputCDR stream;
00790   
00791   if (stream << *_tao_elem)
00792     {
00793       _tao_any._tao_replace (
00794           Dynamic::_tc_ParameterList,
00795           TAO_ENCAP_BYTE_ORDER,
00796           stream.begin (),
00797           1,
00798           _tao_elem,
00799           Dynamic::ParameterList::_tao_any_destructor
00800         );
00801     }
00802 }

void operator<<= CORBA::Any   _tao_any,
const Dynamic::ParameterList   _tao_elem
 

Definition at line 766 of file DynamicC.cpp.

References ACE_OutputCDR::begin, and TAO_ENCAP_BYTE_ORDER.

00770 {
00771   TAO_OutputCDR stream;
00772   
00773   if (stream << _tao_elem)
00774     {
00775       _tao_any._tao_replace (
00776           Dynamic::_tc_ParameterList,
00777           TAO_ENCAP_BYTE_ORDER,
00778           stream.begin ()
00779         );
00780     }
00781 }

void operator<<= CORBA::Any   _tao_any,
Dynamic::Parameter   _tao_elem
 

Definition at line 656 of file DynamicC.cpp.

References Dynamic::Parameter::_tao_any_destructor, ACE_OutputCDR::begin, and TAO_ENCAP_BYTE_ORDER.

00660 {
00661   TAO_OutputCDR stream;
00662   
00663   if (stream << *_tao_elem)
00664     {
00665       _tao_any._tao_replace (
00666           Dynamic::_tc_Parameter,
00667           TAO_ENCAP_BYTE_ORDER,
00668           stream.begin (),
00669           1,
00670           _tao_elem,
00671           Dynamic::Parameter::_tao_any_destructor
00672         );
00673     }
00674 }

TAO_NAMESPACE_END void operator<<= CORBA::Any   _tao_any,
const Dynamic::Parameter   _tao_elem
 

Definition at line 638 of file DynamicC.cpp.

References ACE_OutputCDR::begin, and TAO_ENCAP_BYTE_ORDER.

00642 {
00643   TAO_OutputCDR stream;
00644   
00645   if (stream << _tao_elem)
00646     {
00647       _tao_any._tao_replace (
00648           Dynamic::_tc_Parameter,
00649           TAO_ENCAP_BYTE_ORDER,
00650           stream.begin ()
00651         );
00652     }
00653 }

CORBA::Boolean operator>> TAO_InputCDR   strm,
Dynamic::ExceptionList   _tao_sequence
 

Definition at line 1082 of file DynamicC.cpp.

References TAO_Unbounded_Base_Sequence::length, and ACE_InputCDR::length.

01086 {
01087   CORBA::ULong _tao_seq_len;
01088   if (strm >> _tao_seq_len)
01089   {
01090     // Add a check to the length of the sequence
01091     // to make sure it does not exceed the length
01092     // of the stream. (See bug 1159.)
01093     if (_tao_seq_len > strm.length())
01094       return 0;
01095     // set the length of the sequence
01096     _tao_sequence.length (_tao_seq_len);
01097     // If length is 0 we return true.
01098     if (0 >= _tao_seq_len) 
01099       return 1;
01100     // retrieve all the elements
01101     CORBA::Boolean _tao_marshal_flag = 1;
01102     for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
01103     {
01104       _tao_marshal_flag = (strm >> _tao_sequence[i].out ());
01105     }
01106     return _tao_marshal_flag;
01107   }
01108   return 0; // error
01109 }

CORBA::Boolean operator>> TAO_InputCDR   strm,
Dynamic::ParameterList   _tao_sequence
 

Definition at line 1035 of file DynamicC.cpp.

References TAO_Unbounded_Base_Sequence::length, and ACE_InputCDR::length.

01039 {
01040   CORBA::ULong _tao_seq_len;
01041   if (strm >> _tao_seq_len)
01042   {
01043     // Add a check to the length of the sequence
01044     // to make sure it does not exceed the length
01045     // of the stream. (See bug 1159.)
01046     if (_tao_seq_len > strm.length())
01047       return 0;
01048     // set the length of the sequence
01049     _tao_sequence.length (_tao_seq_len);
01050     // If length is 0 we return true.
01051     if (0 >= _tao_seq_len) 
01052       return 1;
01053     // retrieve all the elements
01054     CORBA::Boolean _tao_marshal_flag = 1;
01055     for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
01056     {
01057       _tao_marshal_flag = (strm >> _tao_sequence[i]);
01058     }
01059     return _tao_marshal_flag;
01060   }
01061   return 0; // error
01062 }

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

Definition at line 945 of file DynamicC.cpp.

References Dynamic::ExceptionList::_tao_any_destructor, ACE_CATCHANY, ACE_ENDTRY, ACE_ENV_ARG_PARAMETER, ACE_NEW_RETURN, ACE_TRY_CHECK, and ACE_TRY_NEW_ENV.

00949 {
00950   _tao_elem = 0;
00951   
00952   ACE_TRY_NEW_ENV
00953   {
00954     CORBA::TypeCode_var type = _tao_any.type ();
00955     
00956     CORBA::Boolean result =
00957       type->equivalent (
00958           Dynamic::_tc_ExceptionList
00959           ACE_ENV_ARG_PARAMETER
00960         );
00961     ACE_TRY_CHECK;
00962     
00963     if (!result)
00964       {
00965         return 0; // not equivalent
00966       }
00967     
00968     if (_tao_any.any_owns_data ())
00969       {
00970         _tao_elem = ACE_static_cast(
00971             const Dynamic::ExceptionList*,
00972             _tao_any.value ()
00973           );
00974         
00975         return 1;
00976       }
00977     else
00978       {
00979         Dynamic::ExceptionList *tmp = 0;
00980         ACE_NEW_RETURN (
00981             tmp,
00982             Dynamic::ExceptionList,
00983             0
00984           );
00985         
00986         TAO_InputCDR stream (
00987             _tao_any._tao_get_cdr (),
00988             _tao_any._tao_byte_order ()
00989           );
00990         
00991         if (stream >> *tmp)
00992           {
00993             ((CORBA::Any *)&_tao_any)->_tao_replace (
00994                 Dynamic::_tc_ExceptionList,
00995                 1,
00996                 ACE_static_cast (void *, tmp),
00997                 Dynamic::ExceptionList::_tao_any_destructor
00998               );
00999             
01000             _tao_elem = tmp;
01001             return 1;
01002           }
01003         else
01004           {
01005             delete tmp;
01006           }
01007       }
01008   }
01009   ACE_CATCHANY
01010   {
01011   }
01012   ACE_ENDTRY;
01013   
01014   return 0;
01015 }

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

Definition at line 933 of file DynamicC.cpp.

00937 {
00938   return _tao_any >>= ACE_const_cast(
00939       const Dynamic::ExceptionList*&,
00940       _tao_elem
00941     );
00942 }

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

Definition at line 817 of file DynamicC.cpp.

References Dynamic::ParameterList::_tao_any_destructor, ACE_CATCHANY, ACE_ENDTRY, ACE_ENV_ARG_PARAMETER, ACE_NEW_RETURN, ACE_TRY_CHECK, and ACE_TRY_NEW_ENV.

00821 {
00822   _tao_elem = 0;
00823   
00824   ACE_TRY_NEW_ENV
00825   {
00826     CORBA::TypeCode_var type = _tao_any.type ();
00827     
00828     CORBA::Boolean result =
00829       type->equivalent (
00830           Dynamic::_tc_ParameterList
00831           ACE_ENV_ARG_PARAMETER
00832         );
00833     ACE_TRY_CHECK;
00834     
00835     if (!result)
00836       {
00837         return 0; // not equivalent
00838       }
00839     
00840     if (_tao_any.any_owns_data ())
00841       {
00842         _tao_elem = ACE_static_cast(
00843             const Dynamic::ParameterList*,
00844             _tao_any.value ()
00845           );
00846         
00847         return 1;
00848       }
00849     else
00850       {
00851         Dynamic::ParameterList *tmp = 0;
00852         ACE_NEW_RETURN (
00853             tmp,
00854             Dynamic::ParameterList,
00855             0
00856           );
00857         
00858         TAO_InputCDR stream (
00859             _tao_any._tao_get_cdr (),
00860             _tao_any._tao_byte_order ()
00861           );
00862         
00863         if (stream >> *tmp)
00864           {
00865             ((CORBA::Any *)&_tao_any)->_tao_replace (
00866                 Dynamic::_tc_ParameterList,
00867                 1,
00868                 ACE_static_cast (void *, tmp),
00869                 Dynamic::ParameterList::_tao_any_destructor
00870               );
00871             
00872             _tao_elem = tmp;
00873             return 1;
00874           }
00875         else
00876           {
00877             delete tmp;
00878           }
00879       }
00880   }
00881   ACE_CATCHANY
00882   {
00883   }
00884   ACE_ENDTRY;
00885   
00886   return 0;
00887 }

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

Definition at line 805 of file DynamicC.cpp.

00809 {
00810   return _tao_any >>= ACE_const_cast(
00811       const Dynamic::ParameterList*&,
00812       _tao_elem
00813     );
00814 }

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

Definition at line 689 of file DynamicC.cpp.

References Dynamic::Parameter::_tao_any_destructor, ACE_CATCHANY, ACE_ENDTRY, ACE_ENV_ARG_PARAMETER, ACE_NEW_RETURN, ACE_TRY_CHECK, and ACE_TRY_NEW_ENV.

00693 {
00694   _tao_elem = 0;
00695   
00696   ACE_TRY_NEW_ENV
00697   {
00698     CORBA::TypeCode_var type = _tao_any.type ();
00699     
00700     CORBA::Boolean result =
00701       type->equivalent (
00702           Dynamic::_tc_Parameter
00703           ACE_ENV_ARG_PARAMETER
00704         );
00705     ACE_TRY_CHECK;
00706     
00707     if (result == 0)
00708       {
00709         return 0; // not equivalent
00710       }
00711     
00712     if (_tao_any.any_owns_data ())
00713       {
00714         _tao_elem = ACE_static_cast (
00715             const Dynamic::Parameter*,
00716             _tao_any.value ()
00717           );
00718         
00719         return 1;
00720       }
00721     else
00722       {
00723         Dynamic::Parameter *tmp;
00724         ACE_NEW_RETURN (
00725             tmp,
00726             Dynamic::Parameter,
00727             0
00728           );
00729         
00730         TAO_InputCDR stream (
00731             _tao_any._tao_get_cdr (),
00732             _tao_any._tao_byte_order ()
00733           );
00734         
00735         if (stream >> *tmp)
00736           {
00737             ((CORBA::Any *)&_tao_any)->_tao_replace (
00738                 Dynamic::_tc_Parameter,
00739                 1,
00740                 ACE_static_cast (void *, tmp),
00741                 Dynamic::Parameter::_tao_any_destructor
00742               );
00743             
00744             _tao_elem = tmp;
00745             return 1;
00746           }
00747         else
00748           {
00749             delete tmp;
00750           }
00751       }
00752   }
00753   ACE_CATCHANY
00754   {
00755   }
00756   ACE_ENDTRY;
00757   
00758   return 0;
00759 }

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

Definition at line 677 of file DynamicC.cpp.

00681 {
00682   return _tao_any >>= ACE_const_cast (
00683       const Dynamic::Parameter *&,
00684       _tao_elem
00685     );
00686 }


Variable Documentation

TAO_NAMESPACE_END const CORBA::Long _oc_Dynamic_ContextList[] [static]
 

Definition at line 313 of file DynamicC.cpp.

const CORBA::Long _oc_Dynamic_ExceptionList[] [static]
 

Definition at line 522 of file DynamicC.cpp.

const CORBA::Long _oc_Dynamic_Parameter[] [static]
 

Definition at line 44 of file DynamicC.cpp.

const CORBA::Long _oc_Dynamic_ParameterList[] [static]
 

Definition at line 218 of file DynamicC.cpp.

TAO_NAMESPACE_END const CORBA::Long _oc_Dynamic_RequestContext[] [static]
 

Definition at line 577 of file DynamicC.cpp.

TAO_NAMESPACE_END const CORBA::Long _oc_Dynamic_TypeCode[] [static]
 

Initial value:

{
  TAO_ENCAP_BYTE_ORDER, 
  25,
  ACE_NTOHL (0x49444c3a), 
  ACE_NTOHL (0x44796e61), 
  ACE_NTOHL (0x6d69632f), 
  ACE_NTOHL (0x54797065), 
  ACE_NTOHL (0x436f6465), 
  ACE_NTOHL (0x3a312e30), 
  ACE_NTOHL (0x0),  
  9,
  ACE_NTOHL (0x54797065), 
  ACE_NTOHL (0x436f6465), 
  ACE_NTOHL (0x0),  
  CORBA::tk_TypeCode,

}

Definition at line 367 of file DynamicC.cpp.


Generated on Mon Jun 16 14:05:30 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002