diff options
Diffstat (limited to 'src/core/model/Document.hpp')
-rw-r--r-- | src/core/model/Document.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
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<StructuredEntity> root; NodeVector<AnnotationEntity> annotations; NodeVector<Domain> domains; - void doResolve(ResolutionState &state) override; - protected: + void doResolve(ResolutionState &state) override; bool doValidate(Logger &logger) const override; + void doReference(Handle<Node> 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) { } |