diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-03-13 06:26:06 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:25:46 +0200 |
commit | 5a8727e34b938b70623ca865273fd81c7604b461 (patch) | |
tree | a2921e90aa454072dc58fced36b508f67f5d1226 /include/User.hpp | |
parent | 9ffc25c9d99fe86d4789108d1d8615ecb0388cc6 (diff) |
Expose include dir
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; - }; -} |