summaryrefslogtreecommitdiff
path: root/src/core/model/Project.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/Project.hpp
parent19d1eeba6ad3637e0e108fe177874b5509a7988b (diff)
Importing files works now
Diffstat (limited to 'src/core/model/Project.hpp')
-rw-r--r--src/core/model/Project.hpp11
1 files changed, 7 insertions, 4 deletions
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 <core/common/Rtti.hpp>
+
+#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> 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> document);
+ void referenceDocument(Handle<Document> document);
/**
* Returns all documents of this project.