00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef IMR_ADAPTER_ACTIVATOR_H
00015 #define IMR_ADAPTER_ACTIVATOR_H
00016
00017 #include "tao/PortableServer/PortableServer.h"
00018 #include "tao/PortableServer/AdapterActivatorC.h"
00019 #include "tao/PortableServer/ServantLocatorC.h"
00020
00021 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00022 # pragma once
00023 #endif
00024
00025 #include "tao/LocalObject.h"
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 class ImR_Adapter
00039 : public PortableServer::AdapterActivator,
00040 public CORBA::LocalObject
00041 {
00042 public:
00043 ImR_Adapter();
00044
00045
00046 virtual CORBA::Boolean unknown_adapter (
00047 PortableServer::POA_ptr parent,
00048 const char *name
00049 ACE_ENV_ARG_DECL_WITH_DEFAULTS
00050 )
00051 ACE_THROW_SPEC ((CORBA::SystemException));
00052
00053 void init(PortableServer::ServantLocator_ptr servant);
00054 private:
00055
00056 PortableServer::ServantLocator_ptr servant_locator_;
00057 };
00058
00059 #endif