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/RootNode.hpp | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'src/core/model/RootNode.hpp') 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 +#include + #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) = 0; + virtual void doReference(Handle 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); + void reference(Handle 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 { -- cgit v1.2.3