Files
Sourcetrail/src/lib/data/indexer/IndexerComposite.h
T
malte_langkabel 4563cbe90a logic: indexer commands
* replaced parser arguments by project specific IndexerCommands that know everything the indexer needs to know to do its job
* added different language and project specific indexers that know how to handle a certain kind of indexer command
* refactored FileManager and FileRegister to have less overhead
* removed no-rtti restriction for clang files in lib cxx
* uncommented deprecated interprocess code.

fortune cookie message = Happiness will bring you good luck.
2017-02-22 16:42:20 +01:00

27 lines
618 B
C++

#ifndef INDEXER_COMPOSITE_H
#define INDEXER_COMPOSITE_H
#include <memory>
#include <unordered_map>
#include "data/indexer/IndexerBase.h"
class IndexerComposite: public IndexerBase
{
public:
virtual ~IndexerComposite();
virtual std::string getKindString() const;
void addIndexer(std::shared_ptr<IndexerBase> indexer);
virtual std::shared_ptr<IntermediateStorage> index(std::shared_ptr<IndexerCommand> indexerCommand, std::shared_ptr<FileRegister> fileRegister);
virtual void interrupt();
private:
std::unordered_map<std::string, std::shared_ptr<IndexerBase>> m_indexers;
};
#endif // INDEXER_COMPOSITE_H