diff options
Diffstat (limited to 'TAO/TAO_IDL/be_include/be_visitor_exception/exception.h')
-rw-r--r-- | TAO/TAO_IDL/be_include/be_visitor_exception/exception.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h b/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h new file mode 100644 index 00000000000..c4be6b317dc --- /dev/null +++ b/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h @@ -0,0 +1,52 @@ +/* -*- C++ -*- */ +// +// $Id$ +// + +// ============================================================================ +// +// = LIBRARY +// TAO IDL +// +// = FILENAME +// exception.h +// +// = DESCRIPTION +// Visitor for Exceptions. +// This is the generic (common) visitor for all exceptions. +// +// = AUTHOR +// Aniruddha Gokhale +// +// ============================================================================ + +#ifndef _BE_VISITOR_EXCEPTION_EXCEPTION_H_ +#define _BE_VISITOR_EXCEPTION_EXCEPTION_H_ + +class be_visitor_exception : public be_visitor_scope +{ + // + // = TITLE + // be_visitor_exception + // + // = DESCRIPTION + // This is the base visitor for exception + // + // +public: + be_visitor_exception (be_visitor_context *ctx); + // ctor + + ~be_visitor_exception (void); + // dtor + + virtual int visit_exception (be_exception *node); + // visit exception. We provide code for this method in the derived class + + // =visit operations on syntactically valid elements in our scope + + virtual int visit_field (be_field *node); + // visit field +}; + +#endif /* _BE_VISITOR_EXCEPTION_EXCEPTION_H_ */ |