00001 #ifndef UTILMM_CONFIG_FILE_HH
00002 #define UTILMM_CONFIG_FILE_HH
00003
00004 #include <utilmm/configfile/exceptions.hh>
00005 #include <utilmm/configfile/configset.hh>
00006 #include <string>
00007
00008 namespace utilmm
00009 {
00010 struct parse_error : public std::exception
00011 {
00012 int const line;
00013 std::string const message;
00014
00015 explicit parse_error(int line, std::string const& message);
00016 ~parse_error() throw() {}
00017 };
00018
00023 class config_file : public config_set
00024 {
00025 private:
00026 void read(const std::string& name);
00027
00028 public:
00029
00034 config_file(const std::string& name);
00035 };
00036 }
00037
00038 #endif
00039