Mercurial > hg > sonic-annotator
changeset 392:f33924771c5f
Print transforms in order of id (default is order of name first, which isn't displayed here, so it's confusing)
author | Chris Cannam |
---|---|
date | Tue, 09 Jun 2020 14:55:08 +0100 |
parents | a1c7e2863a62 |
children | b081441c7970 |
files | runner/main.cpp |
diffstat | 1 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/runner/main.cpp Mon Jun 08 17:12:42 2020 +0100 +++ b/runner/main.cpp Tue Jun 09 14:55:08 2020 +0100 @@ -440,13 +440,16 @@ TransformList transforms = TransformFactory::getInstance()->getAllTransformDescriptions(); - for (TransformList::const_iterator iter = transforms.begin(); - iter != transforms.end(); ++iter) { - const TransformDescription &transform = *iter; - if (transform.type == TransformDescription::Analysis) { - cout << transform.identifier << endl; + set<QString> ids; + for (auto t: transforms) { + if (t.type == TransformDescription::Analysis) { + ids.insert(t.identifier); } } + + for (auto id: ids) { + cout << id << endl; + } } void