summaryrefslogtreecommitdiff
path: root/src/core/model/RootNode.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/RootNode.hpp
parent19d1eeba6ad3637e0e108fe177874b5509a7988b (diff)
Importing files works now
Diffstat (limited to 'src/core/model/RootNode.hpp')
-rw-r--r--src/core/model/RootNode.hpp21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/core/model/RootNode.hpp b/src/core/model/RootNode.hpp
index 1ed72f1..173a6e4 100644
--- a/src/core/model/RootNode.hpp
+++ b/src/core/model/RootNode.hpp
@@ -28,6 +28,9 @@
#ifndef _OUSIA_ROOT_NODE_HPP_
#define _OUSIA_ROOT_NODE_HPP_
+#include <core/managed/Managed.hpp>
+#include <core/common/Rtti.hpp>
+
#include "Node.hpp"
namespace ousia {
@@ -43,16 +46,16 @@ protected:
* Imports the given node. The node was checked to be one of the supported
* types.
*
- * @param node is the node that should be imported.
+ * @param node is the node that should be referenced.
*/
- virtual void doImport(Handle<Node> node) = 0;
+ virtual void doReference(Handle<Node> node) = 0;
/**
- * Should return a set of types that can be imported by this Node.
+ * Should return a set of types that can be referenced by this Node.
*
- * @return a set of Node types that may be imported by this Node.
+ * @return a set of Node types that may be referenced by this Node.
*/
- virtual RttiSet doGetImportTypes() = 0;
+ virtual RttiSet doGetReferenceTypes() const = 0;
public:
using Node::Node;
@@ -63,14 +66,14 @@ public:
*
* @param node is the node that should be imported.
*/
- void import(Handle<Node> node);
+ void reference(Handle<Node> node);
/**
- * Returns a set of types that can be imported by this Node.
+ * Returns a set of types that can be referenced by this Node.
*
- * @return a set of types that can be imported.
+ * @return a set of types that can be referenced.
*/
- RttiSet getImportTypes();
+ RttiSet getReferenceTypes() const;
};
namespace RttiTypes {