summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Notify/Notify_Default_Collection_Factory.h
blob: 497f7b97a8a2de22403c3ac1fc1a532474cfc02f (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
/* -*- C++ -*- */
//=============================================================================
/**
 *  @file   Notify_Default_Collection_Factory.h
 *
 *  $Id$
 *
 * Default factory for collections
 *
 *
 *  @author Pradeep Gore <pradeep@cs.wustl.edu>
 */
//=============================================================================


#ifndef NOTIFY_DEFAULT_COLLECTION_FACTORY_H
#define NOTIFY_DEFAULT_COLLECTION_FACTORY_H
#include "ace/pre.h"

#include "notify_export.h"
#include "Notify_Collection_Factory.h"
#include "Notify_Listeners.h"
#include "ace/Service_Config.h"

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

/**
 * @class TAO_Notify_Default_Collection_Factory
 *
 * @brief TAO_Notify_Default_Collection_Factory
 *
 * Default factory for collections
 */
class TAO_Notify_Export TAO_Notify_Default_Collection_Factory : public TAO_Notify_Collection_Factory
{
public:
  TAO_Notify_Default_Collection_Factory (void);
  ~TAO_Notify_Default_Collection_Factory ();

  /// Helper function to register the default factory into the service
  /// configurator.
  static int init_svc (void);

  // = The Service_Object entry points
  virtual int init (int argc, ACE_TCHAR* argv[]);
  virtual int fini (void);

  // = Methods to create listener collections.
  /// Create the event listener list.
  virtual TAO_Notify_EventListener_List* create_event_listener_list (ACE_ENV_SINGLE_ARG_DECL);

  /// create update listener list.
 virtual TAO_Notify_UpdateListener_List* create_update_listener_list (ACE_ENV_SINGLE_ARG_DECL);
};

ACE_STATIC_SVC_DECLARE (TAO_Notify_Default_Collection_Factory)
ACE_FACTORY_DECLARE (TAO_Notify,TAO_Notify_Default_Collection_Factory)

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