Mercurial > hg > audiodb
diff audioDB.cpp @ 10:3ab41608a474
added ignore flag for first column of features (not working yet)
author | mas01mc |
---|---|
date | Thu, 26 Jul 2007 06:58:39 +0000 |
parents | 378c2483c926 |
children | 3d134836ea14 |
line wrap: on
line diff
--- a/audioDB.cpp Wed Jul 25 16:06:21 2007 +0000 +++ b/audioDB.cpp Thu Jul 26 06:58:39 2007 +0000 @@ -135,7 +135,8 @@ isClient(0), isServer(0), port(0), - timesTol(0.1){ + timesTol(0.1), + ignoreCols(0){ if(processArgs(argc, argv)<0){ printf("No command found.\n"); @@ -282,6 +283,15 @@ } return 0; } + + if(args_info.ignore_given){ + ignoreCols=args_info.ignore_arg; + if(ignoreCols<0 || ignoreCols>100){ + if(verbose) + cout << "warning: ignoring ignore which is out of range:" << ignoreCols << endl; + ignoreCols=0; + } + } if(args_info.BATCHINSERT_given){ command=COM_BATCHINSERT;