* project can not have multiple source groups with different types * language of a project is now inferred from source groups * setting global NameHierarchy delimiter of first sourceGroup in project * added project settings migrations for source groups * Add Settings Migration classes (MoveKey, DeleteKey, Lambda) * Update sample projects with migrations * added method to config to retrieve sublevel key names * implemented recursive removing of keys in settings * moved project files out of top level * removed solution parsing code as it is not used anymore fortune cookie message = The secret of getting ahead is getting started.
31 lines
808 B
C++
31 lines
808 B
C++
#ifndef SOURCE_GROUP_FACTORY_H
|
|
#define SOURCE_GROUP_FACTORY_H
|
|
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
#include "settings/SourceGroupType.h"
|
|
|
|
class SourceGroup;
|
|
class SourceGroupSettings;
|
|
class SourceGroupFactoryModule;
|
|
|
|
class SourceGroupFactory
|
|
{
|
|
public:
|
|
static std::shared_ptr<SourceGroupFactory> getInstance();
|
|
|
|
void addModule(std::shared_ptr<SourceGroupFactoryModule> module);
|
|
|
|
std::vector<std::shared_ptr<SourceGroup>> createSourceGroups(std::vector<std::shared_ptr<SourceGroupSettings>> allSourceGroupSettings);
|
|
std::shared_ptr<SourceGroup> createSourceGroup(std::shared_ptr<SourceGroupSettings> settings);
|
|
|
|
private:
|
|
static std::shared_ptr<SourceGroupFactory> s_instance;
|
|
SourceGroupFactory();
|
|
|
|
std::vector<std::shared_ptr<SourceGroupFactoryModule>> m_modules;
|
|
};
|
|
|
|
#endif // SOURCE_GROUP_FACTORY_H
|