Cxx AstVisitor re-visits previously or simultaneously indexed files because the "visible" content may have changed due to other preprocessor defines etc.
34 lines
948 B
C++
34 lines
948 B
C++
#ifndef INTERPROCESS_INDEXING_STATUS_MANAGER_H
|
|
#define INTERPROCESS_INDEXING_STATUS_MANAGER_H
|
|
|
|
#include <set>
|
|
|
|
#include "utility/file/FilePath.h"
|
|
#include "BaseInterprocessDataManager.h"
|
|
|
|
class InterprocessIndexingStatusManager
|
|
: public BaseInterprocessDataManager
|
|
{
|
|
public:
|
|
InterprocessIndexingStatusManager(const std::string& instanceUuid, Id processId, bool isOwner);
|
|
virtual ~InterprocessIndexingStatusManager();
|
|
|
|
void startIndexingSourceFile(const FilePath& filePath);
|
|
void finishIndexingSourceFile();
|
|
|
|
Id getNextFinishedProcessId();
|
|
|
|
std::vector<FilePath> getCurrentlyIndexedSourceFilePaths();
|
|
std::vector<FilePath> getCrashedSourceFilePaths();
|
|
|
|
private:
|
|
static const char* s_sharedMemoryNamePrefix;
|
|
|
|
static const char* s_indexingFilesKeyName;
|
|
static const char* s_currentFilesKeyName;
|
|
static const char* s_crashedFilesKeyName;
|
|
static const char* s_finishedProcessIdsKeyName;
|
|
};
|
|
|
|
#endif // INTERPROCESS_INDEXING_STATUS_MANAGER_H
|