00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file ImR_Client.h 00006 * 00007 * $Id: ImR_Client.h 84281 2009-01-30 15:01:17Z wotte $ 00008 * 00009 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef TAO_IMR_CLIENT_ADAPTER_IMPL_H 00015 #define TAO_IMR_CLIENT_ADAPTER_IMPL_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "tao/ImR_Client/imr_client_export.h" 00020 00021 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00022 # pragma once 00023 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00024 00025 #include "tao/PortableServer/ImR_Client_Adapter.h" 00026 00027 #include "ace/Service_Config.h" 00028 00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 class ServerObject_i; 00032 00033 namespace TAO 00034 { 00035 namespace ImR_Client 00036 { 00037 /** 00038 * @class IFR_Client_Adapter_Impl 00039 * 00040 * @brief IFR_Client_Adapter_Impl. 00041 * 00042 * Class that adapts various functions in the PortableServer library 00043 * which use the Implementation Repository. This is the derived class 00044 * that contains the actual implementations. 00045 */ 00046 class TAO_IMR_Client_Export ImR_Client_Adapter_Impl 00047 : public ::TAO::Portable_Server::ImR_Client_Adapter 00048 { 00049 public: 00050 /// Constructor. 00051 ImR_Client_Adapter_Impl (void); 00052 00053 /// Used to force the initialization of the PortableServer code. 00054 static int Initializer (void); 00055 00056 /// ImplRepo helper method, notify the ImplRepo on startup 00057 virtual void imr_notify_startup (TAO_Root_POA* poa); 00058 00059 /// ImplRepo helper method, notify the ImplRepo on shutdown 00060 virtual void imr_notify_shutdown (TAO_Root_POA* poa); 00061 00062 private: 00063 /// Implementation Repository Server Object 00064 ServerObject_i *server_object_; 00065 }; 00066 00067 static int 00068 TAO_Requires_ImR_Client_Initializer = 00069 TAO::ImR_Client::ImR_Client_Adapter_Impl::Initializer (); 00070 } 00071 } 00072 00073 00074 ACE_STATIC_SVC_DECLARE (ImR_Client_Adapter_Impl) 00075 ACE_FACTORY_DECLARE (TAO_IMR_Client, ImR_Client_Adapter_Impl) 00076 00077 TAO_END_VERSIONED_NAMESPACE_DECL 00078 00079 #include /**/ "ace/post.h" 00080 00081 #endif /* TAO_IMR_CLIENT_ADAPTER_IMPL_H */