diff options
-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_ */ + |