From 1cb5fdc15c5f8399ca08377eb498f7c27c2eee85 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Thu, 6 Mar 2014 11:54:40 +0000 Subject: 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 --- src/model/domain/Annotation.hpp | 46 ++++++++++++++--------------------------- 1 file changed, 15 insertions(+), 31 deletions(-) (limited to 'src/model/domain/Annotation.hpp') diff --git a/src/model/domain/Annotation.hpp b/src/model/domain/Annotation.hpp index 233b421..0e84d1c 100644 --- a/src/model/domain/Annotation.hpp +++ b/src/model/domain/Annotation.hpp @@ -16,22 +16,22 @@ along with this program. If not, see . */ -#ifndef _ANNOTATION_HPP_ -#define _ANNOTATION_HPP_ +#ifndef _OUSIA_MODEL_DOMAIN_ANNOTATION_HPP_ +#define _OUSIA_MODEL_DOMAIN_ANNOTATION_HPP_ #include +#include #include #include -#include -#include -#include +#include "Structure.hpp" +#include "Field.hpp" namespace ousia { +namespace model { namespace domain { //class Structure; -//class Anchor; //class Field; class Annotation : public GraphNode { @@ -39,11 +39,15 @@ class Annotation : public GraphNode { private: std::vector> structures; std::vector> fields; - std::shared_ptr start; - std::shared_ptr end; public: - using GraphNode::GraphNode; + + Annotation(std::shared_ptr parent = nullptr, + const std::string &name = "") : + GraphNode(GraphNodeType::Annotation, parent, name) + { + // Do nothing here + } std::vector>& getStructures() { @@ -54,28 +58,8 @@ public: { return fields; } - - std::shared_ptr getStart() - { - return start; - } - - void setStart(std::shared_ptr start) - { - this->start = start; - } - - std::shared_ptr getEnd() - { - return end; - } - - void setEnd(std::shared_ptr end) - { - this->end = end; - } }; } } - -#endif /* _ANNOTATION_HPP_ */ +} +#endif /* _OUSIA_MODEL_DOMAIN_ANNOTATION_HPP_ */ -- cgit v1.2.3