summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-04-08 19:33:41 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:19:34 +0200
commit06efbbafaac6da7d8beba7a37234b3a848b8a8fa (patch)
tree430082f1ade8852aa05529584a2e84d0f1ae4182 /src/core
parentcdbcd9d2d43ec90a6bf64595042a215c95c28efd (diff)
added getter for referenced typesystems and ontologies.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/model/Ontology.hpp9
-rw-r--r--src/core/model/Typesystem.hpp12
2 files changed, 19 insertions, 2 deletions
diff --git a/src/core/model/Ontology.hpp b/src/core/model/Ontology.hpp
index cb314cc..3ef3b65 100644
--- a/src/core/model/Ontology.hpp
+++ b/src/core/model/Ontology.hpp
@@ -1446,6 +1446,13 @@ public:
}
/**
+ * Returns all referenced ontologies.
+ *
+ * @return all referenced ontologies.
+ */
+ const NodeVector<Ontology> &getOntologies() const { return ontologies; }
+
+ /**
* Adds a Ontology reference to this Ontology.
*/
void referenceOntology(Handle<Ontology> d) { ontologies.push_back(d); }
@@ -1476,4 +1483,4 @@ extern const Rtti Ontology;
}
}
-#endif /* _OUSIA_MODEL_ONTOLOGY_HPP_ */
+#endif /* _OUSIA_MODEL_ONTOLOGY_HPP_ */ \ No newline at end of file
diff --git a/src/core/model/Typesystem.hpp b/src/core/model/Typesystem.hpp
index 8079578..559a74c 100644
--- a/src/core/model/Typesystem.hpp
+++ b/src/core/model/Typesystem.hpp
@@ -1250,6 +1250,16 @@ public:
Rooted<Constant> createConstant(const std::string &name, Variant value);
/**
+ * Returns all referenced Typesystems.
+ *
+ * @return all referenced Typesystems.
+ */
+ const NodeVector<Typesystem> &getTypesystemReferences() const
+ {
+ return typesystems;
+ }
+
+ /**
* Adds a reference to the given typesystem class.
*
* @param typesystem is the typesystem that should be added to the
@@ -1463,4 +1473,4 @@ extern const Rtti SystemTypesystem;
}
}
-#endif /* _OUSIA_MODEL_TYPESYSTEM_HPP_ */
+#endif /* _OUSIA_MODEL_TYPESYSTEM_HPP_ */ \ No newline at end of file