* 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.
30 lines
641 B
C++
30 lines
641 B
C++
#ifndef INDEXER_FACTORY_H
|
|
#define INDEXER_FACTORY_H
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
#include "settings/LanguageType.h"
|
|
|
|
class IndexerBase;
|
|
class IndexerComposite;
|
|
class IndexerFactoryModule;
|
|
|
|
class IndexerFactory
|
|
{
|
|
public:
|
|
static std::shared_ptr<IndexerFactory> getInstance();
|
|
static void destroyInstance();
|
|
|
|
void addModule(std::shared_ptr<IndexerFactoryModule> module);
|
|
std::shared_ptr<IndexerComposite> createCompositeIndexerForAllRegisteredModules();
|
|
|
|
private:
|
|
static std::shared_ptr<IndexerFactory> s_instance;
|
|
IndexerFactory();
|
|
|
|
std::vector<std::shared_ptr<IndexerFactoryModule>> m_modules;
|
|
};
|
|
|
|
#endif // INDEXER_FACTORY_H
|