view widgets/SpeechFileHandler.h @ 268:ee047fc1a552

if no title is present in the results list, it is replace by "unknown" when a new TIMELINE INFORMATION layer is loaded the sample rate is set up to the main model (WaveFileModel) sample rate.
author lbajardsilogic
date Wed, 25 Jun 2008 09:47:11 +0000
parents 3f41cb822166
children acfbbd2fea47
line wrap: on
line source
#ifndef SPEECH_FILE_HANDLER_H
#define SPEECH_FILE_HANDLER_H

#include <QObject>
#include <QXmlDefaultHandler>
#include <QMap>
#include <QVector>


class SpeechFileHandler :public QObject, public QXmlDefaultHandler{
	Q_OBJECT
public:
	SpeechFileHandler();
	~SpeechFileHandler();
	virtual bool fatalError (const QXmlParseException & exception);
	virtual bool characters ( const QString &);
	virtual bool endDocument ();
	virtual bool endElement (const QString &, const QString &, const QString & );
	virtual bool startDocument () ;
	virtual bool startElement ( const QString &, const QString &, const QString &, const QXmlAttributes & );
	
	QString getResult();

private :
	QString _tag_vocal_query_result, _tag_word, _tag_confidence;
	QString _currentTag;
	
	QString _result;


};

#endif