annotate rdf/RDFExporter.h @ 1869:cb9209ef373a startup-timing

Merge from default branch
author Chris Cannam
date Tue, 16 Jun 2020 17:44:06 +0100
parents ad5f892c0c4d
children
rev   line source
Chris@500 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@500 2
Chris@500 3 /*
Chris@500 4 Sonic Visualiser
Chris@500 5 An audio file viewer and annotation editor.
Chris@500 6 Centre for Digital Music, Queen Mary, University of London.
Chris@500 7 This file copyright 2008 QMUL.
Chris@500 8
Chris@500 9 This program is free software; you can redistribute it and/or
Chris@500 10 modify it under the terms of the GNU General Public License as
Chris@500 11 published by the Free Software Foundation; either version 2 of the
Chris@500 12 License, or (at your option) any later version. See the file
Chris@500 13 COPYING included with this distribution for more information.
Chris@500 14 */
Chris@500 15
Chris@1581 16 #ifndef SV_RDF_EXPORTER_H
Chris@1581 17 #define SV_RDF_EXPORTER_H
Chris@500 18
Chris@500 19 #include <QString>
Chris@500 20
Chris@500 21 class Model;
Chris@500 22 class RDFFeatureWriter;
Chris@500 23
Chris@500 24 class RDFExporter
Chris@500 25 {
Chris@500 26 public:
Chris@500 27 /**
Chris@500 28 * Return the file extensions that we can write, in a format
Chris@500 29 * suitable for use with QFileDialog. For example, "*.ttl *.n3".
Chris@500 30 */
Chris@500 31 static QString getSupportedExtensions();
Chris@500 32
Chris@500 33 RDFExporter(QString path, Model *model);
Chris@500 34 virtual ~RDFExporter();
Chris@500 35
Chris@500 36 static bool canExportModel(Model *);
Chris@500 37
Chris@500 38 virtual bool isOK() const;
Chris@500 39 virtual QString getError() const;
Chris@500 40
Chris@500 41 virtual void write();
Chris@500 42
Chris@500 43 protected:
Chris@500 44 QString m_path;
Chris@500 45 Model *m_model;
Chris@500 46 RDFFeatureWriter *m_fw;
Chris@500 47 };
Chris@500 48
Chris@500 49 #endif