Mercurial > hg > classical
comparison utilities/composer/composer.cpp @ 22:9abc896958cf classical-rdf
* Fixes for static initialiser ordering (etc)
author | Chris Cannam |
---|---|
date | Thu, 25 Feb 2010 22:34:11 +0000 |
parents | ea477e4cc75c |
children | 2b574b88778e |
comparison
equal
deleted
inserted
replaced
21:ea477e4cc75c | 22:9abc896958cf |
---|---|
232 | 232 |
233 BasicStore *store = new BasicStore(); | 233 BasicStore *store = new BasicStore(); |
234 store->setBaseUri(Uri("http://dbtune.org/classical/resource/")); | 234 store->setBaseUri(Uri("http://dbtune.org/classical/resource/")); |
235 ObjectMapper *mapper = new ObjectMapper(store); | 235 ObjectMapper *mapper = new ObjectMapper(store); |
236 | 236 |
237 TypeRegistrar::registerTypes(); | |
237 TypeRegistrar::addMappings(store, mapper); | 238 TypeRegistrar::addMappings(store, mapper); |
238 | 239 |
239 if (!load(store, inFileName)) { | 240 if (!load(store, inFileName)) { |
240 cerr << "Failed to load data source" << endl; | 241 cerr << "Failed to load data source" << endl; |
241 return 1; | 242 return 1; |
258 if (cp) worksMap[cp].insert(w); | 259 if (cp) worksMap[cp].insert(w); |
259 } | 260 } |
260 } | 261 } |
261 | 262 |
262 if (command == "list") { | 263 if (command == "list") { |
264 if (!args.empty()) usage(argv[0]); | |
263 listBrief(allComposers); | 265 listBrief(allComposers); |
264 } else if (command == "list-uris") { | 266 } else if (command == "list-uris") { |
267 if (!args.empty()) usage(argv[0]); | |
265 listUris(allComposers); | 268 listUris(allComposers); |
266 } else { | 269 } else { |
267 if (args.empty()) usage(argv[0]); | 270 if (args.empty()) usage(argv[0]); |
268 if (command == "show") { | 271 if (command == "show") { |
269 foreach (QString s, args) { | 272 foreach (QString s, args) { |