summaryrefslogtreecommitdiff
path: root/src/core/model/Document.hpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-02 15:11:34 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-02 15:11:34 +0100
commit66e9838c47b58810cb0bb6c67c32fb119eb50797 (patch)
treecb2fff77f6e45e41708e33c8c10c9cb7f206364e /src/core/model/Document.hpp
parent19d1eeba6ad3637e0e108fe177874b5509a7988b (diff)
Importing files works now
Diffstat (limited to 'src/core/model/Document.hpp')
-rw-r--r--src/core/model/Document.hpp10
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)
{
}