summaryrefslogtreecommitdiff
path: root/src/core/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/model')
-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