diff options
Diffstat (limited to 'TAO/TAO_IDL/be_include/be_visitor_union/union.h')
-rw-r--r-- | TAO/TAO_IDL/be_include/be_visitor_union/union.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be_include/be_visitor_union/union.h b/TAO/TAO_IDL/be_include/be_visitor_union/union.h new file mode 100644 index 00000000000..568f32b6d8b --- /dev/null +++ b/TAO/TAO_IDL/be_include/be_visitor_union/union.h @@ -0,0 +1,52 @@ +/* -*- c++ -*- */ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO IDL +// +// = FILENAME +// union.h +// +// = DESCRIPTION +// Visitor for the Union class. +// This one is a generic visitor. +// +// = AUTHOR +// Aniruddha Gokhale +// +// ============================================================================ + +#if !defined (_BE_VISITOR_UNION_UNION_H_) +#define _BE_VISITOR_UNION_UNION_H_ + +class be_visitor_union : public be_visitor_scope +{ + // + // = TITLE + // be_visitor_union + // + // = DESCRIPTION + // This is the base visitor for union + // + // +public: + be_visitor_union (be_visitor_context *ctx); + // constructor + + ~be_visitor_union (void); + // destructor + + virtual int visit_union (be_union *node); + // visit union. We provide code for this method in the derived class + + // =visit operations on syntactically valid elements in our scope + + virtual int visit_union_branch (be_union_branch *node); + // visit union_branch +}; + +#endif /* _BE_VISITOR_UNION_UNION_H_ */ |