BlinkenArea - GitList
Repositories
Blog
Wiki
permissioner
Code
Commits
Branches
Tags
Search
Tree:
1cbbe96
Branches
Tags
master
permissioner
libpermissioner
include
permissioner
Config.h
add nice and I/O idle config
Stefan Schuermans
commited
1cbbe96
at 2020-09-19 12:44:39
Config.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 CONFIG_H #define CONFIG_H #include <permissioner/Nice.h> #include <permissioner/Tree.h> #include <boost/filesystem.hpp> #include <map> #include <string> /// configuration file class Config { public: /** * @brief parse configuration file * @param[in] configFileName name of configuation file * @throws std::exception if something goes wrong */ void parseFile(std::string const &configFileName); /// return nice settings Nice const & getNice() const; /// return trees TreeMap const & getTrees() const; /** * @brief set owners and permissions of files in trees */ void setPermissions() const; protected: Nice nice; TreeMap trees; }; #endif // #ifndef CONFIG_H