#include #include #include "Jeep/JProperties.hh" int main() { using namespace std; string buffer = "noot % 3.1415927 \n" "mies % abcdefg \n" "aap % -12345 \n"; JProperties zap; int aap; double noot; string mies; zap["aap"] = aap; zap["noot"] = noot; zap["mies"] = mies; if (zap.read(buffer)) cout << "read success" << endl; else cerr << "read failure" << endl; for (string::iterator i = buffer.begin(); i != buffer.end(); ++i) { if (*i == '%') { *i = '='; } } if (zap.read(buffer)) cout << "read success" << endl; else cerr << "read failure" << endl; cout << "aap: " << aap << endl; cout << "noot: " << noot << endl; cout << "mies: " << mies << endl; }