Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Dynamic_Adapter.cpp

Go to the documentation of this file.
00001 #include "tao_pch.h"
00002 // @(#) $Id: Dynamic_Adapter.cpp,v 1.1.1.2.2.1 2003/03/14 16:05:12 chad Exp $
00003 
00004 #include "tao/Dynamic_Adapter.h"
00005 #include "tao/ORB_Core.h"
00006 #include "ace/Dynamic_Service.h"
00007 
00008 ACE_RCSID(tao, Dynamic_Adapter, "$Id: Dynamic_Adapter.cpp,v 1.1.1.2.2.1 2003/03/14 16:05:12 chad Exp $")
00009 
00010 TAO_Dynamic_Adapter::~TAO_Dynamic_Adapter (void)
00011 {
00012 }
00013 
00014 // ***********************************************************************
00015 
00016 // Implementation of the CORBA::is_nil and CORBA::release methods for
00017 // Context, Request, and ServerRequest.
00018 
00019 CORBA::Boolean
00020 CORBA::is_nil (CORBA::Context_ptr ctx)
00021 {
00022   TAO_Dynamic_Adapter *dynamic_adapter =
00023     ACE_Dynamic_Service<TAO_Dynamic_Adapter>::instance (
00024               TAO_ORB_Core::dynamic_adapter_name ()
00025       );
00026 
00027   return dynamic_adapter->context_is_nil (ctx);
00028 }
00029 
00030 CORBA::Boolean
00031 CORBA::is_nil (CORBA::Request_ptr req)
00032 {
00033   TAO_Dynamic_Adapter *dynamic_adapter =
00034     ACE_Dynamic_Service<TAO_Dynamic_Adapter>::instance (
00035         TAO_ORB_Core::dynamic_adapter_name ()
00036       );
00037 
00038   return dynamic_adapter->request_is_nil (req);
00039 }
00040 
00041 CORBA::Boolean
00042 CORBA::is_nil (CORBA::ServerRequest_ptr req)
00043 {
00044   TAO_Dynamic_Adapter *dynamic_adapter =
00045     ACE_Dynamic_Service<TAO_Dynamic_Adapter>::instance (
00046         TAO_ORB_Core::dynamic_adapter_name ()
00047       );
00048 
00049   return dynamic_adapter->server_request_is_nil (req);
00050 }
00051 
00052 void
00053 CORBA::release (CORBA::Context_ptr ctx)
00054 {
00055   TAO_Dynamic_Adapter *dynamic_adapter =
00056     ACE_Dynamic_Service<TAO_Dynamic_Adapter>::instance (
00057         TAO_ORB_Core::dynamic_adapter_name ()
00058       );
00059 
00060   dynamic_adapter->context_release (ctx);
00061 }
00062 
00063 void
00064 CORBA::release (CORBA::Request_ptr req)
00065 {
00066   TAO_Dynamic_Adapter *dynamic_adapter =
00067     ACE_Dynamic_Service<TAO_Dynamic_Adapter>::instance (
00068         TAO_ORB_Core::dynamic_adapter_name ()
00069       );
00070 
00071   dynamic_adapter->request_release (req);
00072 }
00073 
00074 void
00075 CORBA::release (CORBA::ServerRequest_ptr req)
00076 {
00077   TAO_Dynamic_Adapter *dynamic_adapter =
00078     ACE_Dynamic_Service<TAO_Dynamic_Adapter>::instance (
00079         TAO_ORB_Core::dynamic_adapter_name ()
00080       );
00081 
00082   dynamic_adapter->server_request_release (req);
00083 }
00084 
00085 #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
00086 
00087 template class ACE_Dynamic_Service<TAO_Dynamic_Adapter>;
00088 
00089 #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
00090 
00091 #pragma instantiate ACE_Dynamic_Service<TAO_Dynamic_Adapter>
00092 
00093 #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
00094 
00095 

Generated on Mon Jun 16 13:48:18 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002