TransformDescription.h

Go to the documentation of this file.
00001 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
00002 
00003 /*
00004     Sonic Visualiser
00005     An audio file viewer and annotation editor.
00006     Centre for Digital Music, Queen Mary, University of London.
00007     This file copyright 2006-2007 Chris Cannam and QMUL.
00008    
00009     This program is free software; you can redistribute it and/or
00010     modify it under the terms of the GNU General Public License as
00011     published by the Free Software Foundation; either version 2 of the
00012     License, or (at your option) any later version.  See the file
00013     COPYING included with this distribution for more information.
00014 */
00015 
00016 #ifndef _TRANSFORM_DESCRIPTION_H_
00017 #define _TRANSFORM_DESCRIPTION_H_
00018 
00019 #include "Transform.h"
00020 
00021 #include <QString>
00022 
00023 #include <vector>
00024 
00046 struct TransformDescription
00047 {
00048     TransformDescription() { }
00049     TransformDescription(QString _type, QString _category,
00050                          TransformId _identifier, QString _name,
00051                          QString _friendlyName, QString _description,
00052                          QString _maker, QString _units, bool _configurable) :
00053         type(_type), category(_category),
00054         identifier(_identifier), name(_name),
00055         friendlyName(_friendlyName), description(_description),
00056         maker(_maker), units(_units), configurable(_configurable) { }
00057 
00058     QString type; // e.g. feature extraction plugin
00059     QString category; // e.g. time > onsets
00060     TransformId identifier; // e.g. vamp:vamp-aubio:aubioonset
00061     QString name; // plugin's name if 1 output, else "name: output"
00062     QString friendlyName; // short text for layer name
00063     QString description; // sentence describing transform
00064     QString maker;
00065     QString units;
00066     bool configurable;
00067     
00068     bool operator<(const TransformDescription &od) const {
00069         return
00070             (name <  od.name) ||
00071             (name == od.name && identifier < od.identifier);
00072     };
00073 };
00074 
00075 typedef std::vector<TransformDescription> TransformList;
00076 
00077 #endif

Generated on Wed Feb 20 15:45:29 2008 for SonicVisualiser by  doxygen 1.5.1