219 |
// find instrument editors capable to handle given instrument |
// find instrument editors capable to handle given instrument |
220 |
std::vector<String> vEditors = |
std::vector<String> vEditors = |
221 |
InstrumentEditorFactory::MatchingEditors(sDataType, sDataVersion); |
InstrumentEditorFactory::MatchingEditors(sDataType, sDataVersion); |
222 |
if (!vEditors.size()) |
if (!vEditors.size()) { |
223 |
|
fprintf(stderr, |
224 |
|
"ERROR: Did not find a matching editor for instrument " |
225 |
|
"('%s', %d) having data structure ('%s','%s')\n", |
226 |
|
ID.FileName.c_str(), ID.Index, |
227 |
|
sDataType.c_str(), sDataVersion.c_str() |
228 |
|
); |
229 |
throw InstrumentManagerException( |
throw InstrumentManagerException( |
230 |
"There is no instrument editor capable to handle this instrument" |
"There is no instrument editor capable to handle this instrument" |
231 |
); |
); |
232 |
|
} |
233 |
// simply use the first editor in the result set |
// simply use the first editor in the result set |
234 |
dmsg(1,("Found matching editor '%s' for instrument ('%s', %d) having data structure ('%s','%s')\n", |
dmsg(1,("Found matching editor '%s' for instrument ('%s', %d) having data structure ('%s','%s')\n", |
235 |
vEditors[0].c_str(), ID.FileName.c_str(), ID.Index, sDataType.c_str(), sDataVersion.c_str())); |
vEditors[0].c_str(), ID.FileName.c_str(), ID.Index, sDataType.c_str(), sDataVersion.c_str())); |