blob: 7654afca4fc94c2829a9ea2128f3de3c657e23bd (
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
|
// $Id$
/* -*- c++ -*- */
// ============================================================================
//
// = LIBRARY
// TAO IDL Backend
//
// = FILENAME
// be_factory.h
//
// = DESCRIPTION
// Defines a factory that returns a specialized output stream object that
// understands a specific Front End
//
// = AUTHOR
// Aniruddha Gokhale
//
// ============================================================================
#if !defined (TAO_BE_FACTORY_H)
#define TAO_BE_FACTORY_H
class TAO_OutStream_Factory
{
// =TITLE
// TAO_OutStream_Factory
// =DESCRIPTION
// factory to produce specialized instances of the output stream objects
public:
enum TAO_OutStream_Type
{
TAO_SUNSOFT,
TAO_FLICK
};
TAO_OutStream_Factory (void);
// constructor
~TAO_OutStream_Factory (void);
// destructor
TAO_OutStream *make_outstream (void);
// make the specialized out stream class
int set_stream_type (TAO_OutStream_Type t);
// set the stream type
private:
TAO_OutStream_Type strm_type_;
};
typedef ACE_Singleton<TAO_OutStream_Factory, ACE_SYNCH_RECURSIVE_MUTEX> TAO_OUTSTREAM_FACTORY;
// Singleton instance of the OutStream factory
#endif /* if !defined _TAO_BE_FACTORY_H_ */
|