diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-08-18 06:48:26 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-08-18 06:48:26 +0000 |
commit | 5b76989b8f8ac06bd122ded6bdfdc73cbb2af8bf (patch) | |
tree | f93945426180dd369e5080d159b8267da300e17d | |
parent | 7f8b259bb70ce890303208e31c47469c3c1e8c8c (diff) | |
download | ATCD-5b76989b8f8ac06bd122ded6bdfdc73cbb2af8bf.tar.gz |
ChangeLogTag: Wed Aug 18 06:44:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
-rw-r--r-- | TAO/tao/PortableServer/Default_ORT.pidl | 51 | ||||
-rw-r--r-- | TAO/tao/PortableServer/Default_ORTC.cpp | 412 | ||||
-rw-r--r-- | TAO/tao/PortableServer/Default_ORTC.h | 257 | ||||
-rw-r--r-- | TAO/tao/PortableServer/Default_ORTC.i | 45 | ||||
-rw-r--r-- | TAO/tao/PortableServer/ObjectReferenceTemplate.cpp | 102 | ||||
-rw-r--r-- | TAO/tao/PortableServer/ObjectReferenceTemplate.h | 127 | ||||
-rw-r--r-- | TAO/tao/PortableServer/ObjectReferenceTemplate.inl | 9 |
7 files changed, 0 insertions, 1003 deletions
diff --git a/TAO/tao/PortableServer/Default_ORT.pidl b/TAO/tao/PortableServer/Default_ORT.pidl deleted file mode 100644 index 0817f88a146..00000000000 --- a/TAO/tao/PortableServer/Default_ORT.pidl +++ /dev/null @@ -1,51 +0,0 @@ -// -*- IDL -*- -/** - * @file Default_ORT.pidl - * - * $Id$ - * - * @brief Pre-compiled IDL source for the TAO_Default_ORT module. - * - * This file is used to generate Default_ORTC.{h,i,cpp}, using the following - * command: - * - * tao_idl.exe - * -o orig -Ge 1 -GT -Sc - * -I../.. - * -Wb,export_macro=TAO_PortableServer_Export \ - * -Wb,export_include="portableserver_export.h" \ - * -Wb,pre_include="ace/pre.h" - * -Wb,post_include="ace/post.h" - * Default_ORT.pidl - * - * and then: - * - * cp orig/Default_ORTC.{h,i,cpp} . - * patch < diffs/Default_ORT.diff - * - * The code left in Default_ORTC.{h,i,cpp} is - * ready for use. - * - * - * @note The diffs were generated using: - * - * rm diffs/Default_ORT.diff - * for i in Default_ORTC.{h,i,cpp}; do - * diff -wub orig/$i $i >> diffs/Default_ORT.diff - * done - */ - -#ifndef TAO_DEFAULT_ORT_PIDL -#define TAO_DEFAULT_ORT_PIDL - -#include "tao/ObjRefTemplate/ObjectReferenceTemplate.pidl" - -module TAO_Default_ORT -{ - valuetype ObjectReferenceTemplate - : PortableInterceptor::ObjectReferenceTemplate - { - }; -}; - -#endif /* TAO_DEFAULT_ORT_PIDL */ diff --git a/TAO/tao/PortableServer/Default_ORTC.cpp b/TAO/tao/PortableServer/Default_ORTC.cpp deleted file mode 100644 index 030e2282cb1..00000000000 --- a/TAO/tao/PortableServer/Default_ORTC.cpp +++ /dev/null @@ -1,412 +0,0 @@ -// -*- 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/ -// and -// Institute for Software Integrated Systems -// Vanderbilt University -// Nashville, TN -// USA -// http://www.isis.vanderbilt.edu/ -// -// Information about TAO is available at: -// http://www.cs.wustl.edu/~schmidt/TAO.html - -// TAO_IDL - Generated from -// be\be_codegen.cpp:323 - - -#include "Default_ORTC.h" -#include "tao/CDR.h" -#include "tao/Valuetype/ValueFactory.h" -#include "tao/Typecode.h" -#include "tao/Any_Impl_T.h" - -#if defined (__BORLANDC__) -#pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig -#endif /* __BORLANDC__ */ - -#if !defined (__ACE_INLINE__) -#include "Default_ORTC.i" -#endif /* !defined INLINE */ - -// TAO_IDL - Generated from -// be\be_visitor_arg_traits.cpp:64 - -// Arg traits specializations. -namespace TAO -{ -} - - -// TAO_IDL - Generated from -// be\be_visitor_typecode/typecode_defn.cpp:290 - -static const CORBA::Long _oc_TAO_Default_ORT_ObjectReferenceTemplate[] = -{ - TAO_ENCAP_BYTE_ORDER, // byte order - 48, - ACE_NTOHL (0x49444c3a), - ACE_NTOHL (0x54414f5f), - ACE_NTOHL (0x44656661), - ACE_NTOHL (0x756c745f), - ACE_NTOHL (0x4f52542f), - ACE_NTOHL (0x4f626a65), - ACE_NTOHL (0x63745265), - ACE_NTOHL (0x66657265), - ACE_NTOHL (0x6e636554), - ACE_NTOHL (0x656d706c), - ACE_NTOHL (0x6174653a), - ACE_NTOHL (0x312e3000), // repository ID = IDL:TAO_Default_ORT/ObjectReferenceTemplate:1.0 - 24, - ACE_NTOHL (0x4f626a65), - ACE_NTOHL (0x63745265), - ACE_NTOHL (0x66657265), - ACE_NTOHL (0x6e636554), - ACE_NTOHL (0x656d706c), - ACE_NTOHL (0x61746500), // name = ObjectReferenceTemplate - 0, // value modifier - CORBA::tk_null, // no stateful base valuetype - -0, // member count - }; - -static CORBA::TypeCode _tc_TAO_tc_TAO_Default_ORT_ObjectReferenceTemplate ( - CORBA::tk_value, - sizeof (_oc_TAO_Default_ORT_ObjectReferenceTemplate), - (char *) &_oc_TAO_Default_ORT_ObjectReferenceTemplate, - 0, - sizeof (TAO_Default_ORT::ObjectReferenceTemplate) - ); - -namespace TAO_Default_ORT -{ - ::CORBA::TypeCode_ptr _tc_ObjectReferenceTemplate = - &_tc_TAO_tc_TAO_Default_ORT_ObjectReferenceTemplate; -} - -// TAO_IDL - Generated from -// be\be_visitor_valuetype/valuetype_cs.cpp:66 - -ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION -void -TAO::Value_Traits<TAO_Default_ORT::ObjectReferenceTemplate>::tao_add_ref ( - TAO_Default_ORT::ObjectReferenceTemplate * p - ) -{ - CORBA::add_ref (p); -} - -ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION -void -TAO::Value_Traits<TAO_Default_ORT::ObjectReferenceTemplate>::tao_remove_ref ( - TAO_Default_ORT::ObjectReferenceTemplate * p - ) -{ - CORBA::remove_ref (p); -} - -ACE_TEMPLATE_CLASS_MEMBER_SPECIALIZATION -void -TAO::Value_Traits<TAO_Default_ORT::ObjectReferenceTemplate>::tao_release ( - TAO_Default_ORT::ObjectReferenceTemplate * p - ) -{ - CORBA::remove_ref (p); -} - -TAO_Default_ORT::ObjectReferenceTemplate * -TAO_Default_ORT::ObjectReferenceTemplate::_downcast (CORBA::ValueBase *v) -{ - if (v == 0) - { - return 0; - } - - return dynamic_cast< ::TAO_Default_ORT::ObjectReferenceTemplate * > (v); -} - -const char * -TAO_Default_ORT::ObjectReferenceTemplate::_tao_obv_repository_id (void) const -{ - return this->_tao_obv_static_repository_id (); -} - -void -TAO_Default_ORT::ObjectReferenceTemplate::_tao_any_destructor (void *_tao_void_pointer) -{ - ObjectReferenceTemplate *_tao_tmp_pointer = - ACE_static_cast ( - ObjectReferenceTemplate *, - _tao_void_pointer - ); - CORBA::remove_ref (_tao_tmp_pointer); -} - -CORBA::Boolean TAO_Default_ORT::ObjectReferenceTemplate::_tao_marshal_v (TAO_OutputCDR & strm) -{ - return this->_tao_marshal__TAO_Default_ORT_ObjectReferenceTemplate (strm); -} - -CORBA::Boolean TAO_Default_ORT::ObjectReferenceTemplate::_tao_unmarshal_v (TAO_InputCDR & strm) -{ - return this->_tao_unmarshal__TAO_Default_ORT_ObjectReferenceTemplate (strm); -} - -CORBA::Boolean TAO_Default_ORT::ObjectReferenceTemplate::_tao_unmarshal ( - TAO_InputCDR &strm, - ObjectReferenceTemplate *&new_object - ) -{ - CORBA::ValueBase *base = 0; - CORBA::ValueFactory_var factory; - CORBA::Boolean retval = - CORBA::ValueBase::_tao_unmarshal_pre ( - strm, - factory.out (), - base, - ObjectReferenceTemplate::_tao_obv_static_repository_id () - ); - - if (retval == 0) - { - return 0; - } - - if (factory.in () != 0) - { - base = factory->create_for_unmarshal (); - - if (base == 0) - { - return 0; // %! except.? - } - - retval = base->_tao_unmarshal_v (strm); - - if (retval == 0) - { - return 0; - } - } - - // Now base must be null or point to the unmarshaled object. - // Align the pointer to the right subobject. - new_object = ObjectReferenceTemplate::_downcast (base); - return retval; -} - -// TAO_IDL - Generated from -// be\be_visitor_valuetype/valuetype_obv_cs.cpp:58 - -OBV_TAO_Default_ORT::ObjectReferenceTemplate::ObjectReferenceTemplate (void) -{} - -OBV_TAO_Default_ORT::ObjectReferenceTemplate::~ObjectReferenceTemplate (void) -{} - -CORBA::Boolean -OBV_TAO_Default_ORT::ObjectReferenceTemplate::_tao_marshal__TAO_Default_ORT_ObjectReferenceTemplate (TAO_OutputCDR &strm) -{ - return _tao_marshal_state (strm); -} - -CORBA::Boolean -OBV_TAO_Default_ORT::ObjectReferenceTemplate::_tao_unmarshal__TAO_Default_ORT_ObjectReferenceTemplate (TAO_InputCDR &strm) -{ - return _tao_unmarshal_state (strm); -} - -// TAO_IDL - Generated from -// be\be_visitor_valuetype/any_op_cs.cpp:57 - - - -template<> -CORBA::Boolean -TAO::Any_Impl_T<TAO_Default_ORT::ObjectReferenceTemplate>::to_value ( - CORBA::ValueBase *&_tao_elem - ) const -{ - CORBA::add_ref (this->value_); - _tao_elem = this->value_; - return 1; -} -// Copying insertion. -void -operator<<= ( - CORBA::Any &_tao_any, - TAO_Default_ORT::ObjectReferenceTemplate *_tao_elem - ) -{ - CORBA::add_ref (_tao_elem); - _tao_any <<= &_tao_elem; -} - -// Non-copying insertion. -void -operator<<= ( - CORBA::Any &_tao_any, - TAO_Default_ORT::ObjectReferenceTemplate **_tao_elem - ) -{ - TAO::Any_Impl_T<TAO_Default_ORT::ObjectReferenceTemplate>::insert ( - _tao_any, - TAO_Default_ORT::ObjectReferenceTemplate::_tao_any_destructor, - TAO_Default_ORT::_tc_ObjectReferenceTemplate, - *_tao_elem - ); -} - -CORBA::Boolean -operator>>= ( - const CORBA::Any &_tao_any, - TAO_Default_ORT::ObjectReferenceTemplate *&_tao_elem - ) -{ - return - TAO::Any_Impl_T<TAO_Default_ORT::ObjectReferenceTemplate>::extract ( - _tao_any, - TAO_Default_ORT::ObjectReferenceTemplate::_tao_any_destructor, - TAO_Default_ORT::_tc_ObjectReferenceTemplate, - _tao_elem - ); -} - - - -// TAO_IDL - Generated from -// be\be_valuetype.cpp:490 - -void -CORBA::add_ref (TAO_Default_ORT::ObjectReferenceTemplate * vt) -{ - if (vt != 0) - { - vt->_add_ref (); - } -} - -void -CORBA::remove_ref (TAO_Default_ORT::ObjectReferenceTemplate * vt) -{ - if (vt != 0) - { - vt->_remove_ref (); - } -} - -// TAO_IDL - Generated from -// be\be_visitor_valuetype/cdr_op_cs.cpp:73 - -CORBA::Boolean -operator<< ( - TAO_OutputCDR &strm, - const TAO_Default_ORT::ObjectReferenceTemplate *_tao_valuetype - ) -{ - return - CORBA::ValueBase::_tao_marshal ( - strm, - ACE_const_cast ( - TAO_Default_ORT::ObjectReferenceTemplate *, - _tao_valuetype - ), - (ptrdiff_t) &TAO_Default_ORT::ObjectReferenceTemplate::_downcast - ); -} - -CORBA::Boolean -operator>> ( - TAO_InputCDR &strm, - TAO_Default_ORT::ObjectReferenceTemplate *&_tao_valuetype - ) -{ - return TAO_Default_ORT::ObjectReferenceTemplate::_tao_unmarshal (strm, _tao_valuetype); -} - -// TAO_IDL - Generated from -// be\be_visitor_valuetype/marshal_cs.cpp:44 - -CORBA::Boolean -OBV_TAO_Default_ORT::ObjectReferenceTemplate::_tao_marshal_state (TAO_OutputCDR &) -{ - return ( - 1 - ); -} - -CORBA::Boolean -OBV_TAO_Default_ORT::ObjectReferenceTemplate::_tao_unmarshal_state (TAO_InputCDR &) -{ - return ( - 1 - ); -} - -// TAO_IDL - Generated from -// be\be_visitor_root/root.cpp:1628 - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - - template class - TAO::Value_Traits< - TAO_Default_ORT::ObjectReferenceTemplate - >; - - template class - TAO_Value_Var_T< - TAO_Default_ORT::ObjectReferenceTemplate - - >; - - template class - TAO_Value_Out_T< - TAO_Default_ORT::ObjectReferenceTemplate - - >; - - template class - TAO::Any_Impl_T< - TAO_Default_ORT::ObjectReferenceTemplate - >; - -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -# pragma instantiate \ - TAO::Value_Traits< \ - TAO_Default_ORT::ObjectReferenceTemplate \ - > - -# pragma instantiate \ - TAO_Value_Var_T< \ - TAO_Default_ORT::ObjectReferenceTemplate \ - - > - -# pragma instantiate \ - TAO_Value_Out_T< \ - TAO_Default_ORT::ObjectReferenceTemplate \ - - > - -# pragma instantiate \ - TAO::Any_Impl_T< \ - TAO_Default_ORT::ObjectReferenceTemplate \ - > - -#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - diff --git a/TAO/tao/PortableServer/Default_ORTC.h b/TAO/tao/PortableServer/Default_ORTC.h deleted file mode 100644 index 5ec169a3ec4..00000000000 --- a/TAO/tao/PortableServer/Default_ORTC.h +++ /dev/null @@ -1,257 +0,0 @@ -// -*- 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/ -// and -// Institute for Software Integrated Systems -// Vanderbilt University -// Nashville, TN -// USA -// http://www.isis.vanderbilt.edu/ -// -// Information about TAO is available at: -// http://www.cs.wustl.edu/~schmidt/TAO.html - -// TAO_IDL - Generated from -// be\be_codegen.cpp:171 - -#ifndef _TAO_IDL_ORIG_DEFAULT_ORTC_H_ -#define _TAO_IDL_ORIG_DEFAULT_ORTC_H_ - -#include /**/ "ace/pre.h" - -#include "tao/ObjRefTemplate/ObjectReferenceTemplateC.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "portableserver_export.h" - - -#if defined (TAO_EXPORT_MACRO) -#undef TAO_EXPORT_MACRO -#endif -#define TAO_EXPORT_MACRO TAO_PortableServer_Export - -#if defined (TAO_EXPORT_NESTED_CLASSES) -# if defined (TAO_EXPORT_NESTED_MACRO) -# undef TAO_EXPORT_NESTED_MACRO -# endif /* defined (TAO_EXPORT_NESTED_MACRO) */ -# define TAO_EXPORT_NESTED_MACRO TAO_PortableServer_Export -#endif /* TAO_EXPORT_NESTED_CLASSES */ - -#if defined(_MSC_VER) -#if (_MSC_VER >= 1200) -#pragma warning(push) -#endif /* _MSC_VER >= 1200 */ -#pragma warning(disable:4250) -#endif /* _MSC_VER */ - -#if defined (__BORLANDC__) -#pragma option push -w-rvl -w-rch -w-ccc -w-inl -#endif /* __BORLANDC__ */ - -// TAO_IDL - Generated from -// be\be_visitor_module/module_ch.cpp:48 - -namespace TAO_Default_ORT -{ - - // TAO_IDL - Generated from - // be\be_valuetype.cpp:527 - - - -#if !defined (_TAO_DEFAULT_ORT_OBJECTREFERENCETEMPLATE__VAR_OUT_CH_) -#define _TAO_DEFAULT_ORT_OBJECTREFERENCETEMPLATE__VAR_OUT_CH_ - - class ObjectReferenceTemplate; - typedef - TAO_Value_Var_T< - ObjectReferenceTemplate - > - ObjectReferenceTemplate_var; - - typedef - TAO_Value_Out_T< - ObjectReferenceTemplate - > - ObjectReferenceTemplate_out; - -#endif /* end #if !defined */ - - // TAO_IDL - Generated from - // be\be_visitor_valuetype/valuetype_ch.cpp:56 - -#if !defined (_TAO_DEFAULT_ORT_OBJECTREFERENCETEMPLATE_CH_) -#define _TAO_DEFAULT_ORT_OBJECTREFERENCETEMPLATE_CH_ - - class TAO_PortableServer_Export ObjectReferenceTemplate - : public virtual PortableInterceptor::ObjectReferenceTemplate - { - public: - typedef ObjectReferenceTemplate_var _var_type; - - static ObjectReferenceTemplate* _downcast (CORBA::ValueBase *); - - // (TAO extensions or internals) - static CORBA::Boolean _tao_unmarshal ( - TAO_InputCDR &, - ObjectReferenceTemplate *& - ); - - virtual const char* _tao_obv_repository_id (void) const; - - static const char* _tao_obv_static_repository_id (void); - - static void _tao_any_destructor (void *); - - // TAO_IDL - Generated from - // be\be_visitor_valuetype/valuetype_ch.cpp:250 - - protected: - ObjectReferenceTemplate (void); - - virtual ~ObjectReferenceTemplate (void); - - virtual CORBA::Boolean _tao_marshal_v (TAO_OutputCDR &); - virtual CORBA::Boolean _tao_unmarshal_v (TAO_InputCDR &); - - private: - ObjectReferenceTemplate (const ObjectReferenceTemplate &); - void operator= (const ObjectReferenceTemplate &); - - protected: - virtual CORBA::Boolean - _tao_marshal__TAO_Default_ORT_ObjectReferenceTemplate (TAO_OutputCDR &) = 0; - - virtual CORBA::Boolean - _tao_unmarshal__TAO_Default_ORT_ObjectReferenceTemplate (TAO_InputCDR &) = 0; - }; - -#endif /* end #if !defined */ - - // TAO_IDL - Generated from - // be\be_visitor_typecode/typecode_decl.cpp:44 - - TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ObjectReferenceTemplate; - -// TAO_IDL - Generated from -// be\be_visitor_module/module_ch.cpp:66 - -} // module TAO_Default_ORT - -// TAO_IDL - Generated from -// be\be_visitor_valuetype/obv_module.cpp:55 - -namespace OBV_TAO_Default_ORT -{ - - // TAO_IDL - Generated from - // be\be_visitor_valuetype/valuetype_obv_ch.cpp:58 - -#if !defined (_TAO_DEFAULT_ORT_OBJECTREFERENCETEMPLATE___OBV_CH_) -#define _TAO_DEFAULT_ORT_OBJECTREFERENCETEMPLATE___OBV_CH_ - - // OBV_ class - class TAO_PortableServer_Export ObjectReferenceTemplate - : public virtual TAO_Default_ORT::ObjectReferenceTemplate - { - public: - - protected: - ObjectReferenceTemplate (void); - virtual ~ObjectReferenceTemplate (void); - - protected: - virtual CORBA::Boolean - _tao_marshal__TAO_Default_ORT_ObjectReferenceTemplate (TAO_OutputCDR &); - - virtual CORBA::Boolean - _tao_unmarshal__TAO_Default_ORT_ObjectReferenceTemplate (TAO_InputCDR &); - - CORBA::Boolean _tao_marshal_state (TAO_OutputCDR &); - CORBA::Boolean _tao_unmarshal_state (TAO_InputCDR &); - - private: - }; - -#endif /* end #if !defined */ -} - -// TAO_IDL - Generated from -// be\be_visitor_traits.cpp:59 - -// Traits specializations. -namespace TAO -{ - -#if !defined (_TAO_DEFAULT_ORT_OBJECTREFERENCETEMPLATE__TRAITS_CH_) -#define _TAO_DEFAULT_ORT_OBJECTREFERENCETEMPLATE__TRAITS_CH_ - - ACE_TEMPLATE_SPECIALIZATION - struct TAO_PortableServer_Export Value_Traits<TAO_Default_ORT::ObjectReferenceTemplate> - { - static void tao_add_ref (TAO_Default_ORT::ObjectReferenceTemplate *); - static void tao_remove_ref (TAO_Default_ORT::ObjectReferenceTemplate *); - static void tao_release (TAO_Default_ORT::ObjectReferenceTemplate *); - }; - -#endif /* end #if !defined */ -} - -// TAO_IDL - Generated from -// be\be_visitor_valuetype/any_op_ch.cpp:54 - -TAO_PortableServer_Export void operator<<= (CORBA::Any &, TAO_Default_ORT::ObjectReferenceTemplate *); // copying -TAO_PortableServer_Export void operator<<= (CORBA::Any &, TAO_Default_ORT::ObjectReferenceTemplate **); // non-copying -TAO_PortableServer_Export CORBA::Boolean operator>>= (const CORBA::Any &, TAO_Default_ORT::ObjectReferenceTemplate *&); - -// TAO_IDL - Generated from -// be\be_valuetype.cpp:434 - -namespace CORBA -{ - TAO_NAMESPACE_STORAGE_CLASS void add_ref (TAO_Default_ORT::ObjectReferenceTemplate *); - TAO_NAMESPACE_STORAGE_CLASS void remove_ref (TAO_Default_ORT::ObjectReferenceTemplate *); -} - -// TAO_IDL - Generated from -// be\be_visitor_valuetype/cdr_op_ch.cpp:61 - -TAO_PortableServer_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const TAO_Default_ORT::ObjectReferenceTemplate *); -TAO_PortableServer_Export CORBA::Boolean operator>> (TAO_InputCDR &, TAO_Default_ORT::ObjectReferenceTemplate *&); - -// TAO_IDL - Generated from -// be\be_codegen.cpp:978 - -#if defined (__ACE_INLINE__) -#include "Default_ORTC.i" -#endif /* defined INLINE */ - -#if defined(_MSC_VER) && (_MSC_VER >= 1200) -#pragma warning(pop) -#endif /* _MSC_VER */ - -#if defined (__BORLANDC__) -#pragma option pop -#endif /* __BORLANDC__ */ - -#include /**/ "ace/post.h" - -#endif /* ifndef */ - diff --git a/TAO/tao/PortableServer/Default_ORTC.i b/TAO/tao/PortableServer/Default_ORTC.i deleted file mode 100644 index dcda17bcba3..00000000000 --- a/TAO/tao/PortableServer/Default_ORTC.i +++ /dev/null @@ -1,45 +0,0 @@ -// -*- 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/ -// and -// Institute for Software Integrated Systems -// Vanderbilt University -// Nashville, TN -// USA -// http://www.isis.vanderbilt.edu/ -// -// Information about TAO is available at: -// http://www.cs.wustl.edu/~schmidt/TAO.html - - -// TAO_IDL - Generated from -// be\be_visitor_valuetype/valuetype_ci.cpp:56 - -ACE_INLINE -TAO_Default_ORT::ObjectReferenceTemplate::ObjectReferenceTemplate (void) -{} - -ACE_INLINE -TAO_Default_ORT::ObjectReferenceTemplate::~ObjectReferenceTemplate (void) -{} - -ACE_INLINE const char* -TAO_Default_ORT::ObjectReferenceTemplate::_tao_obv_static_repository_id () -{ - return "IDL:TAO_Default_ORT/ObjectReferenceTemplate:1.0"; -} - diff --git a/TAO/tao/PortableServer/ObjectReferenceTemplate.cpp b/TAO/tao/PortableServer/ObjectReferenceTemplate.cpp deleted file mode 100644 index d34fb729be7..00000000000 --- a/TAO/tao/PortableServer/ObjectReferenceTemplate.cpp +++ /dev/null @@ -1,102 +0,0 @@ -#include "ObjectReferenceTemplate.h" -#include "POA.h" - -#include "tao/CORBA_String.h" -#include "tao/ORB_Constants.h" - - -ACE_RCSID (PortableServer, - ObjectReferenceTemplate, - "$Id$") - - -#if !defined (__ACE_INLINE__) -# include "ObjectReferenceTemplate.inl" -#endif /* ! __ACE_INLINE__ */ - - -TAO_ObjectReferenceTemplate::TAO_ObjectReferenceTemplate ( - const char *server_id, - const char *orb_id, - TAO_POA * poa) - : server_id_ (server_id), - orb_id_ (orb_id), - poa_ (poa) -{ -} - -TAO_ObjectReferenceTemplate::~TAO_ObjectReferenceTemplate (void) -{ -} - -char * -TAO_ObjectReferenceTemplate::server_id (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - return CORBA::string_dup (this->server_id_); -} - -char * -TAO_ObjectReferenceTemplate::orb_id (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - return CORBA::string_dup (this->orb_id_); -} - -PortableInterceptor::AdapterName * -TAO_ObjectReferenceTemplate::adapter_name (ACE_ENV_SINGLE_ARG_DECL) - ACE_THROW_SPEC ((CORBA::SystemException)) -{ - PortableInterceptor::AdapterName *adapter_name = 0; - - if (this->adapter_name_ != 0) - { - ACE_NEW_THROW_EX (adapter_name, - PortableInterceptor::AdapterName ( - *(this->adapter_name_)), - CORBA::NO_MEMORY ( - CORBA::SystemException::_tao_minor_code ( - TAO_DEFAULT_MINOR_CODE, - ENOMEM), - CORBA::COMPLETED_NO)); - ACE_CHECK_RETURN (0); - - return adapter_name; - } - else - { - if (this->poa_ == 0) - ACE_THROW_RETURN (CORBA::BAD_INV_ORDER (), 0); - - this->adapter_name_ = - this->poa_->adapter_name (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_CHECK_RETURN (0); - - ACE_NEW_THROW_EX (adapter_name, - PortableInterceptor::AdapterName ( - *(this->adapter_name_)), - CORBA::NO_MEMORY ( - CORBA::SystemException::_tao_minor_code ( - TAO_DEFAULT_MINOR_CODE, - ENOMEM), - CORBA::COMPLETED_NO)); - ACE_CHECK_RETURN (0); - - return adapter_name; - } -} - -CORBA::Object_ptr -TAO_ObjectReferenceTemplate::make_object ( - const char *, - const PortableInterceptor::ObjectId & - ACE_ENV_ARG_DECL) - ACE_THROW_SPEC (( - CORBA::SystemException - )) -{ - if (this->poa_ == 0) - ACE_THROW_RETURN (CORBA::BAD_INV_ORDER (), CORBA::Object::_nil ()); - - return this->poa_->invoke_key_to_object (ACE_ENV_SINGLE_ARG_PARAMETER); -} diff --git a/TAO/tao/PortableServer/ObjectReferenceTemplate.h b/TAO/tao/PortableServer/ObjectReferenceTemplate.h deleted file mode 100644 index 6d805313cf7..00000000000 --- a/TAO/tao/PortableServer/ObjectReferenceTemplate.h +++ /dev/null @@ -1,127 +0,0 @@ -// -*- C++ -*- - -//============================================================================= -/** - * @file ObjectReferenceTemplate.h - * - * $Id$ - * - * This is the implementation of the - * PortableInterceptor::ObjectReferenceTemplate ValueType. - * - * @author Priyanka Gontla <gontla_p@ociweb.com> - */ -//============================================================================= - -#ifndef TAO_OBJECT_REFERENCE_TEMPLATE_H -#define TAO_OBJECT_REFERENCE_TEMPLATE_H - -#include /**/ "ace/pre.h" - -#include "tao/PortableServer/portableserver_export.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "Default_ORTC.h" - -#if defined(_MSC_VER) -#if (_MSC_VER >= 1200) -#pragma warning(push) -#endif /* _MSC_VER >= 1200 */ -#pragma warning(disable:4250) -#endif /* _MSC_VER */ - -class TAO_POA; - -/** - * @class TAO_ObjectReferenceTemplate - * - * @brief Implementation of the PortableInterceptor::ObjectReferenceTemplate - * interface. - */ -class TAO_PortableServer_Export TAO_ObjectReferenceTemplate - : public virtual OBV_TAO_Default_ORT::ObjectReferenceTemplate, - public virtual CORBA::DefaultValueRefCountBase -{ -public: - - /// Constructor - TAO_ObjectReferenceTemplate (const char *server_id, - const char *orb_id, - TAO_POA *poa); - - /** - * @name PortableInterceptor::ObjectReferenceTemplate Methods - * - * Methods required by the - * PortableInterceptor::ObjectReferenceTemplate ValueType. - */ - //@{ - virtual char * server_id (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual char * orb_id (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - - virtual PortableInterceptor::AdapterName * adapter_name ( - ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC ((CORBA::SystemException)); - //@} - - /** - * @name PortableInterceptor::ObjectReferenceFactory Methods - * - * Methods required by the - * PortableInterceptor::ObjectReferenceFactory ValueType. - */ - //@{ - virtual CORBA::Object_ptr make_object ( - const char * repository_id, - const PortableInterceptor::ObjectId & id - ACE_ENV_ARG_DECL_WITH_DEFAULTS) - ACE_THROW_SPEC (( - CORBA::SystemException - )); - //@} - - /// Set the underlying POA pointer. - /** - * Upon destruction of the POA that this ObjectReferenceTemplate is - * associated with, the underlying POA pointer will be set to zero - * to forcibly break all ties with the POA. This is necessary to - * prevent this ObjectReferenceTemplate from invoking the POA after - * it has been destroyed. - */ - void poa (TAO_POA * poa); - -protected: - - /// Destructor - /** - * Protected destructor to enforce proper memory management via - * reference counting. - */ - ~TAO_ObjectReferenceTemplate (void); - -private: - - const char *server_id_; - const char *orb_id_; - PortableInterceptor::AdapterName_var adapter_name_; - TAO_POA *poa_; - -}; - -#if defined(_MSC_VER) && (_MSC_VER >= 1200) -#pragma warning(pop) -#endif /* _MSC_VER */ - -#if defined (__ACE_INLINE__) -# include "ObjectReferenceTemplate.inl" -#endif /* ! __ACE_INLINE__ */ - -#include /**/ "ace/post.h" - -#endif /* TAO_OBJECT_REFERENCE_TEMPLATE_H */ diff --git a/TAO/tao/PortableServer/ObjectReferenceTemplate.inl b/TAO/tao/PortableServer/ObjectReferenceTemplate.inl deleted file mode 100644 index 14de581cafc..00000000000 --- a/TAO/tao/PortableServer/ObjectReferenceTemplate.inl +++ /dev/null @@ -1,9 +0,0 @@ -// -*- C++ -*- -// -// $Id$ - -ACE_INLINE void -TAO_ObjectReferenceTemplate::poa (TAO_POA * poa) -{ - this->poa_ = poa; -} |