diff options
Diffstat (limited to 'CIAO/ciao/Containers/Generic/StubContainerInterceptorRegistration_Impl.h')
-rw-r--r-- | CIAO/ciao/Containers/Generic/StubContainerInterceptorRegistration_Impl.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/CIAO/ciao/Containers/Generic/StubContainerInterceptorRegistration_Impl.h b/CIAO/ciao/Containers/Generic/StubContainerInterceptorRegistration_Impl.h new file mode 100644 index 00000000000..11ce78b1731 --- /dev/null +++ b/CIAO/ciao/Containers/Generic/StubContainerInterceptorRegistration_Impl.h @@ -0,0 +1,57 @@ +/** + * @file StubContainerInterceptorRegistration_Impl.h + * + * $Id$ + * + * @author Marcel Smit <msmit@remedy.nl> + */ +#if !defined STUBCONTAINERINTERCEPTORREGISTRATION_IMPL_H +#define STUBCONTAINERINTERCEPTORREGISTRATION_IMPL_H + +#include /**/ "ace/pre.h" + +#include "ciao/Containers/Generic/Generic_Container_export.h" + +#include "ccm/Extension/CCM_StubContainerInterceptorC.h" +#include "ccm/Extension/CCM_StubContainerInterceptorRegistrationC.h" +#include "ciao/Containers/Generic/Interceptor_Registration_T.h" + +namespace CIAO +{ + /** + * @class StubContainerInterceptorRegistration_Impl + * + * @brief Implementation of the CCM_ServerContainerInterceptorRegistration interface + * + * Implementation of the registration process of Server Container + * Interceptors + * + * Part of COPI (Container Portable Interceptor) + */ + class GENERIC_CONTAINER_Export StubContainerInterceptorRegistration_Impl + : public Interceptor_Registration_T< + ::Components::ContainerPortableInterceptor::StubContainerInterceptorRegistration, + ::Components::ContainerPortableInterceptor::StubContainerInterceptor> + { + public: + StubContainerInterceptorRegistration_Impl (void); + virtual ~StubContainerInterceptorRegistration_Impl (void); + + /// Registers a StubContainerInterceptor. + /// Returns a cookie for this registration. + virtual ::Components::Cookie * + register_stub_interceptor ( + ::Components::ContainerPortableInterceptor::StubContainerInterceptor_ptr ci); + + /// Unregisters a StubContainerInterceptor. + /// Throws an InvalidRegistration exception when the + /// StubContainerInterceptor cannot be found. + /// Returns the StubContainerInterceptor + virtual ::Components::ContainerPortableInterceptor::StubContainerInterceptor_ptr + unregister_stub_interceptor (::Components::Cookie * cookie); + }; +} + +#include /**/ "ace/post.h" + +#endif /* STUBCONTAINERINTERCEPTORREGISTRATION_IMPL_H */ |