Adding DocumentationEngine

This commit is contained in:
Alexander Bock
2016-09-15 13:48:28 +02:00
parent 746a76e436
commit a354f13ef3
9 changed files with 45 additions and 2 deletions

View File

@@ -33,8 +33,11 @@ namespace documentation {
class DocumentationEngine {
public:
void addDocumentation(Documentation doc);
private:
std::vector<Documentation> _documentations;
};
} // namespace documentation

View File

@@ -55,6 +55,7 @@ class ModuleEngine;
class WindowWrapper;
class SettingsEngine;
namespace documentation { class DocumentationEngine; }
namespace interaction { class InteractionHandler; }
namespace gui { class GUI; }
//namespace scripting { class ScriptEngine; }
@@ -77,6 +78,7 @@ public:
// Guaranteed to return a valid pointer
ConfigurationManager& configurationManager();
documentation::DocumentationEngine& documentationEngine();
interaction::InteractionHandler& interactionHandler();
RenderEngine& renderEngine();
scripting::ScriptEngine& scriptEngine();
@@ -135,6 +137,7 @@ private:
// Components
std::unique_ptr<ConfigurationManager> _configurationManager;
std::unique_ptr<documentation::DocumentationEngine> _documentationEngine;
std::unique_ptr<interaction::InteractionHandler> _interactionHandler;
std::unique_ptr<RenderEngine> _renderEngine;
std::unique_ptr<scripting::ScriptEngine> _scriptEngine;

View File

@@ -27,6 +27,8 @@
#include <openspace/properties/propertyowner.h>
#include <openspace/documentation/documentation.h>
#include <string>
#include <vector>
@@ -64,6 +66,8 @@ public:
*/
void deinitialize();
virtual std::vector<Documentation> documentations() const;
protected:
/**
* Customization point for each derived class. The internalInitialize method is called