diff options
Diffstat (limited to 'include/Group.hpp')
-rw-r--r-- | include/Group.hpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/include/Group.hpp b/include/Group.hpp deleted file mode 100644 index 315961d..0000000 --- a/include/Group.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#pragma once - -#include "types.hpp" -#include "DataView.hpp" -#include "Permission.hpp" -#include <string> -#include <vector> -#include <stdexcept> - -namespace odhtdb -{ - class User; - - class GroupNameTooLongException : public std::runtime_error - { - public: - GroupNameTooLongException(const std::string &groupName) : - std::runtime_error(std::string("The group name ") + groupName + " is longer than 255 bytes") - { - - } - }; - - - - class Group - { - friend class User; - public: - Group(const std::string &name, uint8_t id[16], const Permission &permission); - ~Group(); - - const std::string& getName() const; - DataView getId() const; - const Permission& getPermission() const; - const std::vector<const User*>& getUsers() const; - private: - void addUser(const User *user); - private: - std::string name; - uint8_t id[16]; - Permission permission; - std::vector<const User*> users; - }; -} |