Mercurial > hg > sonic-annotator
comparison runner/main.cpp @ 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 | 3e0133aa2354 |
children |
comparison
equal
deleted
inserted
replaced
391:a1c7e2863a62 | 392:f33924771c5f |
---|---|
438 listTransforms() | 438 listTransforms() |
439 { | 439 { |
440 TransformList transforms = | 440 TransformList transforms = |
441 TransformFactory::getInstance()->getAllTransformDescriptions(); | 441 TransformFactory::getInstance()->getAllTransformDescriptions(); |
442 | 442 |
443 for (TransformList::const_iterator iter = transforms.begin(); | 443 set<QString> ids; |
444 iter != transforms.end(); ++iter) { | 444 for (auto t: transforms) { |
445 const TransformDescription &transform = *iter; | 445 if (t.type == TransformDescription::Analysis) { |
446 if (transform.type == TransformDescription::Analysis) { | 446 ids.insert(t.identifier); |
447 cout << transform.identifier << endl; | 447 } |
448 } | 448 } |
449 | |
450 for (auto id: ids) { | |
451 cout << id << endl; | |
449 } | 452 } |
450 } | 453 } |
451 | 454 |
452 void | 455 void |
453 printSkeleton(QString id) | 456 printSkeleton(QString id) |