summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be_include/be_visitor_exception/exception.h
blob: 01b6ac319c75f8874c7008f2e1934b30b55bbd51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* -*- C++ -*- */

//=============================================================================
/**
 *  @file    exception.h
 *
 *  $Id$
 *
 *  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
 *
 * @brief be_visitor_exception
 *
 * This is the base visitor for exception
 */
class be_visitor_exception : public be_visitor_scope
{
public:
  /// ctor
  be_visitor_exception (be_visitor_context *ctx);

  /// dtor
  ~be_visitor_exception (void);

  /// visit exception. We provide code for this method in the derived class
  virtual int visit_exception (be_exception *node);

  // =visit operations on syntactically valid elements in our scope

  /// visit field
  virtual int visit_field (be_field *node);
};

#endif /* _BE_VISITOR_EXCEPTION_EXCEPTION_H_ */