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