Mercurial > hg > vamp-plugin-load-checker
comparison src/checker.cpp @ 8:25e00373f597
Much renaming to ease inclusion into another project
author | Chris Cannam |
---|---|
date | Thu, 14 Apr 2016 16:52:19 +0100 |
parents | checker.cpp@61dbb18f2369 |
children | c80c55cabfcd |
comparison
equal
deleted
inserted
replaced
7:846464771d06 | 8:25e00373f597 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 /* | |
3 Copyright (c) 2016 Queen Mary, University of London | |
4 | |
5 Permission is hereby granted, free of charge, to any person | |
6 obtaining a copy of this software and associated documentation | |
7 files (the "Software"), to deal in the Software without | |
8 restriction, including without limitation the rights to use, copy, | |
9 modify, merge, publish, distribute, sublicense, and/or sell copies | |
10 of the Software, and to permit persons to whom the Software is | |
11 furnished to do so, subject to the following conditions: | |
12 | |
13 The above copyright notice and this permission notice shall be | |
14 included in all copies or substantial portions of the Software. | |
15 | |
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
17 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
18 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
19 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | |
20 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF | |
21 CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | |
22 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
23 | |
24 Except as contained in this notice, the names of the Centre for | |
25 Digital Music and Queen Mary, University of London shall not be | |
26 used in advertising or otherwise to promote the sale, use or other | |
27 dealings in this Software without prior written authorization. | |
28 */ | |
29 | |
30 #include "knownplugins.h" | |
31 | |
32 #include <iostream> | |
33 | |
34 using namespace std; | |
35 | |
36 struct LogCallback : PluginCandidates::LogCallback { | |
37 virtual void log(string message) { | |
38 cerr << "checker: log: " << message; | |
39 } | |
40 }; | |
41 | |
42 int main(int, char **) | |
43 { | |
44 LogCallback cb; | |
45 KnownPlugins kp("./plugin-checker-helper", &cb); //!!! | |
46 | |
47 for (auto t: kp.getKnownPluginTypes()) { | |
48 cout << "successful libraries for plugin type \"" | |
49 << kp.getTagFor(t) << "\":" << endl; | |
50 for (auto lib: kp.getCandidateLibrariesFor(t)) { | |
51 cout << lib << endl; | |
52 } | |
53 } | |
54 | |
55 cout << "Failure message (if any):" << endl; | |
56 cout << kp.getFailureReport() << endl; | |
57 } | |
58 |