Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

boss_duration_de.h

Go to the documentation of this file.
00001 /* boss_duration_de.h    $Revision: 1.4 $ $Date: 2005/12/10 20:33:54 $
00002    Copyright (C) 2001 University of Bonn.
00003    http://www.ikp.uni-bonn.de/boss
00004 
00005    This program is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU General Public License
00007    as published by the Free Software Foundation; either version 2
00008    of the License, or (at your option) any later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014 
00015    You should have received a copy of the GNU General Public License
00016    along with this program; if not, write to the Free Software
00017    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. */
00018 
00024 using namespace std;
00025 
00026 #ifndef BOSS_DURATION_DE_H
00027 #define BOSS_DURATION_DE_H
00028 
00029 #include "boss_duration.h"
00030 #include <string>
00031 #include <fstream>
00032 #include <map>
00033 
00042 class BOSS_Duration_DE : public BOSS_Duration {
00043  protected:
00044          
00045   FMap getFeatures(const xercesc::DOMElement* element) const;
00046   void set_features(xercesc::DOMNode* sentence) const;
00047   Duration find_dur(const xercesc::DOMElement* element,
00048                     BOSS::DOMNodeVector & wlist,
00049                     BOSS::DOMNodeVector & stmp,
00050                     BOSS::DOMNodeVector & ptmp,
00051                     BOSS::DOMNodeVector & htmp,
00052                     unsigned w, unsigned s, unsigned p) const;
00053   //  Duration find_dur(const xercesc::DOMElement* element, unsigned w, unsigned s, unsigned p);
00054   float correct_dur(float mean, const unsigned p, const unsigned pnumber) const;
00055 
00056  public:
00058   BOSS_Duration_DE::BOSS_Duration_DE(BOSS::Config & c, MySQL_Handler * db) : BOSS_Duration(c, db) {}
00059 //  virtual ~BOSS_Duration_DE();
00060   virtual string getDescription();
00061 };
00062 
00063 extern "C" BOSS::Module * create(BOSS::Config & _cl, MySQL_Handler * _db) {
00064   return new BOSS_Duration_DE(_cl, _db);
00065 }
00066 
00067 extern "C" void destroy(BOSS_Duration_DE * cm) {
00068   delete cm;
00069 }
00070  // end of boss_duration group
00072 #endif
00073 
00074 

Generated on Tue Dec 20 23:14:37 2005 for BOSS by doxygen 1.3.6