/* */ #ifndef _D_OPTION_H_ #define _D_OPTION_H_ #include "common.h" #include #include namespace aria2 { class Option { private: std::map table; public: Option(); ~Option(); void put(const std::string& name, const std::string& value); bool defined(const std::string& name) const; std::string get(const std::string& name) const; int getAsInt(const std::string& name) const; int64_t getAsLLInt(const std::string& name) const; bool getAsBool(const std::string& name) const; double getAsDouble(const std::string& name) const; void clear(); }; } // namespace aria2 #endif // _D_OPTION_H_