Dynamic_Adapter.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    Dynamic_Adapter.h
00006  *
00007  *  $Id: Dynamic_Adapter.h 80376 2008-01-06 07:37:06Z johnnyw $
00008  *
00009  *  @author  Jeff Parsons <parsons@cs.wustl.edu>
00010  */
00011 //=============================================================================
00012 
00013 #ifndef TAO_DYNAMIC_ADAPTER_H
00014 #define TAO_DYNAMIC_ADAPTER_H
00015 
00016 #include /**/ "ace/pre.h"
00017 #include "ace/Service_Object.h"
00018 
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif /* ACE_LACKS_PRAGMA_ONCE */
00022 
00023 #include /**/ "tao/TAO_Export.h"
00024 #include "tao/Basic_Types.h"
00025 
00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00027 
00028 namespace CORBA
00029 {
00030   class Object;
00031   typedef Object *Object_ptr;
00032 
00033   class ORB;
00034   typedef ORB *ORB_ptr;
00035 
00036   class NVList;
00037   typedef NVList *NVList_ptr;
00038 
00039   class NamedValue;
00040   typedef NamedValue *NamedValue_ptr;
00041 
00042   class ExceptionList;
00043   typedef ExceptionList *ExceptionList_ptr;
00044 
00045   class Request;
00046   typedef Request *Request_ptr;
00047 
00048   class Context;
00049   typedef Context *Context_ptr;
00050 
00051   class ServerRequest;
00052   typedef ServerRequest *ServerRequest_ptr;
00053 
00054   typedef ULong Flags;
00055 }
00056 
00057 /**
00058  * @class TAO_Dynamic_Adapter
00059  *
00060  * @brief TAO_Dynamic_Adapter.
00061  *
00062  * Class that adapts various functions in the CORBA namespace
00063  * related to DII/DSI, which is no longer found in the TAO library.
00064  * This is a base for the actual implementation in the DynamicInterface
00065  * library.
00066  */
00067 class TAO_Export TAO_Dynamic_Adapter : public ACE_Service_Object
00068 {
00069 public:
00070   virtual ~TAO_Dynamic_Adapter (void);
00071 
00072   // CORBA::Object::_create_request and CORBA::Object::_request.
00073 
00074   virtual void create_request (CORBA::Object_ptr obj,
00075                                CORBA::ORB_ptr orb,
00076                                const char *operation,
00077                                CORBA::NVList_ptr arg_list,
00078                                CORBA::NamedValue_ptr result,
00079                                CORBA::ExceptionList_ptr exceptions,
00080                                CORBA::Request_ptr &request,
00081                                CORBA::Flags req_flags) = 0;
00082 
00083   virtual CORBA::Request_ptr request (CORBA::Object_ptr obj,
00084                                       CORBA::ORB_ptr orb,
00085                                       const char *op) = 0;
00086 
00087   // CORBA::is_nil and CORBA::release for Context, Request, and ServerRequest.
00088 
00089   virtual CORBA::Boolean context_is_nil (CORBA::Context_ptr ctx) = 0;
00090 
00091   virtual CORBA::Boolean request_is_nil (CORBA::Request_ptr req) = 0;
00092 
00093   virtual CORBA::Boolean server_request_is_nil (CORBA::ServerRequest_ptr req) = 0;
00094 
00095   virtual void context_release (CORBA::Context_ptr ctx) = 0;
00096 
00097   virtual void request_release (CORBA::Request_ptr req) = 0;
00098 
00099   virtual void server_request_release (CORBA::ServerRequest_ptr req) = 0;
00100 
00101   // CORBA::ORB::create_exception_list.
00102   virtual void create_exception_list (CORBA::ExceptionList_ptr &) = 0;
00103 };
00104 
00105 TAO_END_VERSIONED_NAMESPACE_DECL
00106 
00107 #include /**/ "ace/post.h"
00108 #endif /* TAO_DYNAMIC_ADAPTER_H */

Generated on Tue Feb 2 17:37:51 2010 for TAO by  doxygen 1.4.7