14 #ifndef SPHINX_ADMIN_COMMAND_HPP
15 #define SPHINX_ADMIN_COMMAND_HPP
17 #include <Poco/SharedPtr.h>
27 namespace sphinx_admin_command_const
48 const std::string
allowedSimbols =
"*0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_-";
74 bool makeDir(
const std::string& path);
75 bool cleanDir(
const std::string& path);
79 bool copyFile(
const std::string& srcFile,
const std::string& dstFile);
80 bool moveFile(
const std::string& srcFile,
const std::string& dstFile);
82 bool moveIndexFiles(
const std::string& indexFileName,
const std::string& srcPath,
const std::string& dstPath);
83 bool copyIndexFiles(
const std::string& indexFileName,
const std::string& srcPath,
const std::string& dstPath);
84 bool removeIndexFile(
const std::string& indexFileName,
const std::string& path);
85 bool getFileList(
const std::string& path, std::vector<std::string>& vFiles,
const std::string& ext);
86 bool getIndexList(
const std::string& path, std::vector<std::string>& vIndexes);
199 bool makeSource(
const std::string& schemaFile,
const std::string&
branchName,
const std::string& sourcePath,
const std::string& configPath);
200 bool makeIndex(
const std::string& sourceFile,
const std::string& branchName,
const std::string& configPath,
unsigned long long maxDocId);
265 const std::string& configPath,
266 const std::string& trunkName,
267 unsigned long long& maxDocId);
268 bool makeTrunk(
const std::string& trunkName,
269 const std::string& configPath,
270 std::vector<std::string>& vIndexes,
271 unsigned long long& maxDocId)
throw (Poco::Exception);
296 bool removeIndexFiles(
const std::string& path, std::vector<std::string>&
branches, std::vector<std::string>& files)
throw (Poco::Exception);
297 bool removeFilesList(
const std::string& path, std::vector<std::string>& branches, std::vector<std::string>& files,
const std::string& ext)
throw (Poco::Exception);
342 void addId(
unsigned long long id);
343 std::vector <unsigned long long>&
getIds(
void) {
return ids;}
345 std::vector <unsigned long long> ids;
364 bool packData(
const std::string& file, std::set<std::string>& delList);
365 bool getDocumentCount(
const std::string& file,
size_t& documentCount);
455 std::string parameterValue;
570 bool getBranchInfo(
const std::string&
indexName,
const std::string& indexFileName, std::string& information);
571 bool makeBranchConfig(
const std::string&
indexName,
const std::string& indexFileName, std::string& branchConfigFileName);
606 #endif // SPHINX_ADMIN_COMMAND_HPP