diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-02-18 09:07:14 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2005-02-18 09:07:14 +0000 |
commit | 6505e0e66092f5c22ab656946a800138897ddf4c (patch) | |
tree | 91ba7fc4584511f31379702bdcf543da966f7f78 /TAO/tao/ImR_Client/ServerObjectA.cpp | |
parent | 088f6e83bd2ffc10f050df15282f9795ddbb02f6 (diff) | |
download | ATCD-6505e0e66092f5c22ab656946a800138897ddf4c.tar.gz |
ChangeLogTag: Fri Feb 18 17:04:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/ImR_Client/ServerObjectA.cpp')
-rw-r--r-- | TAO/tao/ImR_Client/ServerObjectA.cpp | 143 |
1 files changed, 143 insertions, 0 deletions
diff --git a/TAO/tao/ImR_Client/ServerObjectA.cpp b/TAO/tao/ImR_Client/ServerObjectA.cpp new file mode 100644 index 00000000000..714d2b0801b --- /dev/null +++ b/TAO/tao/ImR_Client/ServerObjectA.cpp @@ -0,0 +1,143 @@ +// -*- 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 + +#include "ServerObjectC.h" +#include "tao/Typecode.h" +#include "tao/CDR.h" +#include "tao/Any.h" +#include "tao/Any_Impl_T.h" + +// TAO_IDL - Generated from +// be\be_visitor_typecode/typecode_defn.cpp:295 + +static const CORBA::Long _oc_ImplementationRepository_ServerObject[] = +{ + TAO_ENCAP_BYTE_ORDER, // byte order + 46, + ACE_NTOHL (0x49444c3a), + ACE_NTOHL (0x496d706c), + ACE_NTOHL (0x656d656e), + ACE_NTOHL (0x74617469), + ACE_NTOHL (0x6f6e5265), + ACE_NTOHL (0x706f7369), + ACE_NTOHL (0x746f7279), + ACE_NTOHL (0x2f536572), + ACE_NTOHL (0x7665724f), + ACE_NTOHL (0x626a6563), + ACE_NTOHL (0x743a312e), + ACE_NTOHL (0x30000000), // repository ID = IDL:ImplementationRepository/ServerObject:1.0 + 13, + ACE_NTOHL (0x53657276), + ACE_NTOHL (0x65724f62), + ACE_NTOHL (0x6a656374), + ACE_NTOHL (0x0), // name = ServerObject + }; + +static CORBA::TypeCode _tc_TAO_tc_ImplementationRepository_ServerObject ( + CORBA::tk_objref, + sizeof (_oc_ImplementationRepository_ServerObject), + (char *) &_oc_ImplementationRepository_ServerObject, + 0, + 0 + ); + +namespace ImplementationRepository +{ + ::CORBA::TypeCode_ptr _tc_ServerObject = + &_tc_TAO_tc_ImplementationRepository_ServerObject; +} + +// TAO_IDL - Generated from +// be\be_visitor_interface/any_op_cs.cpp:50 + +ACE_TEMPLATE_SPECIALIZATION +CORBA::Boolean +TAO::Any_Impl_T<ImplementationRepository::ServerObject>::to_object ( + CORBA::Object_ptr &_tao_elem + ) const +{ + _tao_elem = CORBA::Object::_duplicate (this->value_); + return 1; +} + +// Copying insertion. +void +operator<<= ( + CORBA::Any &_tao_any, + ImplementationRepository::ServerObject_ptr _tao_elem + ) +{ + ImplementationRepository::ServerObject_ptr _tao_objptr = + ImplementationRepository::ServerObject::_duplicate (_tao_elem); + _tao_any <<= &_tao_objptr; +} + +// Non-copying insertion. +void +operator<<= ( + CORBA::Any &_tao_any, + ImplementationRepository::ServerObject_ptr *_tao_elem + ) +{ + TAO::Any_Impl_T<ImplementationRepository::ServerObject>::insert ( + _tao_any, + ImplementationRepository::ServerObject::_tao_any_destructor, + ImplementationRepository::_tc_ServerObject, + *_tao_elem + ); +} + +CORBA::Boolean +operator>>= ( + const CORBA::Any &_tao_any, + ImplementationRepository::ServerObject_ptr &_tao_elem + ) +{ + return + TAO::Any_Impl_T<ImplementationRepository::ServerObject>::extract ( + _tao_any, + ImplementationRepository::ServerObject::_tao_any_destructor, + ImplementationRepository::_tc_ServerObject, + _tao_elem + ); +} + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + + template class + TAO::Any_Impl_T< + ImplementationRepository::ServerObject + >; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +# pragma instantiate \ + TAO::Any_Impl_T< \ + ImplementationRepository::ServerObject \ + > + +#endif /* !ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ |