diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-06-27 19:13:07 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-06-27 19:13:07 +0000 |
commit | 26cf6191ea003cb6c552bb8c8997bc47ab6dbf66 (patch) | |
tree | 68651ae142bbf72b6ed5ae15ba4c63eedeaac256 /TAO/tao/PI_Server | |
parent | aeb1cfccdb39a58470a61c98f9c84ef029f0ca2e (diff) | |
download | ATCD-26cf6191ea003cb6c552bb8c8997bc47ab6dbf66.tar.gz |
ChangeLogTag: Tue Jun 27 19:06:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/PI_Server')
-rw-r--r-- | TAO/tao/PI_Server/ServerRequestInterceptorA.cpp | 58 | ||||
-rw-r--r-- | TAO/tao/PI_Server/ServerRequestInterceptorA.h | 65 | ||||
-rw-r--r-- | TAO/tao/PI_Server/ServerRequestInterceptorC.cpp | 173 | ||||
-rw-r--r-- | TAO/tao/PI_Server/ServerRequestInterceptorC.h | 314 | ||||
-rw-r--r-- | TAO/tao/PI_Server/ServerRequestInterceptorS.h | 28 |
5 files changed, 638 insertions, 0 deletions
diff --git a/TAO/tao/PI_Server/ServerRequestInterceptorA.cpp b/TAO/tao/PI_Server/ServerRequestInterceptorA.cpp new file mode 100644 index 00000000000..8f5dfb63340 --- /dev/null +++ b/TAO/tao/PI_Server/ServerRequestInterceptorA.cpp @@ -0,0 +1,58 @@ +// -*- 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 "tao/PI_Server/ServerRequestInterceptorA.h" +#include "tao/AnyTypeCode/Null_RefCount_Policy.h" +#include "tao/AnyTypeCode/TypeCode_Constants.h" +#include "tao/AnyTypeCode/Alias_TypeCode_Static.h" +#include "tao/AnyTypeCode/Objref_TypeCode_Static.h" +#include "tao/AnyTypeCode/String_TypeCode_Static.h" +#include "tao/AnyTypeCode/Any.h" +#include "tao/CDR.h" +#include "tao/AnyTypeCode/Any.h" +#include "tao/AnyTypeCode/Any_Impl_T.h" + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +// TAO_IDL - Generated from +// be\be_visitor_typecode/objref_typecode.cpp:76 + +static TAO::TypeCode::Objref<char const *, + TAO::Null_RefCount_Policy> + _tao_tc_PortableInterceptor_ServerRequestInterceptor ( + ::CORBA::tk_local_interface, + "IDL:omg.org/PortableInterceptor/ServerRequestInterceptor:1.0", + "ServerRequestInterceptor"); + +namespace PortableInterceptor +{ + ::CORBA::TypeCode_ptr const _tc_ServerRequestInterceptor = + &_tao_tc_PortableInterceptor_ServerRequestInterceptor; +} + + +TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/PI_Server/ServerRequestInterceptorA.h b/TAO/tao/PI_Server/ServerRequestInterceptorA.h new file mode 100644 index 00000000000..6ed94797f14 --- /dev/null +++ b/TAO/tao/PI_Server/ServerRequestInterceptorA.h @@ -0,0 +1,65 @@ +// -*- 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:754 + +#ifndef _TAO_IDL_SERVERREQUESTINTERCEPTORA_H_ +#define _TAO_IDL_SERVERREQUESTINTERCEPTORA_H_ + +#include /**/ "ace/pre.h" + +#include "tao/PI_Server/pi_server_export.h" +#include "tao/PI_Server/ServerRequestInterceptorC.h" +#include "tao/PI/InterceptorA.h" +#include "tao/PI/PIForwardRequestA.h" +#include "tao/AnyTypeCode/OctetSeqA.h" + + +// TAO_IDL - Generated from +// be\be_visitor_module/module_ch.cpp:59 + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +namespace PortableInterceptor +{ + + // TAO_IDL - Generated from + // be\be_visitor_typecode/typecode_decl.cpp:49 + + extern TAO_PI_Server_Export ::CORBA::TypeCode_ptr const _tc_ServerRequestInterceptor; + +// TAO_IDL - Generated from +// be\be_visitor_module/module_ch.cpp:86 + +} // module PortableInterceptor + +TAO_END_VERSIONED_NAMESPACE_DECL + +#include /**/ "ace/post.h" + +#endif /* ifndef */ diff --git a/TAO/tao/PI_Server/ServerRequestInterceptorC.cpp b/TAO/tao/PI_Server/ServerRequestInterceptorC.cpp new file mode 100644 index 00000000000..6b2190b9629 --- /dev/null +++ b/TAO/tao/PI_Server/ServerRequestInterceptorC.cpp @@ -0,0 +1,173 @@ +// -*- 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:277 + + +#include "tao/PI_Server/ServerRequestInterceptorC.h" +#include "tao/CDR.h" +#include "tao/ORB_Core.h" +#include "ace/OS_NS_string.h" + +// TAO_IDL - Generated from +// be\be_visitor_arg_traits.cpp:70 + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +// Arg traits specializations. +namespace TAO +{ +} + + +// TAO_IDL - Generated from +// be\be_visitor_interface/interface_cs.cpp:60 + +// Traits specializations for PortableInterceptor::ServerRequestInterceptor. + +PortableInterceptor::ServerRequestInterceptor_ptr +TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::duplicate ( + PortableInterceptor::ServerRequestInterceptor_ptr p + ) +{ + return PortableInterceptor::ServerRequestInterceptor::_duplicate (p); +} + +void +TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::release ( + PortableInterceptor::ServerRequestInterceptor_ptr p + ) +{ + ::CORBA::release (p); +} + +PortableInterceptor::ServerRequestInterceptor_ptr +TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::nil (void) +{ + return PortableInterceptor::ServerRequestInterceptor::_nil (); +} + +::CORBA::Boolean +TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::marshal ( + PortableInterceptor::ServerRequestInterceptor_ptr p, + TAO_OutputCDR & cdr + ) +{ + return ::CORBA::Object::marshal (p, cdr); +} + +PortableInterceptor::ServerRequestInterceptor::ServerRequestInterceptor (void) +{} + +PortableInterceptor::ServerRequestInterceptor::~ServerRequestInterceptor (void) +{} + +PortableInterceptor::ServerRequestInterceptor_ptr +PortableInterceptor::ServerRequestInterceptor::_narrow ( + ::CORBA::Object_ptr _tao_objref + ACE_ENV_ARG_DECL_NOT_USED + ) +{ + return ServerRequestInterceptor::_duplicate ( + dynamic_cast<ServerRequestInterceptor_ptr> (_tao_objref) + ); +} + +PortableInterceptor::ServerRequestInterceptor_ptr +PortableInterceptor::ServerRequestInterceptor::_unchecked_narrow ( + ::CORBA::Object_ptr _tao_objref + ACE_ENV_ARG_DECL_NOT_USED + ) +{ + return ServerRequestInterceptor::_duplicate ( + dynamic_cast<ServerRequestInterceptor_ptr> (_tao_objref) + ); +} + +PortableInterceptor::ServerRequestInterceptor_ptr +PortableInterceptor::ServerRequestInterceptor::_duplicate (ServerRequestInterceptor_ptr obj) +{ + if (! ::CORBA::is_nil (obj)) + { + obj->_add_ref (); + } + + return obj; +} + +void +PortableInterceptor::ServerRequestInterceptor::_tao_release (ServerRequestInterceptor_ptr obj) +{ + ::CORBA::release (obj); +} + +::CORBA::Boolean +PortableInterceptor::ServerRequestInterceptor::_is_a ( + const char *value + ACE_ENV_ARG_DECL_NOT_USED + ) +{ + if ( + !ACE_OS::strcmp ( + value, + "IDL:omg.org/PortableInterceptor/Interceptor:1.0" + ) || + !ACE_OS::strcmp ( + value, + "IDL:omg.org/PortableInterceptor/ServerRequestInterceptor:1.0" + ) || + !ACE_OS::strcmp ( + value, + "IDL:omg.org/CORBA/LocalObject:1.0" + ) || + !ACE_OS::strcmp ( + value, + "IDL:omg.org/CORBA/Object:1.0" + ) + ) + { + return true; // success using local knowledge + } + else + { + return false; + } +} + +const char* PortableInterceptor::ServerRequestInterceptor::_interface_repository_id (void) const +{ + return "IDL:omg.org/PortableInterceptor/ServerRequestInterceptor:1.0"; +} + +::CORBA::Boolean +PortableInterceptor::ServerRequestInterceptor::marshal (TAO_OutputCDR &) +{ + return false; +} + +TAO_END_VERSIONED_NAMESPACE_DECL diff --git a/TAO/tao/PI_Server/ServerRequestInterceptorC.h b/TAO/tao/PI_Server/ServerRequestInterceptorC.h new file mode 100644 index 00000000000..ec784b9d706 --- /dev/null +++ b/TAO/tao/PI_Server/ServerRequestInterceptorC.h @@ -0,0 +1,314 @@ +// -*- 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:154 + +#ifndef _TAO_IDL_SERVERREQUESTINTERCEPTORC_H_ +#define _TAO_IDL_SERVERREQUESTINTERCEPTORC_H_ + +#include /**/ "ace/pre.h" + + +#include "ace/config-all.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/PI_Server/pi_server_export.h" +#include "tao/ORB.h" +#include "tao/SystemException.h" +#include "tao/Environment.h" +#include "tao/Object.h" +#include "tao/Objref_VarOut_T.h" + +#include "tao/PI/InterceptorC.h" +#include "tao/PI/PIForwardRequestC.h" +#include "tao/OctetSeqC.h" + +#if defined (TAO_EXPORT_MACRO) +#undef TAO_EXPORT_MACRO +#endif +#define TAO_EXPORT_MACRO TAO_PI_Server_Export + +// TAO_IDL - Generated from +// be\be_visitor_module/module_ch.cpp:49 + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +namespace PortableInterceptor +{ + + // TAO_IDL - Generated from + // be\be_interface.cpp:646 + +#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINFO__VAR_OUT_CH_) +#define _PORTABLEINTERCEPTOR_SERVERREQUESTINFO__VAR_OUT_CH_ + + class ServerRequestInfo; + typedef ServerRequestInfo *ServerRequestInfo_ptr; + + typedef + TAO_Objref_Var_T< + ServerRequestInfo + > + ServerRequestInfo_var; + + typedef + TAO_Objref_Out_T< + ServerRequestInfo + > + ServerRequestInfo_out; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // be\be_interface.cpp:646 + +#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__VAR_OUT_CH_) +#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__VAR_OUT_CH_ + + class ServerRequestInterceptor; + typedef ServerRequestInterceptor *ServerRequestInterceptor_ptr; + + typedef + TAO_Objref_Var_T< + ServerRequestInterceptor + > + ServerRequestInterceptor_var; + + typedef + TAO_Objref_Out_T< + ServerRequestInterceptor + > + ServerRequestInterceptor_out; + +#endif /* end #if !defined */ + + // TAO_IDL - Generated from + // be\be_visitor_interface/interface_ch.cpp:54 + +#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR_CH_) +#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR_CH_ + + class TAO_PI_Server_Export ServerRequestInterceptor + : public virtual ::PortableInterceptor::Interceptor + { + public: + typedef ServerRequestInterceptor_ptr _ptr_type; + typedef ServerRequestInterceptor_var _var_type; + + // The static operations. + static ServerRequestInterceptor_ptr _duplicate (ServerRequestInterceptor_ptr obj); + + static void _tao_release (ServerRequestInterceptor_ptr obj); + + static ServerRequestInterceptor_ptr _narrow ( + ::CORBA::Object_ptr obj + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ); + + static ServerRequestInterceptor_ptr _unchecked_narrow ( + ::CORBA::Object_ptr obj + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ); + + static ServerRequestInterceptor_ptr _nil (void) + { + return static_cast<ServerRequestInterceptor_ptr> (0); + } + + + + // TAO_IDL - Generated from + // be\be_visitor_operation/operation_ch.cpp:46 + +#if TAO_HAS_EXTENDED_FT_INTERCEPTORS == 1 + + virtual void tao_ft_interception_point ( + ::PortableInterceptor::ServerRequestInfo_ptr ri, + ::CORBA::OctetSeq_out os + ACE_ENV_ARG_DECL_NOT_USED + ) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::PortableInterceptor::ForwardRequest + )) {} + +#endif /* TAO_HAS_EXTENDED_FT_INTERCEPTORS */ + + // TAO_IDL - Generated from + // be\be_visitor_operation/operation_ch.cpp:46 + + virtual void receive_request_service_contexts ( + ::PortableInterceptor::ServerRequestInfo_ptr ri + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::PortableInterceptor::ForwardRequest + )) = 0; + + // TAO_IDL - Generated from + // be\be_visitor_operation/operation_ch.cpp:46 + + virtual void receive_request ( + ::PortableInterceptor::ServerRequestInfo_ptr ri + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::PortableInterceptor::ForwardRequest + )) = 0; + + // TAO_IDL - Generated from + // be\be_visitor_operation/operation_ch.cpp:46 + + virtual void send_reply ( + ::PortableInterceptor::ServerRequestInfo_ptr ri + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ) + ACE_THROW_SPEC (( + ::CORBA::SystemException + )) = 0; + + // TAO_IDL - Generated from + // be\be_visitor_operation/operation_ch.cpp:46 + + virtual void send_exception ( + ::PortableInterceptor::ServerRequestInfo_ptr ri + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::PortableInterceptor::ForwardRequest + )) = 0; + + // TAO_IDL - Generated from + // be\be_visitor_operation/operation_ch.cpp:46 + + virtual void send_other ( + ::PortableInterceptor::ServerRequestInfo_ptr ri + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ) + ACE_THROW_SPEC (( + ::CORBA::SystemException, + ::PortableInterceptor::ForwardRequest + )) = 0; + + // TAO_IDL - Generated from + // be\be_visitor_interface/interface_ch.cpp:210 + + virtual ::CORBA::Boolean _is_a ( + const char *type_id + ACE_ENV_ARG_DECL_WITH_DEFAULTS + ); + + virtual const char* _interface_repository_id (void) const; + virtual ::CORBA::Boolean marshal (TAO_OutputCDR &cdr); + + protected: + // Abstract or local interface only. + ServerRequestInterceptor (void); + + virtual ~ServerRequestInterceptor (void); + + private: + // Private and unimplemented for concrete interfaces. + ServerRequestInterceptor (const ServerRequestInterceptor &); + + void operator= (const ServerRequestInterceptor &); + }; + +#endif /* end #if !defined */ + +// TAO_IDL - Generated from +// be\be_visitor_module/module_ch.cpp:78 + +} // module PortableInterceptor + +// TAO_IDL - Generated from +// be\be_visitor_traits.cpp:61 + +// Traits specializations. +namespace TAO +{ + +#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINFO__TRAITS_) +#define _PORTABLEINTERCEPTOR_SERVERREQUESTINFO__TRAITS_ + + template<> + struct TAO_PI_Server_Export Objref_Traits< ::PortableInterceptor::ServerRequestInfo> + { + static ::PortableInterceptor::ServerRequestInfo_ptr duplicate ( + ::PortableInterceptor::ServerRequestInfo_ptr + ); + static void release ( + ::PortableInterceptor::ServerRequestInfo_ptr + ); + static ::PortableInterceptor::ServerRequestInfo_ptr nil (void); + static ::CORBA::Boolean marshal ( + ::PortableInterceptor::ServerRequestInfo_ptr p, + TAO_OutputCDR & cdr + ); + }; + +#endif /* end #if !defined */ + +#if !defined (_PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__TRAITS_) +#define _PORTABLEINTERCEPTOR_SERVERREQUESTINTERCEPTOR__TRAITS_ + + template<> + struct TAO_PI_Server_Export Objref_Traits< ::PortableInterceptor::ServerRequestInterceptor> + { + static ::PortableInterceptor::ServerRequestInterceptor_ptr duplicate ( + ::PortableInterceptor::ServerRequestInterceptor_ptr + ); + static void release ( + ::PortableInterceptor::ServerRequestInterceptor_ptr + ); + static ::PortableInterceptor::ServerRequestInterceptor_ptr nil (void); + static ::CORBA::Boolean marshal ( + ::PortableInterceptor::ServerRequestInterceptor_ptr p, + TAO_OutputCDR & cdr + ); + }; + +#endif /* end #if !defined */ +} + +// TAO_IDL - Generated from +// be\be_codegen.cpp:1040 + +TAO_END_VERSIONED_NAMESPACE_DECL + +#include /**/ "ace/post.h" + +#endif /* ifndef */ + + diff --git a/TAO/tao/PI_Server/ServerRequestInterceptorS.h b/TAO/tao/PI_Server/ServerRequestInterceptorS.h new file mode 100644 index 00000000000..17b1360599e --- /dev/null +++ b/TAO/tao/PI_Server/ServerRequestInterceptorS.h @@ -0,0 +1,28 @@ +// -*- 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 + +// Skeleton file generation suppressed with command line option -SS |