diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2018-05-29 05:44:54 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2018-05-29 05:44:54 +0100 |
commit | 3ab7ec581fb0d491a9c78013c5932630a4617d47 (patch) | |
tree | 0ece7552ab2861a5e07b59d0cb6e00707cf065dc /little/OptionsEngineLittle.h | |
parent | 316a0f5ee6cb7a2ba545e595b6958f3cbebf6d48 (diff) | |
parent | 594fcba67600704bee9115c86e18927b2237b304 (diff) |
record new upstream branch and merge it
Diffstat (limited to 'little/OptionsEngineLittle.h')
-rw-r--r-- | little/OptionsEngineLittle.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/little/OptionsEngineLittle.h b/little/OptionsEngineLittle.h new file mode 100644 index 0000000..02115bf --- /dev/null +++ b/little/OptionsEngineLittle.h @@ -0,0 +1,24 @@ +#ifndef OPTIONSENGINELITTLE_H +#define OPTIONSENGINELITTLE_H + +#include "../interface/OptionInterface.h" +#include <unordered_map> +#include <string> +#include <utility> +#include <vector> + +class OptionsEngineLittle : public OptionInterface +{ +public: + OptionsEngineLittle(); + /// \brief To add option group to options + bool addOptionGroup(const std::vector<std::pair<std::string, std::string> > &KeysList); + /// \brief To get option value + std::string getOptionValue(const std::string &variableName) const; + /// \brief To set option value + void setOptionValue(const std::string &variableName,const std::string &value); +private: + std::unordered_map<std::string,std::string> options; +}; + +#endif // OPTIONSENGINELITTLE_H |