annotate rdf/PluginRDFDescription.h @ 1886:f803d3c33f76 tip

Switch off copious debug in soft synth driving
author Chris Cannam
date Fri, 14 Aug 2020 10:44:44 +0100
parents 6f626cfdba51
children
rev   line source
Chris@439 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@439 2
Chris@439 3 /*
Chris@439 4 Sonic Visualiser
Chris@439 5 An audio file viewer and annotation editor.
Chris@439 6 Centre for Digital Music, Queen Mary, University of London.
Chris@439 7 This file copyright 2008 QMUL.
Chris@439 8
Chris@439 9 This program is free software; you can redistribute it and/or
Chris@439 10 modify it under the terms of the GNU General Public License as
Chris@439 11 published by the Free Software Foundation; either version 2 of the
Chris@439 12 License, or (at your option) any later version. See the file
Chris@439 13 COPYING included with this distribution for more information.
Chris@439 14 */
Chris@439 15
Chris@1581 16 #ifndef SV_PLUGIN_RDF_DESCRIPTION_H
Chris@1581 17 #define SV_PLUGIN_RDF_DESCRIPTION_H
Chris@439 18
Chris@439 19 #include <QString>
Chris@457 20 #include <QStringList>
Chris@439 21 #include <map>
Chris@1843 22 #include <set>
Chris@439 23
Chris@686 24 #include "base/Debug.h"
Chris@686 25
Chris@1845 26 #include "plugin/Provider.h"
Chris@1845 27
Chris@439 28 class PluginRDFDescription
Chris@439 29 {
Chris@439 30 public:
Chris@439 31 PluginRDFDescription() : m_haveDescription(false) { }
Chris@439 32 PluginRDFDescription(QString pluginId);
Chris@439 33 ~PluginRDFDescription();
Chris@439 34
Chris@1845 35 enum OutputDisposition {
Chris@439 36 OutputDispositionUnknown,
Chris@439 37 OutputSparse,
Chris@439 38 OutputDense,
Chris@439 39 OutputTrackLevel
Chris@439 40 };
Chris@439 41
Chris@439 42 bool haveDescription() const;
Chris@457 43
Chris@457 44 QString getPluginName() const;
Chris@457 45 QString getPluginDescription() const;
Chris@457 46 QString getPluginMaker() const;
Chris@1845 47 Provider getPluginProvider() const;
Chris@1843 48
Chris@457 49 QStringList getOutputIds() const;
Chris@457 50 QString getOutputName(QString outputId) const;
Chris@439 51 OutputDisposition getOutputDisposition(QString outputId) const;
Chris@439 52 QString getOutputEventTypeURI(QString outputId) const;
Chris@440 53 QString getOutputFeatureAttributeURI(QString outputId) const;
Chris@440 54 QString getOutputSignalTypeURI(QString outputId) const;
Chris@439 55 QString getOutputUnit(QString outputId) const;
Chris@494 56 QString getOutputUri(QString outputId) const;
Chris@439 57
Chris@439 58 protected:
Chris@439 59 typedef std::map<QString, OutputDisposition> OutputDispositionMap;
Chris@439 60 typedef std::map<QString, QString> OutputStringMap;
Chris@439 61
Chris@439 62 QString m_pluginId;
Chris@489 63 QString m_pluginUri;
Chris@439 64 bool m_haveDescription;
Chris@457 65 QString m_pluginName;
Chris@457 66 QString m_pluginDescription;
Chris@457 67 QString m_pluginMaker;
Chris@1845 68 Provider m_provider;
Chris@457 69 OutputStringMap m_outputNames;
Chris@439 70 OutputDispositionMap m_outputDispositions;
Chris@439 71 OutputStringMap m_outputEventTypeURIMap;
Chris@440 72 OutputStringMap m_outputFeatureAttributeURIMap;
Chris@440 73 OutputStringMap m_outputSignalTypeURIMap;
Chris@439 74 OutputStringMap m_outputUnitMap;
Chris@494 75 OutputStringMap m_outputUriMap;
Chris@489 76 bool index();
Chris@489 77 bool indexMetadata();
Chris@489 78 bool indexOutputs();
Chris@439 79 };
Chris@439 80
Chris@439 81 #endif
Chris@439 82