12#ifndef SPACE_CONFIGMANAGEMENT_H
13#define SPACE_CONFIGMANAGEMENT_H
54 map<string, string> internalValues;
62 const string& getString(
const configKey& key,
const string& def)
const;
69 const string& getString(
const configKey& key)
const;
77 char getChar(
const configKey& key,
char def)
const;
94 int getInt(
const configKey& key,
int def,
int min=INT_MIN,
int max=INT_MAX)
const;
110 void getColor(
const configKey& key, nsGraphics::RGBAcolor& color,
const nsGraphics::RGBAcolor& def)
const;
118 void getColor(
const configKey& key, nsGraphics::RGBAcolor& color)
const;
126 void getList(
const configKey& baseKey, vector<string>& vec)
const;
temporary class used to populate a ConfigData object
void parseFile(const string &fname)
parse the file given, and put the keys/values in internalValues
ConfigData collectedData
Actual config data object.
void dumpInternalValues() const
print internalValues pairs in the console (in case in error reporting)
this struct stores all relevant data from the configuration file
player data, contains colors and key configuration