summaryrefslogtreecommitdiff
path: root/TAO/CIAO/DAnCE/ciao/CIAO_EventService_Factory.h
blob: 811bc8bb5ff6887125a87a890390a22cb9c60776 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// -*- C++ -*-

//=============================================================================
/**
 *  @file CIAO_EventService_Factory.h
 *
 *  $Id$
 *
 *  @author George Edwards <g.edwards@vanderbilt.edu>
 */
//=============================================================================

#ifndef CIAO_EVENTSERVICE_FACTORY_H
#define CIAO_EVENTSERVICE_FACTORY_H
#include /**/ "ace/pre.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "CIAO_EventServiceBase.h"

namespace CIAO
{
  /**
   * @class EventService_Factory
   *
   * An abstract factory that creates event configuration and service objects.
   * A concrete implementation is obtained by CIAO::Container via the ACE
   * service configurator.
   */
  class CIAO_EVENTS_Export EventService_Factory :
    public ACE_Service_Object
  {

  public:

    /**
     * @fn ~EventService_Factory (void)
     *
     * Destructor.
     */
    virtual ~EventService_Factory (void);

    /**
     * @fn Consumer_Config_ptr create_consumer_config (EventServiceType type)
     *
     * Creates and returns a new Consumer_Config object corresponding to the
     * type specified by @c type.
     */
    virtual Consumer_Config_ptr create_consumer_config (
      EventServiceType type) = 0;

    /**
     * @fn Supplier_Config_ptr create_supplier_config (EventServiceType type)
     *
     * Creates and returns a new Supplier_Config object corresponding to the
     * type specified by @c type.
     */
    virtual Supplier_Config_ptr create_supplier_config (
      EventServiceType type) = 0;

    /**
     * @fn EventServiceBase * create (EventServiceType type)
     *
     * Creates and returns a new EventServiceBase object corresponding to the
     * type specified by @c type.
     */
    virtual EventServiceBase * create (
      EventServiceType type) = 0;

    virtual void init (
      CORBA::ORB_ptr orb,
      PortableServer::POA_ptr poa) = 0;

  };

}

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