diff options
Diffstat (limited to 'general/Ini.cpp')
-rw-r--r-- | general/Ini.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/general/Ini.cpp b/general/Ini.cpp index df2b74a0..b829b115 100644 --- a/general/Ini.cpp +++ b/general/Ini.cpp @@ -22,12 +22,12 @@ #include "Ini.h" -PokeGen::Ini::Ini(const QString& fname) +Ini::Ini(const QString& fname) { load(fname); } -void PokeGen::Ini::load(const QString& fname) throw(Exception) +void Ini::load(const QString& fname) throw(Exception) { QFile fin(fname); if (!fin.exists()) @@ -36,7 +36,7 @@ void PokeGen::Ini::load(const QString& fname) throw(Exception) fin.close(); } -void PokeGen::Ini::load(QFile& fin) throw(InvalidException) +void Ini::load(QFile& fin) throw(InvalidException) { QTextStream file(&fin); QString line = file.readLine(); @@ -58,7 +58,7 @@ void PokeGen::Ini::load(QFile& fin) throw(InvalidException) } } -void PokeGen::Ini::save(const QString& fname) const throw(Exception) +void Ini::save(const QString& fname) const throw(Exception) { QStringList path = fname.split(QDir::separator(), QString::SkipEmptyParts); path.removeLast(); @@ -71,7 +71,7 @@ void PokeGen::Ini::save(const QString& fname) const throw(Exception) fout.close(); } -void PokeGen::Ini::save(QFile& file) const +void Ini::save(QFile& file) const { QTextStream fout(&file); for (QMapIterator<QString, QString> i(fields); i.hasNext(); i.next()) @@ -79,42 +79,42 @@ void PokeGen::Ini::save(QFile& file) const fout << '\n'; } -void PokeGen::Ini::addField(const QString& n, const bool v) +void Ini::addField(const QString& n, const bool v) { fields[n] = v ? "true" : "false"; } -void PokeGen::Ini::addField(const QString& n, const unsigned char v) +void Ini::addField(const QString& n, const unsigned char v) { fields[n] = QString("%1").arg(v); } -void PokeGen::Ini::addField(const QString& n, const int v) +void Ini::addField(const QString& n, const int v) { fields[n] = QString("%1").arg(v); } -void PokeGen::Ini::addField(const QString& n, const unsigned v) +void Ini::addField(const QString& n, const unsigned v) { fields[n] = QString("%1").arg(v); } -void PokeGen::Ini::addField(const QString& n, const float v) +void Ini::addField(const QString& n, const float v) { fields[n] = QString("%1").arg(v); } -void PokeGen::Ini::addField(const QString& n, const double v) +void Ini::addField(const QString& n, const double v) { fields[n] = QString("%1").arg(v); } -void PokeGen::Ini::addField(const QString& n, const QString& v) +void Ini::addField(const QString& n, const QString& v) { fields[n] = v; } -void PokeGen::Ini::getValue(const QString& field, bool& val, const bool def) +void Ini::getValue(const QString& field, bool& val, const bool def) { if (!fields.contains(field)) { @@ -129,7 +129,7 @@ void PokeGen::Ini::getValue(const QString& field, bool& val, const bool def) val = def; } -void PokeGen::Ini::getValue(const QString& field, unsigned char& val, const unsigned char def) +void Ini::getValue(const QString& field, unsigned char& val, const unsigned char def) { if (!fields.contains(field)) { @@ -145,7 +145,7 @@ void PokeGen::Ini::getValue(const QString& field, unsigned char& val, const unsi val = def; } -void PokeGen::Ini::getValue(const QString& field, int& val, const int def) +void Ini::getValue(const QString& field, int& val, const int def) { if (!fields.contains(field)) { @@ -158,7 +158,7 @@ void PokeGen::Ini::getValue(const QString& field, int& val, const int def) val = def; } -void PokeGen::Ini::getValue(const QString& field, unsigned& val, const unsigned def) +void Ini::getValue(const QString& field, unsigned& val, const unsigned def) { if (!fields.contains(field)) { @@ -171,7 +171,7 @@ void PokeGen::Ini::getValue(const QString& field, unsigned& val, const unsigned val = def; } -void PokeGen::Ini::getValue(const QString& field, float& val, const float def) +void Ini::getValue(const QString& field, float& val, const float def) { if (!fields.contains(field)) { @@ -184,7 +184,7 @@ void PokeGen::Ini::getValue(const QString& field, float& val, const float def) val = def; } -void PokeGen::Ini::getValue(const QString& field, double& val, const double def) +void Ini::getValue(const QString& field, double& val, const double def) { if (!fields.contains(field)) { @@ -197,7 +197,7 @@ void PokeGen::Ini::getValue(const QString& field, double& val, const double def) val = def; } -void PokeGen::Ini::getValue(const QString& field, QString& val, const QString& def) +void Ini::getValue(const QString& field, QString& val, const QString& def) { if (!fields.contains(field)) { |