ServerRequestInterceptorC.cpp

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // ServerRequestInterceptorC.cpp,v 1.7 2006/06/27 19:12:55 jwillemsen Exp
00004 
00005 // ****  Code generated by the The ACE ORB (TAO) IDL Compiler ****
00006 // TAO and the TAO IDL Compiler have been developed by:
00007 //       Center for Distributed Object Computing
00008 //       Washington University
00009 //       St. Louis, MO
00010 //       USA
00011 //       http://www.cs.wustl.edu/~schmidt/doc-center.html
00012 // and
00013 //       Distributed Object Computing Laboratory
00014 //       University of California at Irvine
00015 //       Irvine, CA
00016 //       USA
00017 //       http://doc.ece.uci.edu/
00018 // and
00019 //       Institute for Software Integrated Systems
00020 //       Vanderbilt University
00021 //       Nashville, TN
00022 //       USA
00023 //       http://www.isis.vanderbilt.edu/
00024 //
00025 // Information about TAO is available at:
00026 //     http://www.cs.wustl.edu/~schmidt/TAO.html
00027 
00028 // TAO_IDL - Generated from
00029 // be\be_codegen.cpp:277
00030 
00031 
00032 #include "tao/PI_Server/ServerRequestInterceptorC.h"
00033 #include "tao/CDR.h"
00034 #include "tao/ORB_Core.h"
00035 #include "ace/OS_NS_string.h"
00036 
00037 // TAO_IDL - Generated from
00038 // be\be_visitor_arg_traits.cpp:70
00039 
00040 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00041 
00042 // Arg traits specializations.
00043 namespace TAO
00044 {
00045 }
00046 
00047 
00048 // TAO_IDL - Generated from
00049 // be\be_visitor_interface/interface_cs.cpp:60
00050 
00051 // Traits specializations for PortableInterceptor::ServerRequestInterceptor.
00052 
00053 PortableInterceptor::ServerRequestInterceptor_ptr
00054 TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::duplicate (
00055     PortableInterceptor::ServerRequestInterceptor_ptr p
00056   )
00057 {
00058   return PortableInterceptor::ServerRequestInterceptor::_duplicate (p);
00059 }
00060 
00061 void
00062 TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::release (
00063     PortableInterceptor::ServerRequestInterceptor_ptr p
00064   )
00065 {
00066   ::CORBA::release (p);
00067 }
00068 
00069 PortableInterceptor::ServerRequestInterceptor_ptr
00070 TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::nil (void)
00071 {
00072   return PortableInterceptor::ServerRequestInterceptor::_nil ();
00073 }
00074 
00075 ::CORBA::Boolean
00076 TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::marshal (
00077     PortableInterceptor::ServerRequestInterceptor_ptr p,
00078     TAO_OutputCDR & cdr
00079   )
00080 {
00081   return ::CORBA::Object::marshal (p, cdr);
00082 }
00083 
00084 PortableInterceptor::ServerRequestInterceptor::ServerRequestInterceptor (void)
00085 {}
00086 
00087 PortableInterceptor::ServerRequestInterceptor::~ServerRequestInterceptor (void)
00088 {}
00089 
00090 PortableInterceptor::ServerRequestInterceptor_ptr
00091 PortableInterceptor::ServerRequestInterceptor::_narrow (
00092     ::CORBA::Object_ptr _tao_objref
00093     ACE_ENV_ARG_DECL_NOT_USED
00094   )
00095 {
00096   return ServerRequestInterceptor::_duplicate (
00097       dynamic_cast<ServerRequestInterceptor_ptr> (_tao_objref)
00098     );
00099 }
00100 
00101 PortableInterceptor::ServerRequestInterceptor_ptr
00102 PortableInterceptor::ServerRequestInterceptor::_unchecked_narrow (
00103     ::CORBA::Object_ptr _tao_objref
00104     ACE_ENV_ARG_DECL_NOT_USED
00105   )
00106 {
00107   return ServerRequestInterceptor::_duplicate (
00108       dynamic_cast<ServerRequestInterceptor_ptr> (_tao_objref)
00109     );
00110 }
00111 
00112 PortableInterceptor::ServerRequestInterceptor_ptr
00113 PortableInterceptor::ServerRequestInterceptor::_duplicate (ServerRequestInterceptor_ptr obj)
00114 {
00115   if (! ::CORBA::is_nil (obj))
00116     {
00117       obj->_add_ref ();
00118     }
00119 
00120   return obj;
00121 }
00122 
00123 void
00124 PortableInterceptor::ServerRequestInterceptor::_tao_release (ServerRequestInterceptor_ptr obj)
00125 {
00126   ::CORBA::release (obj);
00127 }
00128 
00129 ::CORBA::Boolean
00130 PortableInterceptor::ServerRequestInterceptor::_is_a (
00131     const char *value
00132     ACE_ENV_ARG_DECL_NOT_USED
00133   )
00134 {
00135   if (
00136       !ACE_OS::strcmp (
00137           value,
00138           "IDL:omg.org/PortableInterceptor/Interceptor:1.0"
00139         ) ||
00140       !ACE_OS::strcmp (
00141           value,
00142           "IDL:omg.org/PortableInterceptor/ServerRequestInterceptor:1.0"
00143         ) ||
00144       !ACE_OS::strcmp (
00145           value,
00146           "IDL:omg.org/CORBA/LocalObject:1.0"
00147         ) ||
00148       !ACE_OS::strcmp (
00149           value,
00150           "IDL:omg.org/CORBA/Object:1.0"
00151         )
00152     )
00153     {
00154       return true; // success using local knowledge
00155     }
00156   else
00157     {
00158       return false;
00159     }
00160 }
00161 
00162 const char* PortableInterceptor::ServerRequestInterceptor::_interface_repository_id (void) const
00163 {
00164   return "IDL:omg.org/PortableInterceptor/ServerRequestInterceptor:1.0";
00165 }
00166 
00167 ::CORBA::Boolean
00168 PortableInterceptor::ServerRequestInterceptor::marshal (TAO_OutputCDR &)
00169 {
00170   return false;
00171 }
00172 
00173 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 12:54:00 2006 for TAO_PI_Server by doxygen 1.3.6