Files
Sourcetrail/src/lib/data/indexer/interprocess/InterprocessIndexingStatusManager.h
T
mlangkabel ca3e2f48ee logic: removed C/C++ "unparsed" check from indexer
Cxx AstVisitor re-visits previously or simultaneously indexed files because the "visible" content may have changed due to other preprocessor defines etc.
2018-04-24 13:25:06 +02:00

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