- wxString Read(const wxString& key, const wxString& defaultVal = wxPyEmptyStr);
- %name(ReadInt)long Read(const wxString& key, long defaultVal = 0);
- %name(ReadFloat)double Read(const wxString& key, double defaultVal = 0.0);
+ wxString Read(const wxString& key, const wxString& defaultVal = wxPyEmptyString);
+
+ %addmethods {
+ long ReadInt(const wxString& key, long defaultVal = 0) {
+ long rv;
+ self->Read(key, &rv, defaultVal);
+ return rv;
+ }
+ double ReadFloat(const wxString& key, double defaultVal = 0.0) {
+ double rv;
+ self->Read(key, &rv, defaultVal);
+ return rv;
+ }
+ bool ReadBool(const wxString& key, bool defaultVal = FALSE) {
+ bool rv;
+ self->Read(key, &rv, defaultVal);
+ return rv;
+ }
+ }