diff options
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 |