3 //=============================================================================
7 * The Interface Repository administration visitor base class.
9 * @author Jeff Parsons <parsons@cs.wustl.edu>
11 //=============================================================================
14 #ifndef TAO_IFR_VISITOR_H
15 #define TAO_IFR_VISITOR_H
17 #include "ast_visitor.h"
18 #include "be_extern.h"
19 #include "tao/Environment.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
30 * Base class for the IfR administration visitors. The methods are
31 * not pure virtual to facilitate the implementation of some
32 * derived visitors that override only a few.
34 class ifr_visitor
: public ast_visitor
37 virtual ~ifr_visitor (void);
39 virtual int visit_decl (AST_Decl
*d
);
40 virtual int visit_scope (UTL_Scope
*node
);
41 virtual int visit_type (AST_Type
*node
);
42 virtual int visit_predefined_type (AST_PredefinedType
*node
);
43 virtual int visit_module (AST_Module
*node
);
44 virtual int visit_interface (AST_Interface
*node
);
45 virtual int visit_interface_fwd (AST_InterfaceFwd
*node
);
46 virtual int visit_valuebox (AST_ValueBox
*node
);
47 virtual int visit_valuetype (AST_ValueType
*node
);
48 virtual int visit_valuetype_fwd (AST_ValueTypeFwd
*node
);
49 virtual int visit_component (AST_Component
*node
);
50 virtual int visit_component_fwd (AST_ComponentFwd
*node
);
51 virtual int visit_template_module (AST_Template_Module
*node
);
52 virtual int visit_template_module_inst (AST_Template_Module_Inst
*node
);
53 virtual int visit_template_module_ref (AST_Template_Module_Ref
*node
);
54 virtual int visit_porttype (AST_PortType
*node
);
55 virtual int visit_provides (AST_Provides
*node
);
56 virtual int visit_uses (AST_Uses
*node
);
57 virtual int visit_publishes (AST_Publishes
*node
);
58 virtual int visit_emits (AST_Emits
*node
);
59 virtual int visit_consumes (AST_Consumes
*node
);
60 virtual int visit_extended_port (AST_Extended_Port
*node
);
61 virtual int visit_mirror_port (AST_Mirror_Port
*node
);
62 virtual int visit_connector (AST_Connector
*node
);
63 virtual int visit_eventtype (AST_EventType
*node
);
64 virtual int visit_eventtype_fwd (AST_EventTypeFwd
*node
);
65 virtual int visit_home (AST_Home
*node
);
66 virtual int visit_factory (AST_Factory
*node
);
67 virtual int visit_finder (AST_Finder
*node
);
68 virtual int visit_structure (AST_Structure
*node
);
69 virtual int visit_structure_fwd (AST_StructureFwd
*node
);
70 virtual int visit_exception (AST_Exception
*node
);
71 virtual int visit_expression (AST_Expression
*node
);
72 virtual int visit_enum (AST_Enum
*node
);
73 virtual int visit_operation (AST_Operation
*node
);
74 virtual int visit_field (AST_Field
*node
);
75 virtual int visit_argument (AST_Argument
*node
);
76 virtual int visit_attribute (AST_Attribute
*node
);
77 virtual int visit_union (AST_Union
*node
);
78 virtual int visit_union_fwd (AST_UnionFwd
*node
);
79 virtual int visit_union_branch (AST_UnionBranch
*node
);
80 virtual int visit_union_label (AST_UnionLabel
*node
);
81 virtual int visit_constant (AST_Constant
*node
);
82 virtual int visit_enum_val (AST_EnumVal
*node
);
83 virtual int visit_array (AST_Array
*node
);
84 virtual int visit_sequence (AST_Sequence
*node
);
85 virtual int visit_string (AST_String
*node
);
86 virtual int visit_typedef (AST_Typedef
*node
);
87 virtual int visit_root (AST_Root
*node
);
88 virtual int visit_native (AST_Native
*node
);
89 virtual int visit_param_holder (AST_Param_Holder
*node
);
91 /// Accessor for our lock.
92 ACE_Lock
&lock (void) const;
95 // Not abstract but we want to force subclassing anyway.
102 // Not supported, generate an error
103 int visit_fixed (AST_Fixed
*node
);
106 #endif /* TAO_IFR_VISITOR_H */