Use =default for skeleton copy constructor
[ACE_TAO.git] / TAO / tao / PI / PolicyFactoryC.cpp
blobeb614ce9dbb01f4271f73577cb6404deca0b2a68
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/PolicyFactoryC.h"
30 #include "tao/CDR.h"
31 #include "ace/OS_NS_string.h"
33 // TAO_IDL - Generated from
34 // be\be_visitor_arg_traits.cpp:70
36 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
38 // Arg traits specializations.
39 namespace TAO
44 // TAO_IDL - Generated from
45 // be\be_visitor_interface/interface_cs.cpp:60
47 // Traits specializations for PortableInterceptor::PolicyFactory.
49 PortableInterceptor::PolicyFactory_ptr
50 TAO::Objref_Traits<PortableInterceptor::PolicyFactory>::duplicate (
51 PortableInterceptor::PolicyFactory_ptr p
54 return PortableInterceptor::PolicyFactory::_duplicate (p);
57 void
58 TAO::Objref_Traits<PortableInterceptor::PolicyFactory>::release (
59 PortableInterceptor::PolicyFactory_ptr p
62 ::CORBA::release (p);
65 PortableInterceptor::PolicyFactory_ptr
66 TAO::Objref_Traits<PortableInterceptor::PolicyFactory>::nil ()
68 return PortableInterceptor::PolicyFactory::_nil ();
71 ::CORBA::Boolean
72 TAO::Objref_Traits<PortableInterceptor::PolicyFactory>::marshal (
73 PortableInterceptor::PolicyFactory_ptr p,
74 TAO_OutputCDR & cdr
77 return ::CORBA::Object::marshal (p, cdr);
80 PortableInterceptor::PolicyFactory::PolicyFactory ()
83 PortableInterceptor::PolicyFactory::~PolicyFactory ()
86 PortableInterceptor::PolicyFactory_ptr
87 PortableInterceptor::PolicyFactory::_narrow (
88 ::CORBA::Object_ptr _tao_objref
91 return PolicyFactory::_duplicate (
92 dynamic_cast<PolicyFactory_ptr> (_tao_objref)
96 PortableInterceptor::PolicyFactory_ptr
97 PortableInterceptor::PolicyFactory::_unchecked_narrow (
98 ::CORBA::Object_ptr _tao_objref
101 return PolicyFactory::_duplicate (
102 dynamic_cast<PolicyFactory_ptr> (_tao_objref)
106 PortableInterceptor::PolicyFactory_ptr
107 PortableInterceptor::PolicyFactory::_duplicate (PolicyFactory_ptr obj)
109 if (! ::CORBA::is_nil (obj))
111 obj->_add_ref ();
114 return obj;
117 void
118 PortableInterceptor::PolicyFactory::_tao_release (PolicyFactory_ptr obj)
120 ::CORBA::release (obj);
123 ::CORBA::Boolean
124 PortableInterceptor::PolicyFactory::_is_a (const char *value)
126 if (
127 !ACE_OS::strcmp (
128 value,
129 "IDL:omg.org/PortableInterceptor/PolicyFactory:1.0"
130 ) ||
131 !ACE_OS::strcmp (
132 value,
133 "IDL:omg.org/CORBA/LocalObject:1.0"
134 ) ||
135 !ACE_OS::strcmp (
136 value,
137 "IDL:omg.org/CORBA/Object:1.0"
141 return true; // success using local knowledge
143 else
145 return false;
149 const char* PortableInterceptor::PolicyFactory::_interface_repository_id () const
151 return "IDL:omg.org/PortableInterceptor/PolicyFactory:1.0";
154 ::CORBA::Boolean
155 PortableInterceptor::PolicyFactory::marshal (TAO_OutputCDR &)
157 return false;
160 // Hand-crafted.
161 ::CORBA::Policy_ptr
162 PortableInterceptor::PolicyFactory::_create_policy (CORBA::PolicyType)
164 throw ::CORBA::PolicyError (CORBA::BAD_POLICY_TYPE);
168 TAO_END_VERSIONED_NAMESPACE_DECL