ghmm_document.h
来自「General Hidden Markov Model Library 一个通用」· C头文件 代码 · 共 95 行
H
95 行
/* * created: 14 Feb 2002 by Peter Pipenbacher * authors: Peter Pipenbacher (pipenb@zpr.uni-koeln.de) * file : $Source$ * $Id: GHMM_Document.h 256 2003-02-28 15:09:37Z wasinee $ * * __copyright__ * */#ifndef _GHMM_DOCUMENT_H#define _GHMM_DOCUMENT_H 1#include <xmlio/XMLIO_Document.h>#include <ghmm++/begin_code.h>#ifdef HAVE_NAMESPACESnamespace std {#endifclass GHMM_Document;class GHMM_DiscreteModel;class GHMM_ContinuousModel;class GHMM_Sequences;/** */class GHMM_Document: public XMLIO_Document { public: enum enumModelType { NONE, GHMM_DISCRETE, GHMM_CONTINUOUS }; /** Constructor. */ GHMM_Document(); /** Destructor. */ virtual ~GHMM_Document(); /** 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_DiscreteModel* 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; protected: /** */ GHMM_DiscreteModel* discrete_model; /** */ GHMM_ContinuousModel* continuous_model; /** */ GHMM_Sequences* sequences; /** */ bool reading_ghmm; /** */ enumModelType model_type;};#ifdef HAVE_NAMESPACES}#endif#include <ghmm++/close_code.h>#endif /* _GHMM_DOCUMENT_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?