Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TBparser.h

Go to the documentation of this file.
00001 // TBparser.h: TreeBank file parser class definition
00002 // Haejoong Lee, Xiaoyi Ma, Steven Bird
00003 // Copyright (C) 2001 Linguistic Data Consortium, U Penn.
00004 // Web: http://www.ldc.upenn.edu/; Email: ldc@ldc.upenn.edu
00005 // For license information, see the file `LICENSE' included
00006 // with the distribution.
00007 
00008 
00009 #ifndef _TBPARSER_H_
00010 #define _TBPARSER_H_
00011 
00012 #include "agfioError.h"
00013 #include "TBhandler.h"
00014 
00016 class TBparser
00017 {
00018 private:
00019   TBhandler* handler;
00020   
00021 public:
00023   class ParseError: public agfioError
00024   {
00025   public:
00026     ParseError(const string& s): agfioError("TBparser:" + s) {}
00027   };
00028 
00033   TBparser(TBhandler& h): handler(&h) {}
00035   void set_handler(TBhandler& h) { handler = &h; }
00037   void parse(const string& filename, bool input_is_a_string=false);
00038 
00039 };
00040 
00041 #endif

Generated at Wed Jul 3 14:54:04 2002 for Annotation Graph API by doxygen1.2.7 written by Dimitri van Heesch, © 1997-2001