Mercurial > hg > audiodb
comparison audioDB.cpp @ 337:ccf15a8c3e46
gengetopt does not support multiple dependencies, so added test for database_given for INDEX command. Still cannot figure out why sometimes error(...) throws char* exception and SIG_ABORT
author | mas01mc |
---|---|
date | Fri, 05 Sep 2008 14:35:44 +0000 |
parents | 100cf66a5825 |
children | cdb31e8b94e3 |
comparison
equal
deleted
inserted
replaced
336:fe4d5b763086 | 337:ccf15a8c3e46 |
---|---|
456 if(radius <= 0 ) | 456 if(radius <= 0 ) |
457 error("INDEXing requires a Radius argument"); | 457 error("INDEXing requires a Radius argument"); |
458 if(!(sequenceLength>0 && sequenceLength <= O2_MAXSEQLEN)) | 458 if(!(sequenceLength>0 && sequenceLength <= O2_MAXSEQLEN)) |
459 error("INDEXing requires 1 <= sequenceLength <= 1000"); | 459 error("INDEXing requires 1 <= sequenceLength <= 1000"); |
460 command=COM_INDEX; | 460 command=COM_INDEX; |
461 if(!args_info.database_given) | |
462 error("INDEXing requires a database"); | |
461 dbName=args_info.database_arg; | 463 dbName=args_info.database_arg; |
462 | 464 |
463 // Whether to store LSH hash tables for query in core (FORMAT2) | 465 // Whether to store LSH hash tables for query in core (FORMAT2) |
464 lsh_in_core = !args_info.lsh_on_disk_flag; // This flag is set to 0 if on_disk requested | 466 lsh_in_core = !args_info.lsh_on_disk_flag; // This flag is set to 0 if on_disk requested |
465 | 467 |