diff options
author | Stijn Buys <ingar@osirion.org> | 2010-09-17 23:05:58 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-09-17 23:05:58 +0000 |
commit | a85c3ca1ff34775f2fc93013306dec21b34b0359 (patch) | |
tree | dc45be555858f53413d2477680247c8758b98d2a /src/filesystem/inifile.h | |
parent | 417eeaa34b8374de18358cc64511d7298bc33756 (diff) |
Initial inventory loading, ships docking ships
Diffstat (limited to 'src/filesystem/inifile.h')
-rw-r--r-- | src/filesystem/inifile.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/filesystem/inifile.h b/src/filesystem/inifile.h index e5423aa..4b94dcd 100644 --- a/src/filesystem/inifile.h +++ b/src/filesystem/inifile.h @@ -72,6 +72,9 @@ public: /// check if the last read key=value pair matches keylabel and store the value in valuestring bool got_key_string(const char * keylabel, std::string & valuestring); + /// check if the last read key=value pair matches keylabel and store the value in valuestring, converted to label + bool got_key_label(const char * keylabel, std::string & labelstring); + bool got_key_color(const char * keylabel, math::Color & color); bool got_key_float(const char * keylabel, float & f); @@ -97,6 +100,11 @@ public: /// print a default unkown section error void unknown_section() const; + + /// print a generic error message + void unknown_error(const char *text = 0) const; + + void unknown_error(const std::string &text) const; /// return true of the ini file is open for reading inline bool is_open() { |