Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / TAO_IDL / be_include / be_operation.h
blob3ecd296557382903e0b282c4120eb86e9c59537a
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 ();
40 /// Cleanup method.
41 virtual void destroy ();
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 () const;
53 void is_sendc_ami (bool val);
55 bool is_excep_ami () const;
56 void is_excep_ami (bool val);
58 bool is_attr_op () const;
59 void is_attr_op (bool val);
61 protected:
62 bool is_sendc_ami_;
63 bool is_excep_ami_;
64 bool is_attr_op_;
67 #endif