diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2014-03-04 16:23:41 +0000 |
---|---|---|
committer | andreas <andreas@daaaf23c-2e50-4459-9457-1e69db5a47bf> | 2014-03-04 16:23:41 +0000 |
commit | c736f9219673d049a1b21a0b9b2d01684a5b80dd (patch) | |
tree | a3f65058210a5ebd3be0937d8f98e936c47aa1cb | |
parent | b2e94fa3f1a7b0abb99007c198ceb76a00183e54 (diff) |
added stubs for the class and category classes
git-svn-id: file:///var/local/svn/basicwriter@16 daaaf23c-2e50-4459-9457-1e69db5a47bf
-rw-r--r-- | src/model/domain/Category.cpp | 19 | ||||
-rw-r--r-- | src/model/domain/Category.hpp | 50 | ||||
-rw-r--r-- | src/model/domain/Class.cpp | 0 | ||||
-rw-r--r-- | src/model/domain/Class.hpp | 41 |
4 files changed, 110 insertions, 0 deletions
diff --git a/src/model/domain/Category.cpp b/src/model/domain/Category.cpp new file mode 100644 index 0000000..c509285 --- /dev/null +++ b/src/model/domain/Category.cpp @@ -0,0 +1,19 @@ +/* + Ousía + Copyright (C) 2014 Benjamin Paaßen, Andreas Stöckel + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + + diff --git a/src/model/domain/Category.hpp b/src/model/domain/Category.hpp new file mode 100644 index 0000000..6255e6a --- /dev/null +++ b/src/model/domain/Category.hpp @@ -0,0 +1,50 @@ +/* + Ousía + Copyright (C) 2014 Benjamin Paaßen, Andreas Stöckel + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef _CATEGORY_HPP_ +#define _CATEGORY_HPP_ + +#include <memory> +#include <vector> + +#include <model/GraphNode.hpp> + +#include "Class.hpp" + +namespace ousia { +namespace domain { + +class Category : public GraphNode { + +private: + std::vector<std::shared_ptr<Class>> classes; + +public: + + std::vector<std::shared_ptr<Class>>& getClasses() + { + return classes; + } + +}; + +} +} + +#endif /* _CATEGORY_HPP_ */ + diff --git a/src/model/domain/Class.cpp b/src/model/domain/Class.cpp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/model/domain/Class.cpp diff --git a/src/model/domain/Class.hpp b/src/model/domain/Class.hpp new file mode 100644 index 0000000..231bb80 --- /dev/null +++ b/src/model/domain/Class.hpp @@ -0,0 +1,41 @@ +/* + Ousía + Copyright (C) 2014 Benjamin Paaßen, Andreas Stöckel + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef _CLASS_HPP_ +#define _CLASS_HPP_ + +#include <memory> +#include <vector> + +#include <model/GraphNode.hpp> + +namespace ousia { +namespace domain { + +class Class : public GraphNode { + +private: + std::vector<std::shared_ptr<Class>> children; + +}; + +} +} + +#endif /* _CLASS_HPP_ */ + |