BlinkenArea - GitList
Repositories
Blog
Wiki
permissioner
Code
Commits
Branches
Tags
Search
Tree:
355a113
Branches
Tags
master
permissioner
libpermissioner
include
permissioner
User.h
add copyright & license
Stefan Schuermans
commited
355a113
at 2020-09-17 19:23:53
User.h
Blame
History
Raw
/** * Permissioner: set file ownerships and permissions * Copyright 2020: Stefan Schuermans, Aachen, Germany <stefan@schuermans.info> * Copyleft: GNU GENERAL PUBLIC LICENSE version 3 (see LICENSE) */ #ifndef USER_H #define USER_H #include <boost/optional.hpp> #include <string> /// user name and ID configuration class User { public: /** * @brief parse user name * @param[in] userNameStr user name * @throws std::exception if something goes wrong */ void parseUserName(std::string const &userNameStr); /// return user name boost::optional<std::string> const & getUserName() const; /// return user ID (or -1 if none) int getUid() const; protected: boost::optional<std::string> userName; int uid = -1; }; #endif // #ifndef USER_H