Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / TAO_IDL / be_include / be_operation.h
blob9e0481f35a034d78b08fcdd6c397499edb2cdea1
2 //=============================================================================
3 /**
4 * @file be_operation.h
6 * Extension of class AST_Operation that provides additional means for C++
7 * mapping.
9 * @author Copyright 1994-1995 by Sun Microsystems
10 * @author Inc. and Aniruddha Gokhale
12 //=============================================================================
14 #ifndef BE_OPERATION_H
15 #define BE_OPERATION_H
17 #include "be_scope.h"
18 #include "be_decl.h"
19 #include "be_codegen.h"
20 #include "ast_operation.h"
22 class AST_Type;
23 class be_visitor;
24 class be_argument;
25 //class be_operation_strategy;
27 class be_operation : public virtual AST_Operation,
28 public virtual be_scope,
29 public virtual be_decl
31 public:
32 be_operation (AST_Type *rt,
33 AST_Operation::Flags fl,
34 UTL_ScopedName *n,
35 bool local,
36 bool abstract);
38 ~be_operation (void);
40 /// Cleanup method.
41 virtual void destroy (void);
43 // Visiting.
44 virtual int accept (be_visitor *visitor);
46 /// Add an argument to the scope.
47 virtual AST_Argument *be_add_argument (AST_Argument *arg);
49 /// Insert an exception at the head of the list.
50 int be_insert_exception (AST_Exception *ex);
52 bool is_sendc_ami (void) const;
53 void is_sendc_ami (bool val);
55 bool is_excep_ami (void) const;
56 void is_excep_ami (bool val);
58 bool is_attr_op (void) const;
59 void is_attr_op (bool val);
61 // Narrowing
62 DEF_NARROW_FROM_DECL (be_operation);
63 DEF_NARROW_FROM_SCOPE (be_operation);
65 protected:
66 bool is_sendc_ami_;
67 bool is_excep_ami_;
68 bool is_attr_op_;
71 #endif