#pragma once #include #include #include namespace usql { class Settings { public: static void set_setting(const std::string &name, const std::string &value); static std::string get_setting(const std::string &name); static bool get_bool_setting(const std::string &name); static long string_to_long(const std::string &intstr); static std::string long_to_string(long intval); static double string_to_double(const std::string &doublestr); static std::string double_to_string(double doubleval); static long string_to_date(const std::string &datestr); static std::string date_to_string(long dateval); static bool string_to_bool(const std::string &value); static std::string bool_to_string(bool value); private: static std::vector> m_settings; }; } // namespace