summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Notify/Topology_Factory.h
blob: 7526159f717b61d6549a091cd297d90f1bb2157e (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
/**
 *  @file Topology_Factory.h
 *
 *  $Id$
 *
 *  @author Dale Wilson <wilson_d@ociweb.com>
 *
 *
 */
#ifndef TAO_NOTIFY_TOPOLOGY_FACTORY_H
#define TAO_NOTIFY_TOPOLOGY_FACTORY_H
#include /**/ "ace/pre.h"

#include "notify_serv_export.h"

#include "ace/Service_Object.h"

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

namespace TAO_NOTIFY
{
  class Topology_Saver;
  class Topology_Loader;

  /**
   * @brief Service Object to allow dynamic control of the loaded saver factory.
   *
   */
  class TAO_Notify_Serv_Export Topology_Factory : public ACE_Service_Object
  {
  public:
    /// Create a Saver.
    /// \return a pointer to a Topology_Saver which must be deleted
    /// by the caller.
    virtual Topology_Saver* create_saver () = 0;
    /// Create a Loader
    /// \return a pointer to a Topology_Loader which must be deleted
    /// by the caller.
    virtual Topology_Loader* create_loader () = 0;
  };
}

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