X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fconfig.h;h=1f7fa712839f5b5bdc346681e3a346c117aafba4;hb=HEAD;hp=1b78e3a4e4d2e8a1168be85f6ec0f78187d60202;hpb=59ac0a44d6edf179c01604c6ced744873213f855;p=builder.git diff --git a/source/config.h b/source/config.h deleted file mode 100644 index 1b78e3a..0000000 --- a/source/config.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef CONFIG_H_ -#define CONFIG_H_ - -#include -#include -#include "option.h" - -typedef std::map RawOptionMap; - -class Config -{ -public: - struct Option - { - std::string name; - std::string defv; - std::string descr; - std::string value; - - Option(const std::string &, const std::string &, const std::string &); - }; - typedef std::map OptionMap; - - void add_option(const std::string &, const std::string &, const std::string &); - const Option &get_option(const std::string &) const; - bool is_option(const std::string &) const; - bool process(const RawOptionMap &); - void load(const std::string &); -private: - OptionMap options; -}; - -#endif