📄 ghmm_gmldoc.h
字号:
/* * * created: 26 Feb 2002 by Wasinee Rungsarityotin * authors: Wasinee Rungsarityotin (rungsari@molgen.mpg.de) * file : $Source: /cvsroot/ghmm/ghmm/ghmm++/GHMM_GMLDoc.h,v $ * $Id: GHMM_GMLDoc.h,v 1.5 2004/02/26 11:58:59 wasinee Exp $ * revision date : $Date: 2004/02/26 11:58:59 $ _Copyright (C) 1998-2001, ZAIK/ZPR, Universit鋞 zu K鰈n _ _This program is free software; you can redistribute it and/or modify _it under the terms of the GNU General Public License as published by _the Free Software Foundation; either version 2 of the License, or _(at your option) any later version. _ _This program is distributed in the hope that it will be useful, _but WITHOUT ANY WARRANTY; without even the implied warranty of _MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the _GNU General Public License for more details. _ _You should have received a copy of the GNU General Public License _along with this program; if not, write to the Free Software _Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA _ */#ifndef _GHMM_GMLDOC_H#define _GHMM_GMLDOC_H 1#include <xmlio/XMLIO_Document.h>#include <ghmm++/GHMM_GMLAlphabet.h>#include <ghmm++/GHMM_GMLClass.h>#include <ghmm++/GHMM_ContinuousModel.h>#include <ghmm++/GHMM_SWDiscreteModel.h>#ifdef HAVE_NAMESPACESnamespace std {#endifclass GHMM_GraphMLDoc : public XMLIO_Document { public: enum enumModelType { NONE, GHMM_DISCRETE, GHMM_CONTINUOUS }; /** Constructor. */ GHMM_GraphMLDoc(enumModelType model_type=GHMM_DISCRETE); /** Destructor. */ ~GHMM_GraphMLDoc(); /** Returns continuous model, which has been read from file or NULL if no such model exists. */ GHMM_ContinuousModel* getContinuousModel() const; /** Returns discrete model, which has been read from file or NULL if no such model exists. */ GHMM_SWDiscreteModel* getDiscreteModel() const; /** Returns sequences, which has been read from file or NULL if no such model exists. */ GHMM_Sequences* getSequences() const; /** Called by GHMM_Document when a start tag is received. Tag and attributes are passed to this function. */ virtual XMLIO_Element* XMLIO_startTag(const string& tag, XMLIO_Attributes &attrs); /** Called by XMLIO_Document when a end tag is found. This happens when a sub element has finished reading its content. By default this function does nothing. */ virtual void XMLIO_endTag(const string& tag); /** Writes the XML prolog (XML spec [22]). Only XMLDecl (XML specs [23]-[26]) is supported by calling XMLIO_writeXMLDeclaration() @return Returns nr of bytes written or an negative error code. */ virtual int XMLIO_writeProlog(); /** Is called when a document is closed and writes an optional trailer, which must be of Misc-type (XML specs [27]) after the main element (XML specs [1]). By default this writes a newline character. @return Returns nr of bytes written or an negative error code. */ virtual int XMLIO_writeTrailer(); /** Returns name of class. */ virtual const char* toString() const; GHMM_Alphabet *getClass() { return (GHMM_Alphabet*) hmmclass; } protected: /** */ // GHMM_GMLDiscreteModel* discrete_model; /** */ GHMM_ContinuousModel* continuous_model; /** */ GHMM_SWDiscreteModel* sdiscrete_model; /** */ GHMM_Sequences* sequences; /** */ bool reading_ghmm; /** */ enumModelType model_type; private: GHMM_GMLClass* hmmclass; GHMM_GMLAlphabet* tmp_alphabets;};#ifdef HAVE_NAMESPACES}#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -