Move generated json documentation from factory manager to documentation engine

This commit is contained in:
Ylva Selling
2024-02-23 16:17:02 +01:00
parent 8bea02585c
commit 94aa098457
5 changed files with 140 additions and 138 deletions

View File

@@ -39,6 +39,10 @@ namespace openspace {
*/
class FactoryManager {
public:
struct FactoryInfo {
std::unique_ptr<ghoul::TemplateFactoryBase> factory;
std::string name;
};
/**
* This exception is thrown if the ghoul::TemplateFactory could not be found in the
* #factory method.
@@ -117,16 +121,12 @@ public:
template <class T>
ghoul::TemplateFactory<T>* factory() const;
nlohmann::json generateJson() const;
const std::vector<FactoryInfo>& factories() const;
private:
/// Singleton member for the Factory Manager
static FactoryManager* _manager;
struct FactoryInfo {
std::unique_ptr<ghoul::TemplateFactoryBase> factory;
std::string name;
};
std::vector<FactoryInfo> _factories;
};