summaryrefslogtreecommitdiffstats
path: root/lib/inifile/iniFile.h
diff options
context:
space:
mode:
authorMasy98 <masy@antheruscraft.de>2014-09-06 22:06:40 +0200
committerMasy98 <masy@antheruscraft.de>2014-09-06 22:06:40 +0200
commit9cdb9b6262a0d6ffb9f83c20ca3c9483fb245aaa (patch)
tree500cd7ff84cbf42e34eb95225e83c3f18c4258c0 /lib/inifile/iniFile.h
parentFixed typo! (diff)
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadcuberite-9cdb9b6262a0d6ffb9f83c20ca3c9483fb245aaa.tar
cuberite-9cdb9b6262a0d6ffb9f83c20ca3c9483fb245aaa.tar.gz
cuberite-9cdb9b6262a0d6ffb9f83c20ca3c9483fb245aaa.tar.bz2
cuberite-9cdb9b6262a0d6ffb9f83c20ca3c9483fb245aaa.tar.lz
cuberite-9cdb9b6262a0d6ffb9f83c20ca3c9483fb245aaa.tar.xz
cuberite-9cdb9b6262a0d6ffb9f83c20ca3c9483fb245aaa.tar.zst
cuberite-9cdb9b6262a0d6ffb9f83c20ca3c9483fb245aaa.zip
Diffstat (limited to 'lib/inifile/iniFile.h')
-rw-r--r--lib/inifile/iniFile.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/inifile/iniFile.h b/lib/inifile/iniFile.h
index 58fecd0cf..33229bff0 100644
--- a/lib/inifile/iniFile.h
+++ b/lib/inifile/iniFile.h
@@ -53,7 +53,9 @@ private:
/// Removes the UTF-8 BOMs (Byte order makers), if present.
void RemoveBom(AString & a_line) const;
+
public:
+
enum errors
{
noID = -1,
@@ -79,6 +81,9 @@ public:
/// Deletes all stored ini data (but doesn't touch the file)
void Clear(void);
+
+ /** Returns true iff the specified value exists. */
+ bool HasValue(const AString & a_KeyName, const AString & a_ValueName);
/// Returns index of specified key, or noID if not found
int FindKey(const AString & keyname) const;