mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-23 05:19:18 -06:00
Intermediate commit
This commit is contained in:
Submodule ext/ghoul updated: cb56bd8177...8264b80955
@@ -28,13 +28,9 @@
|
||||
#include <openspace/documentation/documentationgenerator.h>
|
||||
|
||||
#include <ghoul/misc/exception.h>
|
||||
#include <ghoul/misc/templatefactory.h>
|
||||
#include <memory>
|
||||
|
||||
namespace ghoul {
|
||||
template <class T> class TemplateFactory;
|
||||
class TemplateFactoryBase;
|
||||
} // namespace ghoul
|
||||
|
||||
namespace openspace {
|
||||
|
||||
/**
|
||||
|
||||
@@ -70,7 +70,7 @@ FactoryManager& FactoryManager::ref() {
|
||||
return *_manager;
|
||||
}
|
||||
|
||||
void FactoryManager::addFactory(std::unique_ptr<ghoul::TemplateFactoryBase> f,
|
||||
void FactoryManager::addFactory(std::unique_ptr<ghoul::TemplateFactoryBase<>> f,
|
||||
std::string name)
|
||||
{
|
||||
ghoul_assert(f, "Factory must not be nullptr");
|
||||
@@ -87,7 +87,7 @@ std::string FactoryManager::generateJson() const {
|
||||
json << "\"name\": \"" << factoryInfo.name << "\",";
|
||||
json << "\"classes\": [";
|
||||
|
||||
ghoul::TemplateFactoryBase* f = factoryInfo.factory.get();
|
||||
ghoul::TemplateFactoryBase<>* f = factoryInfo.factory.get();
|
||||
const std::vector<std::string>& registeredClasses = f->registeredClasses();
|
||||
for (const std::string& c : registeredClasses) {
|
||||
json << "\"" << c << "\"";
|
||||
|
||||
Reference in New Issue
Block a user