1 #ifndef SPHINX_MULTI_INDEX_TEST_HPP
2 #define SPHINX_MULTI_INDEX_TEST_HPP
5 #include <Poco/TaskManager.h>
6 #include <Poco/TaskNotification.h>
7 #include <Poco/Observer.h>
8 #include <Poco/Mutex.h>
24 SearchTask(
const std::string& indexName, std::vector<std::string>& queries,
bool start=
true,
bool stop=
true);
27 float getFps(
void)
const {
return fps;}
30 std::string indexName;
31 std::vector<std::string> queries;
35 typedef Poco::Task inherited;
43 void onProgress(Poco::TaskProgressNotification* pNf);
44 void onFinished(Poco::TaskFinishedNotification* pNf);
61 static void printSuccess(
const std::string& msg, std::ostream& os=std::cout);
62 static void printWarning(
const std::string& msg, std::ostream& os=std::cout);
64 static void setIndexProperty(
const std::string&
homeDir,
const std::string&
indexName,
const IndexProperty& property)
throw (Poco::Exception);
65 static void getIndexProperty(
const std::string&
homeDir,
const std::string&
indexName, IndexProperty& property)
throw (Poco::Exception);
70 static void makeIndexNames(
size_t count, std::vector<std::string>& names);
72 static void testCreateIndexes(
const std::string&
homeDir,
size_t count,
const std::string& dataFileName, std::vector<std::string>& names);
73 static float testSearchIndexes(std::vector<std::string>& names, std::vector<std::string> queries);
83 #endif // SPHINX_MULTI_INDEX_TEST_HPP