diff options
Diffstat (limited to 'include/User.hpp')
-rw-r--r-- | include/User.hpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/include/User.hpp b/include/User.hpp deleted file mode 100644 index fb37876..0000000 --- a/include/User.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once - -#include "Signature.hpp" -#include <string> -#include <stdexcept> -#include <vector> - -namespace odhtdb -{ - class Group; - - class UserNameTooLongException : public std::runtime_error - { - public: - UserNameTooLongException(const std::string &userName) : - std::runtime_error(std::string("The username ") + userName + " is longer than 255 bytes") - { - - } - }; - - class User - { - public: - virtual ~User(){} - - void addToGroup(Group *group); - - const std::string& getName() const { return name; } - const std::vector<Group*>& getGroups() const { return groups; } - virtual const Signature::PublicKey& getPublicKey() const = 0; - protected: - User(const std::string &name, Group *group); - private: - std::string name; - std::vector<Group*> groups; - }; -} |