From 66e9838c47b58810cb0bb6c67c32fb119eb50797 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Mon, 2 Feb 2015 15:11:34 +0100 Subject: Importing files works now --- src/core/model/Project.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/core/model/Project.hpp') diff --git a/src/core/model/Project.hpp b/src/core/model/Project.hpp index 9b81058..480609c 100644 --- a/src/core/model/Project.hpp +++ b/src/core/model/Project.hpp @@ -28,13 +28,14 @@ #ifndef _OUSIA_PROJECT_HPP_ #define _OUSIA_PROJECT_HPP_ -#include "Node.hpp" +#include + +#include "RootNode.hpp" namespace ousia { // Forward declarations class Logger; -class Rtti; class Registry; class SystemTypesystem; class Typesystem; @@ -46,7 +47,7 @@ class Domain; * documents are stored. It also contains an instance of the SystemTypesystem * and allows for simple creation of new Typesystem and Domain instances. */ -class Project : public Node { +class Project : public RootNode { private: /** * Private instance of the system typesystem which is distributed as a @@ -62,6 +63,8 @@ private: protected: bool doValidate(Logger &loger) const override; void doResolve(ResolutionState &state) override; + void doReference(Handle node) override; + RttiSet doGetReferenceTypes() const override; public: /** @@ -108,7 +111,7 @@ public: * * @param document is the document that should be added to the project. */ - void addDocument(Handle document); + void referenceDocument(Handle document); /** * Returns all documents of this project. -- cgit v1.2.3