comparison audioDB.cpp @ 321:da2272e029b3 large_adb

Added --adb_feature_root=path filename prefix for locating LARGE_ADB features with relative paths at QUERY time. Also added convenience argument --adb_root=path prefix for -d database command option.
author mas01mc
date Thu, 21 Aug 2008 19:16:21 +0000
parents a995e5ad999a
children 634959ef98f2
comparison
equal deleted inserted replaced
320:a995e5ad999a 321:da2272e029b3
31 printf("%s\n", gengetopt_args_info_help[1]); 31 printf("%s\n", gengetopt_args_info_help[1]);
32 printf("%s\n", gengetopt_args_info_help[2]); 32 printf("%s\n", gengetopt_args_info_help[2]);
33 printf("%s\n", gengetopt_args_info_help[0]); 33 printf("%s\n", gengetopt_args_info_help[0]);
34 error("No command found"); 34 error("No command found");
35 } 35 }
36
37 // perform dbName path prefix subbsitution
38 if(adb_root)
39 prefix_name((char** const)&dbName, adb_root);
36 40
37 if(O2_ACTION(COM_SERVER)) 41 if(O2_ACTION(COM_SERVER))
38 startServer(); 42 startServer();
39 43
40 else if(O2_ACTION(COM_CREATE)) 44 else if(O2_ACTION(COM_CREATE))
241 if (args_info.relative_threshold_given) { 245 if (args_info.relative_threshold_given) {
242 use_relative_threshold = true; 246 use_relative_threshold = true;
243 relative_threshold = args_info.relative_threshold_arg; 247 relative_threshold = args_info.relative_threshold_arg;
244 } 248 }
245 249
250 if (args_info.adb_root_given){
251 adb_root = args_info.adb_root_arg;
252 }
253
254 if (args_info.adb_feature_root_given){
255 adb_feature_root = args_info.adb_feature_root_arg;
256 }
257
246 if(args_info.SERVER_given){ 258 if(args_info.SERVER_given){
247 command=COM_SERVER; 259 command=COM_SERVER;
248 port=args_info.SERVER_arg; 260 port=args_info.SERVER_arg;
249 if(port<100 || port > 100000) 261 if(port<100 || port > 100000)
250 error("port out of range"); 262 error("port out of range");