CurrentC.cpp

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // CurrentC.cpp,v 1.64 2006/04/19 08:38:26 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:288
00030 
00031 
00032 #include "tao/CurrentC.h"
00033 #include "tao/CDR.h"
00034 #include "ace/OS_NS_string.h"
00035 
00036 // TAO_IDL - Generated from
00037 // be\be_visitor_arg_traits.cpp:70
00038 
00039 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00040 
00041 // Arg traits specializations.
00042 namespace TAO
00043 {
00044 }
00045 
00046 
00047 // TAO_IDL - Generated from
00048 // be\be_visitor_interface/interface_cs.cpp:60
00049 
00050 // Traits specializations for CORBA::Current.
00051 
00052 CORBA::Current_ptr
00053 TAO::Objref_Traits<CORBA::Current>::duplicate (
00054     CORBA::Current_ptr p
00055   )
00056 {
00057   return CORBA::Current::_duplicate (p);
00058 }
00059 
00060 void
00061 TAO::Objref_Traits<CORBA::Current>::release (
00062     CORBA::Current_ptr p
00063   )
00064 {
00065   ::CORBA::release (p);
00066 }
00067 
00068 CORBA::Current_ptr
00069 TAO::Objref_Traits<CORBA::Current>::nil (void)
00070 {
00071   return CORBA::Current::_nil ();
00072 }
00073 
00074 CORBA::Boolean
00075 TAO::Objref_Traits<CORBA::Current>::marshal (
00076     const CORBA::Current_ptr p,
00077     TAO_OutputCDR & cdr
00078   )
00079 {
00080   return CORBA::Object::marshal (p, cdr);
00081 }
00082 
00083 CORBA::Current::Current (void)
00084 {}
00085 
00086 CORBA::Current::~Current (void)
00087 {}
00088 
00089 CORBA::Current_ptr
00090 CORBA::Current::_narrow (
00091     CORBA::Object_ptr _tao_objref
00092     ACE_ENV_ARG_DECL_NOT_USED
00093   )
00094 {
00095   return Current::_duplicate (
00096       dynamic_cast<Current_ptr> (_tao_objref)
00097     );
00098 }
00099 
00100 CORBA::Current_ptr
00101 CORBA::Current::_unchecked_narrow (
00102     CORBA::Object_ptr _tao_objref
00103     ACE_ENV_ARG_DECL_NOT_USED
00104   )
00105 {
00106   return Current::_duplicate (
00107       dynamic_cast<Current_ptr> (_tao_objref)
00108     );
00109 }
00110 
00111 CORBA::Current_ptr
00112 CORBA::Current::_duplicate (Current_ptr obj)
00113 {
00114   if (! ::CORBA::is_nil (obj))
00115     {
00116       obj->_add_ref ();
00117     }
00118 
00119   return obj;
00120 }
00121 
00122 void
00123 CORBA::Current::_tao_release (Current_ptr obj)
00124 {
00125   ::CORBA::release (obj);
00126 }
00127 
00128 CORBA::Boolean
00129 CORBA::Current::_is_a (
00130     const char *value
00131     ACE_ENV_ARG_DECL_NOT_USED
00132   )
00133 {
00134   if (
00135       !ACE_OS::strcmp (
00136           value,
00137           "IDL:omg.org/CORBA/Current:1.0"
00138         ) ||
00139       !ACE_OS::strcmp (
00140           value,
00141           "IDL:omg.org/CORBA/LocalObject:1.0"
00142         ) ||
00143       !ACE_OS::strcmp (
00144           value,
00145           "IDL:omg.org/CORBA/Object:1.0"
00146         )
00147     )
00148     {
00149       return true; // success using local knowledge
00150     }
00151   else
00152     {
00153       return false;
00154     }
00155 }
00156 
00157 const char* CORBA::Current::_interface_repository_id (void) const
00158 {
00159   return "IDL:omg.org/CORBA/Current:1.0";
00160 }
00161 
00162 CORBA::Boolean
00163 CORBA::Current::marshal (TAO_OutputCDR &)
00164 {
00165   return false;
00166 }
00167 
00168 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Thu Nov 9 11:54:10 2006 for TAO by doxygen 1.3.6