mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
Move generated json documentation from factory manager to documentation engine
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user