blob: 984bc673db207a0ddc34fc50ce771b69e84286d5 (
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
|
// $Id$
/* -*- c++ -*- */
// ============================================================================
//
// = LIBRARY
// TAO IDL Backend
//
// = FILENAME
// be_visitor_factory.h
//
// = DESCRIPTION
// Define a visitor Factory which is a singleton.
//
// = AUTHOR
// Aniruddha Gokhale
//
// ============================================================================
#ifndef TAO_BE_VISITOR_FACTORY_H
#define TAO_BE_VISITOR_FACTORY_H
#include "ace/Singleton.h"
#include "ace/Synch.h"
class be_visitor;
class be_visitor_context;
class TAO_Visitor_Factory
{
// =TITLE
// TAO_Visitor_Factory
//
// =DESCRIPTION
// Visitor factory class
public:
TAO_Visitor_Factory (void);
~TAO_Visitor_Factory (void);
be_visitor *make_visitor (be_visitor_context *);
// Make a visitor.
};
// Singleton instance of the BE Visitor Factory.
typedef ACE_Singleton<TAO_Visitor_Factory, ACE_SYNCH_RECURSIVE_MUTEX>
TAO_VISITOR_FACTORY;
#endif /* if !defined _TAO_BE_VISITOR_FACTORY_H_ */
|