Mercurial > hg > audiodb
comparison audioDB.cpp @ 304:2d6efbe56bb8
Wow, so many bugs in one short stanza of code. Really fix batchinsert
handling of -K command-line argument now, and write a test for it so
that no-one ever has any excuses ever again.
author | mas01cr |
---|---|
date | Tue, 05 Aug 2008 13:38:36 +0000 |
parents | 8764d114ce80 |
children | d1b8b2dec37e |
comparison
equal
deleted
inserted
replaced
303:9f9b8b5f35f2 | 304:2d6efbe56bb8 |
---|---|
329 inFile=args_info.featureList_arg; | 329 inFile=args_info.featureList_arg; |
330 if(args_info.keyList_given) | 330 if(args_info.keyList_given) |
331 if(!args_info.featureList_given) | 331 if(!args_info.featureList_given) |
332 error("BATCHINSERT: '-K keyList' argument depends on '-F featureList'"); | 332 error("BATCHINSERT: '-K keyList' argument depends on '-F featureList'"); |
333 else | 333 else |
334 key=args_info.key_arg; // INCONSISTENT NO CHECK | 334 key=args_info.keyList_arg; // INCONSISTENT NO CHECK |
335 | 335 |
336 /* TO DO: REPLACE WITH | 336 /* TO DO: REPLACE WITH |
337 if(args_info.keyList_given){ | 337 if(args_info.keyList_given){ |
338 trackFileName=args_info.keyList_arg; | 338 trackFileName=args_info.keyList_arg; |
339 if(strlen(trackFileName)>0 && !(trackFile = new std::ifstream(trackFileName,std::ios::in))) | 339 if(strlen(trackFileName)>0 && !(trackFile = new std::ifstream(trackFileName,std::ios::in))) |