Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PI_Server / ServerRequestInterceptorC.cpp
blob80f6f6100b56e18d0206052606ed9181a34cc33c
1 // -*- C++ -*-
2 // **** Code generated by the The ACE ORB (TAO) IDL Compiler ****
3 // TAO and the TAO IDL Compiler have been developed by:
4 // Center for Distributed Object Computing
5 // Washington University
6 // St. Louis, MO
7 // USA
8 // http://www.cs.wustl.edu/~schmidt/doc-center.html
9 // and
10 // Distributed Object Computing Laboratory
11 // University of California at Irvine
12 // Irvine, CA
13 // USA
14 // http://doc.ece.uci.edu/
15 // and
16 // Institute for Software Integrated Systems
17 // Vanderbilt University
18 // Nashville, TN
19 // USA
20 // http://www.isis.vanderbilt.edu/
22 // Information about TAO is available at:
23 // http://www.dre.vanderbilt.edu/~schmidt/TAO.html
25 // TAO_IDL - Generated from
26 // be\be_codegen.cpp:277
29 #include "tao/PI_Server/ServerRequestInterceptorC.h"
30 #include "tao/CDR.h"
31 #include "tao/ORB_Core.h"
32 #include "ace/OS_NS_string.h"
34 // TAO_IDL - Generated from
35 // be\be_visitor_arg_traits.cpp:70
37 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
39 // Arg traits specializations.
40 namespace TAO
45 // TAO_IDL - Generated from
46 // be\be_visitor_interface/interface_cs.cpp:60
48 // Traits specializations for PortableInterceptor::ServerRequestInterceptor.
50 PortableInterceptor::ServerRequestInterceptor_ptr
51 TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::duplicate (
52 PortableInterceptor::ServerRequestInterceptor_ptr p
55 return PortableInterceptor::ServerRequestInterceptor::_duplicate (p);
58 void
59 TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::release (
60 PortableInterceptor::ServerRequestInterceptor_ptr p
63 ::CORBA::release (p);
66 PortableInterceptor::ServerRequestInterceptor_ptr
67 TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::nil ()
69 return PortableInterceptor::ServerRequestInterceptor::_nil ();
72 ::CORBA::Boolean
73 TAO::Objref_Traits<PortableInterceptor::ServerRequestInterceptor>::marshal (
74 PortableInterceptor::ServerRequestInterceptor_ptr p,
75 TAO_OutputCDR & cdr
78 return ::CORBA::Object::marshal (p, cdr);
81 PortableInterceptor::ServerRequestInterceptor::ServerRequestInterceptor ()
84 PortableInterceptor::ServerRequestInterceptor::~ServerRequestInterceptor ()
87 PortableInterceptor::ServerRequestInterceptor_ptr
88 PortableInterceptor::ServerRequestInterceptor::_narrow (
89 ::CORBA::Object_ptr _tao_objref
93 return ServerRequestInterceptor::_duplicate (
94 dynamic_cast<ServerRequestInterceptor_ptr> (_tao_objref)
98 PortableInterceptor::ServerRequestInterceptor_ptr
99 PortableInterceptor::ServerRequestInterceptor::_unchecked_narrow (
100 ::CORBA::Object_ptr _tao_objref
104 return ServerRequestInterceptor::_duplicate (
105 dynamic_cast<ServerRequestInterceptor_ptr> (_tao_objref)
109 PortableInterceptor::ServerRequestInterceptor_ptr
110 PortableInterceptor::ServerRequestInterceptor::_duplicate (ServerRequestInterceptor_ptr obj)
112 if (! ::CORBA::is_nil (obj))
114 obj->_add_ref ();
117 return obj;
120 void
121 PortableInterceptor::ServerRequestInterceptor::_tao_release (ServerRequestInterceptor_ptr obj)
123 ::CORBA::release (obj);
126 ::CORBA::Boolean
127 PortableInterceptor::ServerRequestInterceptor::_is_a (
128 const char *value
132 if (
133 !ACE_OS::strcmp (
134 value,
135 "IDL:omg.org/PortableInterceptor/Interceptor:1.0"
136 ) ||
137 !ACE_OS::strcmp (
138 value,
139 "IDL:omg.org/PortableInterceptor/ServerRequestInterceptor:1.0"
140 ) ||
141 !ACE_OS::strcmp (
142 value,
143 "IDL:omg.org/CORBA/LocalObject:1.0"
144 ) ||
145 !ACE_OS::strcmp (
146 value,
147 "IDL:omg.org/CORBA/Object:1.0"
151 return true; // success using local knowledge
153 else
155 return false;
159 const char* PortableInterceptor::ServerRequestInterceptor::_interface_repository_id () const
161 return "IDL:omg.org/PortableInterceptor/ServerRequestInterceptor:1.0";
164 ::CORBA::Boolean
165 PortableInterceptor::ServerRequestInterceptor::marshal (TAO_OutputCDR &)
167 return false;
170 TAO_END_VERSIONED_NAMESPACE_DECL