blob: f7ef9d029cdb38821dce66079a9c6663b1262792 (
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file CIAO_EventService_Factory_impl.h
*
* $Id$
*
* @author Gan Deng <dengg@dre.vanderbilt.edu>
* @author George Edwards <g.edwards@vanderbilt.edu>
*/
//=============================================================================
#ifndef CIAO_EVENTSERVICE_FACTORY_IMPL_H
#define CIAO_EVENTSERVICE_FACTORY_IMPL_H
#include /**/ "ace/pre.h"
#include "CIAO_Events_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ciaosvcs/Events/CIAO_Events_Base/CIAO_EventServiceBase.h"
namespace CIAO
{
class CIAO_EVENTS_Export EventService_Factory_impl
: public ACE_Service_Object
{
public:
EventService_Factory_impl (void);
EventService_Factory_impl (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa);
virtual ~EventService_Factory_impl (void);
/// A factory method which creates an CIAO_Event_Service object.
virtual CIAO_Event_Service_ptr create (EventServiceType type,
const char * ec_name);
virtual void initialize (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa);
/// Used to force the initialization.
static int Initializer (void);
private:
/// Reference to the ORB.
CORBA::ORB_var orb_;
/// Reference to the Root POA
PortableServer::POA_var poa_;
};
ACE_STATIC_SVC_DECLARE (EventService_Factory_impl)
ACE_FACTORY_DECLARE (CIAO_EVENTS, EventService_Factory_impl)
}
#if defined (ACE_HAS_BROKEN_STATIC_CONSTRUCTORS)
typedef int (*CIAO_Module_Initializer) (void);
static CIAO_Module_Initializer
CIAO_Requires_EventService_Initializer =
&CIAO::EventService_Factory_impl::Initializer;
#else
static int
CIAO_Requires_EventService_Initializer =
CIAO::EventService_Factory_impl::Initializer ();
#endif /* ACE_HAS_BROKEN_STATIC_CONSTRUCTORS */
#include /**/ "ace/post.h"
#endif /* CIAO_EVENTSERVICE_FACTORY_IMPL_H */
|