Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / RTCORBA / RT_ProtocolPropertiesC.cpp
blob12b4c68489de7d911954d333e1bb2ea58a33d884
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:371
29 #include "tao/RTCORBA/RTCORBA.h"
30 #include "tao/CDR.h"
31 #include "ace/OS_NS_string.h"
33 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
36 // TAO_IDL - Generated from
37 // be\be_visitor_arg_traits.cpp:72
40 TAO_END_VERSIONED_NAMESPACE_DECL
43 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
46 // Arg traits specializations.
47 namespace TAO
51 TAO_END_VERSIONED_NAMESPACE_DECL
54 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
58 // TAO_IDL - Generated from
59 // be\be_visitor_interface/interface_cs.cpp:60
61 // Traits specializations for RTCORBA::ProtocolProperties.
63 RTCORBA::ProtocolProperties_ptr
64 TAO::Objref_Traits<RTCORBA::ProtocolProperties>::duplicate (
65 RTCORBA::ProtocolProperties_ptr p)
67 return RTCORBA::ProtocolProperties::_duplicate (p);
70 void
71 TAO::Objref_Traits<RTCORBA::ProtocolProperties>::release (
72 RTCORBA::ProtocolProperties_ptr p)
74 ::CORBA::release (p);
77 RTCORBA::ProtocolProperties_ptr
78 TAO::Objref_Traits<RTCORBA::ProtocolProperties>::nil ()
80 return RTCORBA::ProtocolProperties::_nil ();
83 ::CORBA::Boolean
84 TAO::Objref_Traits<RTCORBA::ProtocolProperties>::marshal (
85 const RTCORBA::ProtocolProperties_ptr p,
86 TAO_OutputCDR & cdr)
88 return ::CORBA::Object::marshal (p, cdr);
91 RTCORBA::ProtocolProperties::ProtocolProperties ()
94 RTCORBA::ProtocolProperties::~ProtocolProperties ()
97 void
98 RTCORBA::ProtocolProperties::_tao_any_destructor (void *_tao_void_pointer)
100 ProtocolProperties *_tao_tmp_pointer =
101 static_cast<ProtocolProperties *> (_tao_void_pointer);
102 ::CORBA::release (_tao_tmp_pointer);
105 RTCORBA::ProtocolProperties_ptr
106 RTCORBA::ProtocolProperties::_narrow (
107 ::CORBA::Object_ptr _tao_objref
110 return ProtocolProperties::_duplicate (
111 dynamic_cast<ProtocolProperties_ptr> (_tao_objref)
115 RTCORBA::ProtocolProperties_ptr
116 RTCORBA::ProtocolProperties::_unchecked_narrow (
117 ::CORBA::Object_ptr _tao_objref
120 return ProtocolProperties::_duplicate (
121 dynamic_cast<ProtocolProperties_ptr> (_tao_objref)
125 RTCORBA::ProtocolProperties_ptr
126 RTCORBA::ProtocolProperties::_duplicate (ProtocolProperties_ptr obj)
128 if (! ::CORBA::is_nil (obj))
130 obj->_add_ref ();
133 return obj;
136 void
137 RTCORBA::ProtocolProperties::_tao_release (ProtocolProperties_ptr obj)
139 ::CORBA::release (obj);
142 ::CORBA::Boolean
143 RTCORBA::ProtocolProperties::_is_a (const char *value)
145 if (
146 !ACE_OS::strcmp (
147 value,
148 "IDL:omg.org/RTCORBA/ProtocolProperties:1.0"
149 ) ||
150 !ACE_OS::strcmp (
151 value,
152 "IDL:omg.org/CORBA/LocalObject:1.0"
153 ) ||
154 !ACE_OS::strcmp (
155 value,
156 "IDL:omg.org/CORBA/Object:1.0"
160 return true; // success using local knowledge
162 else
164 return false;
168 const char* RTCORBA::ProtocolProperties::_interface_repository_id () const
170 return "IDL:omg.org/RTCORBA/ProtocolProperties:1.0";
173 ::CORBA::Boolean
174 RTCORBA::ProtocolProperties::marshal (TAO_OutputCDR &)
176 return false;
179 //////////////////////////////////////////////////////
180 // CDR Encoding Support hand crafted
182 CORBA::Boolean
183 RTCORBA::ProtocolProperties::_tao_encode (TAO_OutputCDR &)
185 return true;
187 // TAO_IDL - Generated from
188 // be/be_visitor_arg_traits.cpp:60
190 CORBA::Boolean
191 RTCORBA::ProtocolProperties::_tao_decode (TAO_InputCDR &)
193 return true;
195 TAO_END_VERSIONED_NAMESPACE_DECL