Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / be_include / be_factory.h
blob97b8fdabec2a838d21ef8a270270cc12c8376f67
2 //=============================================================================
3 /**
4 * @file be_factory.h
6 * Extension of class AST_Factory that provides additional means for C++
7 * mapping.
9 * @author Copyright 1994-1995 by Sun Microsystems
10 * @author Inc. and Boris Kolpackov <bosk@ipmce.ru>
12 //=============================================================================
14 #ifndef BE_FACTORY_H
15 #define BE_FACTORY_H
17 #include "be_scope.h"
18 #include "be_decl.h"
19 #include "ast_factory.h"
21 class AST_Type;
22 class UTL_StrList;
23 class be_visitor;
24 class be_argument;
26 class be_factory : public virtual AST_Factory,
27 public virtual be_scope,
28 public virtual be_decl
30 public:
31 be_factory (UTL_ScopedName *n);
33 ~be_factory (void);
35 /// Cleanup method.
36 virtual void destroy (void);
38 // Visiting.
39 virtual int accept (be_visitor *visitor);
41 // Add an argument to the scope.
42 virtual AST_Argument *be_add_argument (AST_Argument *arg);
44 // Narrowing
45 DEF_NARROW_FROM_DECL (be_factory);
46 DEF_NARROW_FROM_SCOPE (be_factory);
49 #endif // BE_FACTORY_H