summaryrefslogtreecommitdiff
path: root/src/model/domain/Domain.hpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2014-03-06 11:54:40 +0000
committerbenjamin <benjamin@daaaf23c-2e50-4459-9457-1e69db5a47bf>2014-03-06 11:54:40 +0000
commit1cb5fdc15c5f8399ca08377eb498f7c27c2eee85 (patch)
tree1e3a23d78b094d40d9fb80ce8e330bdc113eb2e4 /src/model/domain/Domain.hpp
parent247945811adbfb5ddaa1ba4e1f3dfc20cd7eb058 (diff)
reworked the model classes according to manipulated GraphNode and removed some bugs resulting from a misunderstanding between abtract domain declarations and instances.
git-svn-id: file:///var/local/svn/basicwriter@29 daaaf23c-2e50-4459-9457-1e69db5a47bf
Diffstat (limited to 'src/model/domain/Domain.hpp')
-rw-r--r--src/model/domain/Domain.hpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/model/domain/Domain.hpp b/src/model/domain/Domain.hpp
index 957ae4a..278adc5 100644
--- a/src/model/domain/Domain.hpp
+++ b/src/model/domain/Domain.hpp
@@ -19,16 +19,16 @@
#ifndef _OUSIA_MODEL_DOMAIN_DOMAIN_HPP_
#define _OUSIA_MODEL_DOMAIN_DOMAIN_HPP_
-//#include <memory>
-//#include <string>
-//#include <vector>
+#include <memory>
+#include <string>
+#include <vector>
#include <model/GraphNode.hpp>
-//#include "Class.hpp"
-//#include "Structure.hpp"
-//#include "Category.hpp"
-//#include "Layer.hpp"
+#include "Structure.hpp"
+#include "ClassCategory.hpp"
+#include "AnnotationCategory.hpp"
+#include "ClassReferenceSet.hpp"
namespace ousia {
namespace model {
@@ -37,10 +37,10 @@ namespace domain {
class Domain : public GraphNode {
private:
-// std::shared_ptr<Class> root;
-// std::vector<std::shared_ptr<Structure>> structures;
-// std::vector<std::shared_ptr<Category>> categories;
-// std::vector<std::shared_ptr<Layer>> layers;
+ std::shared_ptr<ClassReferenceSet> root;
+ std::vector<std::shared_ptr<Structure>> structures;
+ std::vector<std::shared_ptr<ClassCategory>> classCategories;
+ std::vector<std::shared_ptr<AnnotationCategory>> annotationCategories;
public:
@@ -51,7 +51,7 @@ public:
// Do nothing here
}
-/* std::shared_ptr<Class>& getRoot()
+ std::shared_ptr<ClassReferenceSet>& getRoot()
{
return root;
}
@@ -61,15 +61,15 @@ public:
return structures;
}
- std::vector<std::shared_ptr<Category>>& getCategories()
+ std::vector<std::shared_ptr<ClassCategory>>& getClassCategories()
{
- return categories;
+ return classCategories;
}
- std::vector<std::shared_ptr<Layer>>& getLayers()
+ std::vector<std::shared_ptr<AnnotationCategory>>& getAnnotationCategories()
{
- return layers;
- }*/
+ return annotationCategories;
+ }
};