blob: 712783903bc70b8d130faf1a3ef1339693b85c9c (
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
|
// This may look like C, but it's really -*- C++ -*-
// $Id$
#ifndef _AST_HOME_AST_HOME_HH
#define _AST_HOME_AST_HOME_HH
#include "ast_interface.h"
#include "ace/Unbounded_Queue.h"
class AST_Home;
class AST_Component;
class AST_ValueType;
class TAO_IDL_FE_Export AST_Home : public virtual AST_Interface
{
public:
AST_Home (void);
AST_Home (UTL_ScopedName *n,
AST_Home *base_home,
AST_Component *managed_component,
AST_ValueType *primary_key);
virtual ~AST_Home (void);
// Accessors.
AST_Home *base_home (void) const;
AST_Component *managed_component (void) const;
AST_ValueType *primary_key (void) const;
ACE_Unbounded_Queue<AST_Operation *> &factories (void);
void factories (AST_Operation *d);
ACE_Unbounded_Queue<AST_Operation *> &finders (void);
void finders (AST_Operation *d);
// Cleanup function.
virtual void destroy (void);
// Narrowing.
DEF_NARROW_METHODS1(AST_Home, AST_Interface);
DEF_NARROW_FROM_DECL(AST_Home);
DEF_NARROW_FROM_SCOPE(AST_Home);
// AST Dumping.
virtual void dump (ACE_OSTREAM_TYPE &o);
// Visiting.
virtual int ast_accept (ast_visitor *visitor);
private:
AST_Home *pd_base_home;
AST_Component *pd_managed_component;
AST_ValueType *pd_primary_key;
ACE_Unbounded_Queue<AST_Operation *> pd_factories;
ACE_Unbounded_Queue<AST_Operation *> pd_finders;
};
#endif // _AST_HOME_AST_HOME_HH
|