.. _program_listing_file_src_parser.h: Program Listing for File parser.h ================================= |exhale_lsh| :ref:`Return to documentation for file ` (``src/parser.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef PARSER_H_ #define PARSER_H_ #include #include #include class SettingsParserException : public std::exception { private: std::string message; public: SettingsParserException(const char* msg) : message(msg) {} const char* what() const throw() { return message.c_str(); } }; class Settings { private: struct option { char type; std::string name; double value_d; std::string value_s; option(std::string n, double v) : name(n), value_d(0), value_s("") {} option(std::string n, std::string v); option() : name(""), value_d(0), value_s("") {} }; std::vector