summaryrefslogtreecommitdiff
path: root/TAO/tao/DynamicC.cpp
diff options
context:
space:
mode:
authordoccvs <doccvs@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-19 22:04:46 +0000
committerdoccvs <doccvs@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-19 22:04:46 +0000
commit04b9a08c7b1da0f9698fe8b3ef2dfd1f07237fa4 (patch)
treea8a811edf27f04a30be899a6faecd3ba398855f5 /TAO/tao/DynamicC.cpp
parent9a8d796e912409800b4cb0258708b7472a0dc749 (diff)
downloadATCD-04b9a08c7b1da0f9698fe8b3ef2dfd1f07237fa4.tar.gz
ChangeLogTag: Thu Oct 19 14:30:59 2000 Priyanka Gontla <pgontla@ece.uci.edu>
Diffstat (limited to 'TAO/tao/DynamicC.cpp')
-rw-r--r--TAO/tao/DynamicC.cpp425
1 files changed, 43 insertions, 382 deletions
diff --git a/TAO/tao/DynamicC.cpp b/TAO/tao/DynamicC.cpp
index 6e8e06ffbbb..51db6751d3d 100644
--- a/TAO/tao/DynamicC.cpp
+++ b/TAO/tao/DynamicC.cpp
@@ -1,24 +1,32 @@
-/* -*- C++ -*- $Id$ */
-
-// ****** Code generated by the The ACE ORB (TAO) IDL Compiler *******
-// TAO and the TAO IDL Compiler have been developed by the Center for
-// Distributed Object Computing at Washington University, St. Louis.
+// -*- C++ -*-
+//
+// $Id$
+
+// **** Code generated by the The ACE ORB (TAO) IDL Compiler ****
+// TAO and the TAO IDL Compiler have been developed by:
+// Center for Distributed Object Computing
+// Washington University
+// St. Louis, MO
+// USA
+// http://www.cs.wustl.edu/~schmidt/doc-center.html
+// and
+// Distributed Object Computing Laboratory
+// University of California at Irvine
+// Irvine, CA
+// USA
+// http://doc.ece.uci.edu/
//
// Information about TAO is available at:
-// http://www.cs.wustl.edu/~schmidt/TAO.html
+// http://www.cs.wustl.edu/~schmidt/TAO.html
#include "DynamicC.h"
-#if (TAO_HAS_INTERCEPTORS == 1)
-// Added
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-#include "tao/ORB.h"
-#include "tao/corba.h"
+
#if !defined (__ACE_INLINE__)
#include "DynamicC.i"
#endif /* !defined INLINE */
+#include "tao/StringSeq.h"
+
static const CORBA::Long _oc_Dynamic_ParameterMode[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
@@ -199,65 +207,23 @@ TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
TAO_NAMESPACE_BEGIN (Dynamic)
TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ParameterList, &_tc_TAO_tc_Dynamic_ParameterList)
TAO_NAMESPACE_END
-
-#if !defined (_DYNAMIC_CONTEXTLIST_CS_)
-#define _DYNAMIC_CONTEXTLIST_CS_
-
-// *************************************************************
-// Dynamic::ContextList
-// *************************************************************
-
-Dynamic::ContextList::ContextList (void)
-{}
-Dynamic::ContextList::ContextList (CORBA::ULong max) // uses max size
- :
-#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
- TAO_Unbounded_String_Sequence
-#else /* TAO_USE_SEQUENCE_TEMPLATES */
- TAO_Unbounded_String_Sequence
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
- (max)
-{}
-Dynamic::ContextList::ContextList (CORBA::ULong max, CORBA::ULong length, char * *buffer, CORBA::Boolean release)
- :
-#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
- TAO_Unbounded_String_Sequence
-#else /* TAO_USE_SEQUENCE_TEMPLATES */
- TAO_Unbounded_String_Sequence
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
- (max, length, buffer, release)
-{}
-Dynamic::ContextList::ContextList (const ContextList &seq) // copy ctor
- :
-#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
- TAO_Unbounded_String_Sequence
-#else /* TAO_USE_SEQUENCE_TEMPLATES */
- TAO_Unbounded_String_Sequence
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
- (seq)
-{}
-Dynamic::ContextList::~ContextList (void) // dtor
-{}
-void Dynamic::ContextList::_tao_any_destructor (void *x)
-{
- ContextList *tmp = ACE_static_cast (ContextList*,x);
- delete tmp;
-}
-
-
-#endif /* end #if !defined */
-
static const CORBA::Long _oc_Dynamic_ContextList[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
28, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x44796e61), ACE_NTOHL (0x6d69632f), ACE_NTOHL (0x436f6e74), ACE_NTOHL (0x6578744c), ACE_NTOHL (0x6973743a), ACE_NTOHL (0x312e3000), // repository ID = IDL:Dynamic/ContextList:1.0
12, ACE_NTOHL (0x436f6e74), ACE_NTOHL (0x6578744c), ACE_NTOHL (0x69737400), // name = ContextList
- CORBA::tk_sequence, // typecode kind
- 16, // encapsulation length
+ CORBA::tk_alias, // typecode kind for typedefs
+ 80, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
- CORBA::tk_string,
- 0U, // string length
- 0U,
+ 32, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f5374), ACE_NTOHL (0x72696e67), ACE_NTOHL (0x5365713a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/StringSeq:1.0
+ 10, ACE_NTOHL (0x53747269), ACE_NTOHL (0x6e675365), ACE_NTOHL (0x71000000), // name = StringSeq
+ CORBA::tk_sequence, // typecode kind
+ 16, // encapsulation length
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ CORBA::tk_string,
+ 0U, // string length
+ 0U,
+
};
static CORBA::TypeCode _tc_TAO_tc_Dynamic_ContextList (CORBA::tk_alias, sizeof (_oc_Dynamic_ContextList), (char *) &_oc_Dynamic_ContextList, 0, sizeof (Dynamic::ContextList));
@@ -415,65 +381,23 @@ TAO_NAMESPACE_TYPE (CORBA::TypeCode_ptr)
TAO_NAMESPACE_BEGIN (Dynamic)
TAO_NAMESPACE_DEFINE (CORBA::TypeCode_ptr, _tc_ExceptionList, &_tc_TAO_tc_Dynamic_ExceptionList)
TAO_NAMESPACE_END
-
-#if !defined (_DYNAMIC_REQUESTCONTEXT_CS_)
-#define _DYNAMIC_REQUESTCONTEXT_CS_
-
-// *************************************************************
-// Dynamic::RequestContext
-// *************************************************************
-
-Dynamic::RequestContext::RequestContext (void)
-{}
-Dynamic::RequestContext::RequestContext (CORBA::ULong max) // uses max size
- :
-#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
- TAO_Unbounded_String_Sequence
-#else /* TAO_USE_SEQUENCE_TEMPLATES */
- TAO_Unbounded_String_Sequence
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
- (max)
-{}
-Dynamic::RequestContext::RequestContext (CORBA::ULong max, CORBA::ULong length, char * *buffer, CORBA::Boolean release)
- :
-#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
- TAO_Unbounded_String_Sequence
-#else /* TAO_USE_SEQUENCE_TEMPLATES */
- TAO_Unbounded_String_Sequence
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
- (max, length, buffer, release)
-{}
-Dynamic::RequestContext::RequestContext (const RequestContext &seq) // copy ctor
- :
-#if !defined (TAO_USE_SEQUENCE_TEMPLATES)
- TAO_Unbounded_String_Sequence
-#else /* TAO_USE_SEQUENCE_TEMPLATES */
- TAO_Unbounded_String_Sequence
-#endif /* !TAO_USE_SEQUENCE_TEMPLATES */
- (seq)
-{}
-Dynamic::RequestContext::~RequestContext (void) // dtor
-{}
-void Dynamic::RequestContext::_tao_any_destructor (void *x)
-{
- RequestContext *tmp = ACE_static_cast (RequestContext*,x);
- delete tmp;
-}
-
-
-#endif /* end #if !defined */
-
static const CORBA::Long _oc_Dynamic_RequestContext[] =
{
TAO_ENCAP_BYTE_ORDER, // byte order
31, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x44796e61), ACE_NTOHL (0x6d69632f), ACE_NTOHL (0x52657175), ACE_NTOHL (0x65737443), ACE_NTOHL (0x6f6e7465), ACE_NTOHL (0x78743a31), ACE_NTOHL (0x2e300000), // repository ID = IDL:Dynamic/RequestContext:1.0
15, ACE_NTOHL (0x52657175), ACE_NTOHL (0x65737443), ACE_NTOHL (0x6f6e7465), ACE_NTOHL (0x78740000), // name = RequestContext
- CORBA::tk_sequence, // typecode kind
- 16, // encapsulation length
+ CORBA::tk_alias, // typecode kind for typedefs
+ 80, // encapsulation length
TAO_ENCAP_BYTE_ORDER, // byte order
- CORBA::tk_string,
- 0U, // string length
- 0U,
+ 32, ACE_NTOHL (0x49444c3a), ACE_NTOHL (0x6f6d672e), ACE_NTOHL (0x6f72672f), ACE_NTOHL (0x434f5242), ACE_NTOHL (0x412f5374), ACE_NTOHL (0x72696e67), ACE_NTOHL (0x5365713a), ACE_NTOHL (0x312e3000), // repository ID = IDL:omg.org/CORBA/StringSeq:1.0
+ 10, ACE_NTOHL (0x53747269), ACE_NTOHL (0x6e675365), ACE_NTOHL (0x71000000), // name = StringSeq
+ CORBA::tk_sequence, // typecode kind
+ 16, // encapsulation length
+ TAO_ENCAP_BYTE_ORDER, // byte order
+ CORBA::tk_string,
+ 0U, // string length
+ 0U,
+
};
static CORBA::TypeCode _tc_TAO_tc_Dynamic_RequestContext (CORBA::tk_alias, sizeof (_oc_Dynamic_RequestContext), (char *) &_oc_Dynamic_RequestContext, 0, sizeof (Dynamic::RequestContext));
@@ -691,95 +615,6 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const Dynamic::Parameter
void operator<<= (
CORBA::Any &_tao_any,
- const Dynamic::ContextList &_tao_elem
- ) // copying
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- Dynamic::_tc_ContextList,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void operator<<= (CORBA::Any &_tao_any, Dynamic::ContextList *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- Dynamic::_tc_ContextList,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- Dynamic::ContextList::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, Dynamic::ContextList *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(
- const Dynamic::ContextList*&,
- _tao_elem
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const Dynamic::ContextList *&_tao_elem)
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (Dynamic::_tc_ContextList, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = ACE_static_cast(
- const Dynamic::ContextList*,
- _tao_any.value ()
- );
- return 1;
- }
- else
- {
- Dynamic::ContextList *tmp;
- ACE_NEW_RETURN (tmp, Dynamic::ContextList, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- Dynamic::_tc_ContextList,
- 1,
- ACE_static_cast (void *, tmp),
- Dynamic::ContextList::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
-void operator<<= (
- CORBA::Any &_tao_any,
const Dynamic::ExceptionList &_tao_elem
) // copying
{
@@ -867,95 +702,6 @@ CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const Dynamic::Exception
return 0;
}
-void operator<<= (
- CORBA::Any &_tao_any,
- const Dynamic::RequestContext &_tao_elem
- ) // copying
-{
- TAO_OutputCDR stream;
- if (stream << _tao_elem)
- {
- _tao_any._tao_replace (
- Dynamic::_tc_RequestContext,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin ()
- );
- }
-}
-
-void operator<<= (CORBA::Any &_tao_any, Dynamic::RequestContext *_tao_elem) // non copying
-{
- TAO_OutputCDR stream;
- stream << *_tao_elem;
- _tao_any._tao_replace (
- Dynamic::_tc_RequestContext,
- TAO_ENCAP_BYTE_ORDER,
- stream.begin (),
- 1,
- _tao_elem,
- Dynamic::RequestContext::_tao_any_destructor
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, Dynamic::RequestContext *&_tao_elem)
-{
- return _tao_any >>= ACE_const_cast(
- const Dynamic::RequestContext*&,
- _tao_elem
- );
-}
-
-CORBA::Boolean operator>>= (const CORBA::Any &_tao_any, const Dynamic::RequestContext *&_tao_elem)
-{
- _tao_elem = 0;
- ACE_TRY_NEW_ENV
- {
- CORBA::TypeCode_var type = _tao_any.type ();
- if (!type->equivalent (Dynamic::_tc_RequestContext, ACE_TRY_ENV)) // not equal
- {
- return 0;
- }
- ACE_TRY_CHECK;
- if (_tao_any.any_owns_data ())
- {
- _tao_elem = ACE_static_cast(
- const Dynamic::RequestContext*,
- _tao_any.value ()
- );
- return 1;
- }
- else
- {
- Dynamic::RequestContext *tmp;
- ACE_NEW_RETURN (tmp, Dynamic::RequestContext, 0);
- TAO_InputCDR stream (
- _tao_any._tao_get_cdr (),
- _tao_any._tao_byte_order ()
- );
- if (stream >> *tmp)
- {
- ((CORBA::Any *)&_tao_any)->_tao_replace (
- Dynamic::_tc_RequestContext,
- 1,
- ACE_static_cast (void *, tmp),
- Dynamic::RequestContext::_tao_any_destructor
- );
- _tao_elem = tmp;
- return 1;
- }
- else
- {
- delete tmp;
- }
- }
- }
- ACE_CATCHANY
- {
- }
- ACE_ENDTRY;
- return 0;
-}
-
CORBA::Boolean operator<< (
TAO_OutputCDR &strm,
const Dynamic::ParameterList &_tao_sequence
@@ -1000,48 +746,6 @@ CORBA::Boolean operator>> (
CORBA::Boolean operator<< (
TAO_OutputCDR &strm,
- const Dynamic::ContextList &_tao_sequence
- )
-{
- if (strm << _tao_sequence.length ())
- {
- // encode all elements
- CORBA::Boolean _tao_marshal_flag = 1;
- for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
- {
- _tao_marshal_flag = (strm << _tao_sequence[i].in ());
- }
- return _tao_marshal_flag;
- }
- return 0; // error
-}
-
-CORBA::Boolean operator>> (
- TAO_InputCDR &strm,
- Dynamic::ContextList &_tao_sequence
- )
-{
- CORBA::ULong _tao_seq_len;
- if (strm >> _tao_seq_len)
- {
- // set the length of the sequence
- _tao_sequence.length (_tao_seq_len);
- // If length is 0 we return true.
- if (0 >= _tao_seq_len)
- return 1;
- // retrieve all the elements
- CORBA::Boolean _tao_marshal_flag = 1;
- for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
- {
- _tao_marshal_flag = (strm >> _tao_sequence[i].out ());
- }
- return _tao_marshal_flag;
- }
- return 0; // error
-}
-
-CORBA::Boolean operator<< (
- TAO_OutputCDR &strm,
const Dynamic::ExceptionList &_tao_sequence
)
{
@@ -1082,46 +786,3 @@ CORBA::Boolean operator>> (
return 0; // error
}
-CORBA::Boolean operator<< (
- TAO_OutputCDR &strm,
- const Dynamic::RequestContext &_tao_sequence
- )
-{
- if (strm << _tao_sequence.length ())
- {
- // encode all elements
- CORBA::Boolean _tao_marshal_flag = 1;
- for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
- {
- _tao_marshal_flag = (strm << _tao_sequence[i].in ());
- }
- return _tao_marshal_flag;
- }
- return 0; // error
-}
-
-CORBA::Boolean operator>> (
- TAO_InputCDR &strm,
- Dynamic::RequestContext &_tao_sequence
- )
-{
- CORBA::ULong _tao_seq_len;
- if (strm >> _tao_seq_len)
- {
- // set the length of the sequence
- _tao_sequence.length (_tao_seq_len);
- // If length is 0 we return true.
- if (0 >= _tao_seq_len)
- return 1;
- // retrieve all the elements
- CORBA::Boolean _tao_marshal_flag = 1;
- for (CORBA::ULong i = 0; i < _tao_sequence.length () && _tao_marshal_flag; i++)
- {
- _tao_marshal_flag = (strm >> _tao_sequence[i].out ());
- }
- return _tao_marshal_flag;
- }
- return 0; // error
-}
-
-#endif /* TAO_HAS_INTERCEPTORS == 1 */