From c736f9219673d049a1b21a0b9b2d01684a5b80dd Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 4 Mar 2014 16:23:41 +0000 Subject: added stubs for the class and category classes git-svn-id: file:///var/local/svn/basicwriter@16 daaaf23c-2e50-4459-9457-1e69db5a47bf --- src/model/domain/Category.cpp | 19 ++++++++++++++++ src/model/domain/Category.hpp | 50 +++++++++++++++++++++++++++++++++++++++++++ src/model/domain/Class.cpp | 0 src/model/domain/Class.hpp | 41 +++++++++++++++++++++++++++++++++++ 4 files changed, 110 insertions(+) create mode 100644 src/model/domain/Category.cpp create mode 100644 src/model/domain/Category.hpp create mode 100644 src/model/domain/Class.cpp create mode 100644 src/model/domain/Class.hpp (limited to 'src') 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 . +*/ + + 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 . +*/ + +#ifndef _CATEGORY_HPP_ +#define _CATEGORY_HPP_ + +#include +#include + +#include + +#include "Class.hpp" + +namespace ousia { +namespace domain { + +class Category : public GraphNode { + +private: + std::vector> classes; + +public: + + std::vector>& 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 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 . +*/ + +#ifndef _CLASS_HPP_ +#define _CLASS_HPP_ + +#include +#include + +#include + +namespace ousia { +namespace domain { + +class Class : public GraphNode { + +private: + std::vector> children; + +}; + +} +} + +#endif /* _CLASS_HPP_ */ + -- cgit v1.2.3