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

SWBfile.h

Go to the documentation of this file.
00001 // SWBfile.h: class for SwitchBoard annotation file
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 _SWBFILE_H_
00010 #define _SWBFILE_H_
00011 
00012 #include <string>
00013 #include <fstream>
00014 #include "Record.h"
00015 #include "RE.h"
00016 
00018 class SWBfile : public Record
00019 {
00020 private:
00021   bool turnover;
00022   string speaker;
00023   string uttn;
00024   string start;
00025   string dur;
00026   string label;
00027   RE *Sre;
00028 
00029   virtual void
00030   read_entry();
00031 
00032   void
00033   init_re();
00034 
00035 public:
00036   SWBfile();
00037   SWBfile(const string &filename);
00038   ~SWBfile();
00039 
00041   bool read_record();
00043   string get_time0();
00045   string get_time();
00047   string get_label();
00049   string get_spkr();
00051   string get_uttn();
00053   string get_next_time();
00060   bool turn_over();
00061 };
00062 
00063 #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