IORTableC.cpp

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // IORTableC.cpp,v 1.27 2006/04/19 09:37:37 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:291
00030 
00031 
00032 #include "tao/IORTable/IORTable.h"
00033 #include "tao/CDR.h"
00034 #include "ace/OS_NS_string.h"
00035 
00036 #if defined (__BORLANDC__)
00037 #pragma option -w-rvl -w-rch -w-ccc -w-aus -w-sig
00038 #endif /* __BORLANDC__ */
00039 
00040 // TAO_IDL - Generated from
00041 // be\be_visitor_arg_traits.cpp:69
00042 
00043 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00044 
00045 // Arg traits specializations.
00046 namespace TAO
00047 {
00048 }
00049 
00050 
00051 // TAO_IDL - Generated from
00052 // be\be_visitor_exception/exception_cs.cpp:63
00053 
00054 IORTable::AlreadyBound::AlreadyBound (void)
00055   : CORBA::UserException (
00056         "IDL:IORTable/AlreadyBound:1.0",
00057         "AlreadyBound"
00058       )
00059 {
00060 }
00061 
00062 IORTable::AlreadyBound::~AlreadyBound (void)
00063 {
00064 }
00065 
00066 IORTable::AlreadyBound::AlreadyBound (const ::IORTable::AlreadyBound &_tao_excp)
00067   : CORBA::UserException (
00068         _tao_excp._rep_id (),
00069         _tao_excp._name ()
00070       )
00071 {
00072 }
00073 
00074 IORTable::AlreadyBound&
00075 IORTable::AlreadyBound::operator= (const ::IORTable::AlreadyBound &_tao_excp)
00076 {
00077   this->::CORBA::UserException::operator= (_tao_excp);
00078   return *this;
00079 }
00080 
00081 IORTable::AlreadyBound *
00082 IORTable::AlreadyBound::_downcast (CORBA::Exception *_tao_excp)
00083 {
00084   return dynamic_cast<AlreadyBound *> (_tao_excp);
00085 }
00086 
00087 const IORTable::AlreadyBound *
00088 IORTable::AlreadyBound::_downcast (CORBA::Exception const *_tao_excp)
00089 {
00090   return dynamic_cast<const AlreadyBound *> (_tao_excp);
00091 }
00092 
00093 CORBA::Exception *IORTable::AlreadyBound::_alloc (void)
00094 {
00095   CORBA::Exception *retval = 0;
00096   ACE_NEW_RETURN (retval, ::IORTable::AlreadyBound, 0);
00097   return retval;
00098 }
00099 
00100 CORBA::Exception *
00101 IORTable::AlreadyBound::_tao_duplicate (void) const
00102 {
00103   CORBA::Exception *result = 0;
00104   ACE_NEW_RETURN (
00105       result,
00106       ::IORTable::AlreadyBound (*this),
00107       0
00108     );
00109   return result;
00110 }
00111 
00112 void IORTable::AlreadyBound::_raise (void) const
00113 {
00114   TAO_RAISE (*this);
00115 }
00116 
00117 void IORTable::AlreadyBound::_tao_encode (
00118     TAO_OutputCDR &cdr
00119     ACE_ENV_ARG_DECL
00120   ) const
00121 {
00122   if (cdr << *this)
00123     {
00124       return;
00125     }
00126 
00127   ACE_THROW (CORBA::MARSHAL ());
00128 }
00129 
00130 void IORTable::AlreadyBound::_tao_decode (
00131     TAO_InputCDR &cdr
00132     ACE_ENV_ARG_DECL
00133   )
00134 {
00135   if (cdr >> *this)
00136     {
00137       return;
00138     }
00139 
00140   ACE_THROW (CORBA::MARSHAL ());
00141 }
00142 
00143 
00144 
00145 // TAO_IDL - Generated from
00146 // be\be_visitor_exception/exception_cs.cpp:63
00147 
00148 IORTable::NotFound::NotFound (void)
00149   : CORBA::UserException (
00150         "IDL:IORTable/NotFound:1.0",
00151         "NotFound"
00152       )
00153 {
00154 }
00155 
00156 IORTable::NotFound::~NotFound (void)
00157 {
00158 }
00159 
00160 IORTable::NotFound::NotFound (const ::IORTable::NotFound &_tao_excp)
00161   : CORBA::UserException (
00162         _tao_excp._rep_id (),
00163         _tao_excp._name ()
00164       )
00165 {
00166 }
00167 
00168 IORTable::NotFound&
00169 IORTable::NotFound::operator= (const ::IORTable::NotFound &_tao_excp)
00170 {
00171   this->::CORBA::UserException::operator= (_tao_excp);
00172   return *this;
00173 }
00174 
00175 IORTable::NotFound *
00176 IORTable::NotFound::_downcast (CORBA::Exception *_tao_excp)
00177 {
00178   return dynamic_cast<NotFound *> (_tao_excp);
00179 }
00180 
00181 const IORTable::NotFound *
00182 IORTable::NotFound::_downcast (CORBA::Exception const *_tao_excp)
00183 {
00184   return dynamic_cast<const NotFound *> (_tao_excp);
00185 }
00186 
00187 CORBA::Exception *IORTable::NotFound::_alloc (void)
00188 {
00189   CORBA::Exception *retval = 0;
00190   ACE_NEW_RETURN (retval, ::IORTable::NotFound, 0);
00191   return retval;
00192 }
00193 
00194 CORBA::Exception *
00195 IORTable::NotFound::_tao_duplicate (void) const
00196 {
00197   CORBA::Exception *result = 0;
00198   ACE_NEW_RETURN (
00199       result,
00200       ::IORTable::NotFound (*this),
00201       0
00202     );
00203   return result;
00204 }
00205 
00206 void IORTable::NotFound::_raise (void) const
00207 {
00208   TAO_RAISE (*this);
00209 }
00210 
00211 void IORTable::NotFound::_tao_encode (
00212     TAO_OutputCDR &cdr
00213     ACE_ENV_ARG_DECL
00214   ) const
00215 {
00216   if (cdr << *this)
00217     {
00218       return;
00219     }
00220 
00221   ACE_THROW (CORBA::MARSHAL ());
00222 }
00223 
00224 void IORTable::NotFound::_tao_decode (
00225     TAO_InputCDR &cdr
00226     ACE_ENV_ARG_DECL
00227   )
00228 {
00229   if (cdr >> *this)
00230     {
00231       return;
00232     }
00233 
00234   ACE_THROW (CORBA::MARSHAL ());
00235 }
00236 
00237 
00238 
00239 // TAO_IDL - Generated from
00240 // be\be_visitor_interface/interface_cs.cpp:60
00241 
00242 // Traits specializations for IORTable::Table.
00243 
00244 IORTable::Table_ptr
00245 TAO::Objref_Traits<IORTable::Table>::duplicate (
00246     IORTable::Table_ptr p
00247   )
00248 {
00249   return IORTable::Table::_duplicate (p);
00250 }
00251 
00252 void
00253 TAO::Objref_Traits<IORTable::Table>::release (
00254     IORTable::Table_ptr p
00255   )
00256 {
00257   ::CORBA::release (p);
00258 }
00259 
00260 IORTable::Table_ptr
00261 TAO::Objref_Traits<IORTable::Table>::nil (void)
00262 {
00263   return IORTable::Table::_nil ();
00264 }
00265 
00266 CORBA::Boolean
00267 TAO::Objref_Traits<IORTable::Table>::marshal (
00268     IORTable::Table_ptr p,
00269     TAO_OutputCDR & cdr
00270   )
00271 {
00272   return CORBA::Object::marshal (p, cdr);
00273 }
00274 
00275 IORTable::Table::Table (void)
00276 {}
00277 
00278 IORTable::Table::~Table (void)
00279 {}
00280 
00281 IORTable::Table_ptr
00282 IORTable::Table::_narrow (
00283     CORBA::Object_ptr _tao_objref
00284     ACE_ENV_ARG_DECL_NOT_USED
00285   )
00286 {
00287   if (CORBA::is_nil (_tao_objref))
00288     {
00289       return Table::_nil ();
00290     }
00291 
00292   Table_ptr proxy =
00293     dynamic_cast<Table_ptr> (_tao_objref);
00294 
00295   return Table::_duplicate (proxy);
00296 }
00297 
00298 IORTable::Table_ptr
00299 IORTable::Table::_unchecked_narrow (
00300     CORBA::Object_ptr _tao_objref
00301     ACE_ENV_ARG_DECL_NOT_USED
00302   )
00303 {
00304   if (CORBA::is_nil (_tao_objref))
00305     {
00306       return Table::_nil ();
00307     }
00308 
00309   Table_ptr proxy =
00310     dynamic_cast<Table_ptr> (_tao_objref);
00311 
00312   return Table::_duplicate (proxy);
00313 }
00314 
00315 IORTable::Table_ptr
00316 IORTable::Table::_duplicate (Table_ptr obj)
00317 {
00318   if (! ::CORBA::is_nil (obj))
00319     {
00320       obj->_add_ref ();
00321     }
00322 
00323   return obj;
00324 }
00325 
00326 void
00327 IORTable::Table::_tao_release (Table_ptr obj)
00328 {
00329   ::CORBA::release (obj);
00330 }
00331 
00332 CORBA::Boolean
00333 IORTable::Table::_is_a (
00334     const char *value
00335     ACE_ENV_ARG_DECL_NOT_USED
00336   )
00337 {
00338   if (
00339       !ACE_OS::strcmp (
00340           value,
00341           "IDL:IORTable/Table:1.0"
00342         ) ||
00343       !ACE_OS::strcmp (
00344           value,
00345           "IDL:omg.org/CORBA/LocalObject:1.0"
00346         ) ||
00347       !ACE_OS::strcmp (
00348           value,
00349           "IDL:omg.org/CORBA/Object:1.0"
00350         )
00351     )
00352     {
00353       return true; // success using local knowledge
00354     }
00355   else
00356     {
00357       return false;
00358     }
00359 }
00360 
00361 const char* IORTable::Table::_interface_repository_id (void) const
00362 {
00363   return "IDL:IORTable/Table:1.0";
00364 }
00365 
00366 CORBA::Boolean
00367 IORTable::Table::marshal (TAO_OutputCDR &)
00368 {
00369   return false;
00370 }
00371 
00372 // TAO_IDL - Generated from
00373 // be\be_visitor_interface/interface_cs.cpp:60
00374 
00375 // Traits specializations for IORTable::Locator.
00376 
00377 IORTable::Locator_ptr
00378 TAO::Objref_Traits<IORTable::Locator>::duplicate (
00379     IORTable::Locator_ptr p
00380   )
00381 {
00382   return IORTable::Locator::_duplicate (p);
00383 }
00384 
00385 void
00386 TAO::Objref_Traits<IORTable::Locator>::release (
00387     IORTable::Locator_ptr p
00388   )
00389 {
00390   ::CORBA::release (p);
00391 }
00392 
00393 IORTable::Locator_ptr
00394 TAO::Objref_Traits<IORTable::Locator>::nil (void)
00395 {
00396   return IORTable::Locator::_nil ();
00397 }
00398 
00399 CORBA::Boolean
00400 TAO::Objref_Traits<IORTable::Locator>::marshal (
00401     IORTable::Locator_ptr p,
00402     TAO_OutputCDR & cdr
00403   )
00404 {
00405   return CORBA::Object::marshal (p, cdr);
00406 }
00407 
00408 IORTable::Locator::Locator (void)
00409 {}
00410 
00411 IORTable::Locator::~Locator (void)
00412 {}
00413 
00414 IORTable::Locator_ptr
00415 IORTable::Locator::_narrow (
00416     CORBA::Object_ptr _tao_objref
00417     ACE_ENV_ARG_DECL_NOT_USED
00418   )
00419 {
00420   if (CORBA::is_nil (_tao_objref))
00421     {
00422       return Locator::_nil ();
00423     }
00424 
00425   Locator_ptr proxy =
00426     dynamic_cast<Locator_ptr> (_tao_objref);
00427 
00428   return Locator::_duplicate (proxy);
00429 }
00430 
00431 IORTable::Locator_ptr
00432 IORTable::Locator::_unchecked_narrow (
00433     CORBA::Object_ptr _tao_objref
00434     ACE_ENV_ARG_DECL_NOT_USED
00435   )
00436 {
00437   if (CORBA::is_nil (_tao_objref))
00438     {
00439       return Locator::_nil ();
00440     }
00441 
00442   Locator_ptr proxy =
00443     dynamic_cast<Locator_ptr> (_tao_objref);
00444 
00445   return Locator::_duplicate (proxy);
00446 }
00447 
00448 IORTable::Locator_ptr
00449 IORTable::Locator::_duplicate (Locator_ptr obj)
00450 {
00451   if (! ::CORBA::is_nil (obj))
00452     {
00453       obj->_add_ref ();
00454     }
00455 
00456   return obj;
00457 }
00458 
00459 void
00460 IORTable::Locator::_tao_release (Locator_ptr obj)
00461 {
00462   ::CORBA::release (obj);
00463 }
00464 
00465 CORBA::Boolean
00466 IORTable::Locator::_is_a (
00467     const char *value
00468     ACE_ENV_ARG_DECL_NOT_USED
00469   )
00470 {
00471   if (
00472       !ACE_OS::strcmp (
00473           value,
00474           "IDL:IORTable/Locator:1.0"
00475         ) ||
00476       !ACE_OS::strcmp (
00477           value,
00478           "IDL:omg.org/CORBA/LocalObject:1.0"
00479         ) ||
00480       !ACE_OS::strcmp (
00481           value,
00482           "IDL:omg.org/CORBA/Object:1.0"
00483         )
00484     )
00485     {
00486       return true; // success using local knowledge
00487     }
00488   else
00489     {
00490       return false;
00491     }
00492 }
00493 
00494 const char* IORTable::Locator::_interface_repository_id (void) const
00495 {
00496   return "IDL:IORTable/Locator:1.0";
00497 }
00498 
00499 CORBA::Boolean
00500 IORTable::Locator::marshal (TAO_OutputCDR &)
00501 {
00502   return false;
00503 }
00504 
00505 // TAO_IDL - Generated from
00506 // be\be_visitor_exception/cdr_op_cs.cpp:60
00507 
00508 CORBA::Boolean operator<< (
00509     TAO_OutputCDR &strm,
00510     const IORTable::AlreadyBound &_tao_aggregate
00511   )
00512 {
00513   // Marshal the repository ID.
00514   return (strm << _tao_aggregate._rep_id ());
00515 }
00516 
00517 CORBA::Boolean operator>> (
00518     TAO_InputCDR &,
00519     IORTable::AlreadyBound&
00520   )
00521 {
00522   return true;
00523 }
00524 
00525 // TAO_IDL - Generated from
00526 // be\be_visitor_exception/cdr_op_cs.cpp:60
00527 
00528 CORBA::Boolean operator<< (
00529     TAO_OutputCDR &strm,
00530     const IORTable::NotFound &_tao_aggregate
00531   )
00532 {
00533   // Marshal the repository ID.
00534   return (strm << _tao_aggregate._rep_id ());
00535 }
00536 
00537 CORBA::Boolean operator>> (
00538     TAO_InputCDR &,
00539     IORTable::NotFound&
00540   )
00541 {
00542   return true;
00543 }
00544 
00545 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 13:07:06 2006 for TAO_IORTable by doxygen 1.3.6