diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2008-01-19 01:22:22 +0000 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2008-01-19 01:22:22 +0000 |
commit | 342d0201b07d9030fced2f3baf3ecdefc841879a (patch) | |
tree | f0715cc7b267e2ce2bc93971d9e95c7e0c9b2b62 /general/Ini.cpp | |
parent | d017d90324a439dfb4bd3f25d30deb672bc40fd4 (diff) | |
download | sigen-342d0201b07d9030fced2f3baf3ecdefc841879a.tar.gz sigen-342d0201b07d9030fced2f3baf3ecdefc841879a.tar.xz sigen-342d0201b07d9030fced2f3baf3ecdefc841879a.zip |
[DEL] Removed PokeGen namespace
[ADD] general/AudioCache.h completed
[DEL] VERSION removed from subdir .pro files
[DEL] audio/
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@33 6ecfd1a5-f3ed-3746-8530-beee90d26b22
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)) { |