summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--src/model/domain/Domain.cpp8
-rw-r--r--src/model/domain/Domain.hpp32
3 files changed, 40 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f4cceee..329b17d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,6 +25,7 @@ INCLUDE_DIRECTORIES(src/)
ADD_LIBRARY(ousia_core
src/model/GraphNode
+ src/model/domain/Domain
)
ADD_EXECUTABLE(ousia
diff --git a/src/model/domain/Domain.cpp b/src/model/domain/Domain.cpp
index 110e367..3def24b 100644
--- a/src/model/domain/Domain.cpp
+++ b/src/model/domain/Domain.cpp
@@ -1,5 +1,5 @@
/*
- BasicWriter
+ Ousía
Copyright (C) 2014 Benjamin Paaßen, Andreas Stöckel
This program is free software: you can redistribute it and/or modify
@@ -16,5 +16,11 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "Domain.hpp"
+namespace ousia {
+namespace domain {
+
+}
+}
diff --git a/src/model/domain/Domain.hpp b/src/model/domain/Domain.hpp
index 98b440a..dd5ee4d 100644
--- a/src/model/domain/Domain.hpp
+++ b/src/model/domain/Domain.hpp
@@ -16,12 +16,20 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#ifndef _DOMAIN_HPP_
+#define _DOMAIN_HPP_
+
#include <memory>
#include <string>
#include <vector>
#include <model/GraphNode.hpp>
+#include "Class.hpp"
+#include "Structure.hpp"
+#include "Category.hpp"
+#include "Layer.hpp"
+
namespace ousia {
namespace domain {
@@ -33,8 +41,32 @@ private:
std::vector<std::shared_ptr<Category>> categories;
std::vector<std::shared_ptr<Layer>> layers;
+public:
+
+ std::shared_ptr<Class>& getRoot()
+ {
+ return root;
+ }
+
+ std::vector<std::shared_ptr<Structure>>& getStructures()
+ {
+ return structures;
+ }
+
+ std::vector<std::shared_ptr<Category>>& getCategories()
+ {
+ return categories;
+ }
+
+ std::vector<std::shared_ptr<Layer>>& getLayers()
+ {
+ return layers;
+ }
+
};
}
}
+#endif /* _DOMAIN_HPP_ */
+