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/Document.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/core/model/Document.hpp') diff --git a/src/core/model/Document.hpp b/src/core/model/Document.hpp index dcb8966..ad8cbca 100644 --- a/src/core/model/Document.hpp +++ b/src/core/model/Document.hpp @@ -115,6 +115,7 @@ #include "Node.hpp" #include "Domain.hpp" +#include "RootNode.hpp" #include "Typesystem.hpp" namespace ousia { @@ -719,17 +720,18 @@ public: * Graph. It also references the domains that have been used within this * document and the AnnotationEntities that span over Anchors in this Document. */ -class Document : public Node { +class Document : public RootNode { private: // TODO: Might there be several roots? E.g. metadata? Owned root; NodeVector annotations; NodeVector domains; - void doResolve(ResolutionState &state) override; - protected: + void doResolve(ResolutionState &state) override; bool doValidate(Logger &logger) const override; + void doReference(Handle node) override; + RttiSet doGetReferenceTypes() const override; public: /** @@ -739,7 +741,7 @@ public: * @param name is a name for this Document. */ Document(Manager &mgr, std::string name) - : Node(mgr, std::move(name), nullptr), annotations(this) + : RootNode(mgr, std::move(name), nullptr), annotations(this) { } -- cgit v1.2.3