Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / be_include / be_enum.h
blob6d78edbb63960402607a17a05bc7b14942c4e795
1 /* -*- c++ -*- */
3 //=============================================================================
4 /**
5 * @file be_enum.h
7 * Extension of class AST_Enum that provides additional means for C++
8 * mapping.
10 * @author Copyright 1994-1995 by Sun Microsystems
11 * @author Inc. and Aniruddha Gokhale
13 //=============================================================================
15 #ifndef BE_ENUM_H
16 #define BE_ENUM_H
18 #include "be_scope.h"
19 #include "be_type.h"
20 #include "ast_enum.h"
22 class be_visitor;
24 class be_enum : public virtual AST_Enum,
25 public virtual be_scope,
26 public virtual be_type
28 public:
29 be_enum (UTL_ScopedName *n,
30 bool local,
31 bool abstract);
33 /// Overridden from class be_type.
34 virtual void gen_ostream_operator (TAO_OutStream *os,
35 bool use_underscore);
37 /// Cleanup method.
38 virtual void destroy (void);
40 // Visiting.
41 virtual int accept (be_visitor *visitor);
43 // Narrowing.
44 DEF_NARROW_FROM_DECL (be_enum);
45 DEF_NARROW_FROM_SCOPE (be_enum);
48 #endif