summaryrefslogtreecommitdiff
path: root/CIAO/ciao/Containers/Generic/ServerContainerInterceptorRegistration_Impl.h
blob: c522f9fb6c60760f6aa043f5064e1860c7f8b89e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/**
 *  @file   ServerContainerInterceptorRegistration_Impl.h
 *
 *  $Id$
 *
 *  @author Marcel Smit <msmit@remedy.nl>
 */
#if !defined SERVERCONTAINERINTERCEPTORREGISTRATION_IMPL_H
#define CCM_SERVERCONTAINERINTERCEPTORREGISTRATION_IMPL_H

#include /**/ "ace/pre.h"

#include "ciao/Containers/Generic/Generic_Container_export.h"

#include "ccm/Generic/CCM_ServerContainerInterceptorC.h"
#include "ccm/Generic/CCM_ServerContainerInterceptorRegistrationC.h"
#include "ciao/Containers/Generic/Interceptor_Registration_T.h"

namespace CIAO
{
  /**
   * @class ServerContainerInterceptorRegistration_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 ServerContainerInterceptorRegistration_Impl
    : public Interceptor_Registration_T<
        ::Components::ContainerPortableInterceptor::ServerContainerInterceptorRegistration,
        ::Components::ContainerPortableInterceptor::ServerContainerInterceptor>
  {
  public:
    ServerContainerInterceptorRegistration_Impl (void);
    virtual ~ServerContainerInterceptorRegistration_Impl (void);

    /// Registers a ServerContainerInterceptor.
    /// Return a cookie for this registration.
    virtual ::Components::Cookie *
    register_server_interceptor (
      ::Components::ContainerPortableInterceptor::ServerContainerInterceptor_ptr ci);

    /// Unregisters a ServerContainerInterceptor.
    /// Throws an InvalidRegistration exception when the
    /// ServerContainerInterceptor cannot be found.
    /// Returns the ServerContainerInterceptor
    virtual ::Components::ContainerPortableInterceptor::ServerContainerInterceptor_ptr
    unregister_server_interceptor (::Components::Cookie * cookie);
  };
}

#include /**/ "ace/post.h"

#endif /* CCM_SERVERCONTAINERINTERCEPTORREGISTRATION_IMPL_H */