Mercurial > hg > svcore
annotate rdf/RDFExporter.h @ 1354:97deefd38060 3.0-integration
Further win32 build updates
author | Chris Cannam |
---|---|
date | Mon, 09 Jan 2017 13:51:39 +0000 |
parents | 83eae5239db6 |
children | ad5f892c0c4d |
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@500 | 16 #ifndef _RDF_EXPORTER_H_ |
Chris@500 | 17 #define _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 |