Synopsis - Cross-Reference

File: /Synopsis/Parsers/IDL/idlvalidate.h
 1// -*- c++ -*-
 2//                          Package   : omniidl
 3// idlvalidate.h            Created on: 1999/10/26
 4//			    Author    : Duncan Grisby (dpg1)
 5//
 6//    Copyright (C) 1999 AT&T Laboratories Cambridge
 7//
 8//  This file is part of omniidl.
 9//
10//  omniidl is free software; you can redistribute it and/or modify it
11//  under the terms of the GNU General Public License as published by
12//  the Free Software Foundation; either version 2 of the License, or
13//  (at your option) any later version.
14//
15//  This program is distributed in the hope that it will be useful,
16//  but WITHOUT ANY WARRANTY; without even the implied warranty of
17//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18//  General Public License for more details.
19//
20//  You should have received a copy of the GNU General Public License
21//  along with this program; if not, write to the Free Software
22//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
23//  02111-1307, USA.
24//
25// Description:
26//   
27//   Visitor object to validate the tree
28
29// $Id: idlvalidate.h,v 1.6.2.1 2003/03/23 21:01:43 dgrisby Exp $
30// $Log: idlvalidate.h,v $
31// Revision 1.6.2.1  2003/03/23 21:01:43  dgrisby
32// Start of omniORB 4.1.x development branch.
33//
34// Revision 1.3.2.2  2000/11/01 15:44:56  dpg1
35// Support for forward-declared structs and unions
36//
37// Revision 1.3.2.1  2000/07/17 10:36:05  sll
38// Merged from omni3_develop the diff between omni3_0_0_pre3 and omni3_0_0.
39//
40// Revision 1.4  2000/07/13 15:25:52  dpg1
41// Merge from omni3_develop for 3.0 release.
42//
43// Revision 1.1  1999/10/27 14:05:53  dpg1
44// *** empty log message ***
45//
46
47#ifndef _idlvalidate_h_
48#define _idlvalidate_h_
49
50#include <idlvisitor.h>
51
52// AstValidateVisitor currently just issues warnings if interfaces or
53// values are forward declared but never fully declared
54
55class AstValidateVisitor : public AstVisitor {
56public:
57  AstValidateVisitor() {}
58  virtual ~AstValidateVisitor() {}
59
60  void visitAST              (AST*           a);
61  void visitModule           (Module*        m);
62  void visitInterface        (Interface*     i);
63  void visitForward          (Forward*       f);
64  void visitValueForward     (ValueForward*  f);
65  void visitStructForward    (StructForward* f);
66  void visitUnionForward     (UnionForward*  f);
67};
68
69
70
71
72#endif // _idlvalidate_h_