BlinkenArea - GitList
Repositories
Blog
Wiki
permissioner
Code
Commits
Branches
Tags
Search
Tree:
94356db
Branches
Tags
master
permissioner
permissionerd
src
Permissions.h
permission parsing
Stefan Schuermans
commited
94356db
at 2020-08-18 20:17:46
Permissions.h
Blame
History
Raw
#ifndef PERMISSIONS_H #define PERMISSIONS_H #include <cstdint> #include <string> /// permissions configuration class Permissions { public: typedef uint64_t Flags; static const Flags flagRead = 01; static const Flags flagWrite = 02; static const Flags flagExecute = 04; static const Flags flagOther = 01; static const Flags flagGroup = 010; static const Flags flagUser = 0100; /** * @brief parse permissions parameters * @param[in] parmStr parameter string * @throws std::exception if something goes wrong */ void parseParams(std::string const ¶mStr); protected: Flags set = 0; ///< permissions to set Flags setCond = 0; ///< permissions to set conditionally on usrexec/dir Flags clear = 0; ///< permissions to clear Flags clearCond = 0; ///< permissions to clear conditionally on usrexec/dir }; #endif // #ifndef PERMISSIONS_H