- %name(ReadInt)long Read(const wxString& key, long defaultVal = 0);
- %name(ReadFloat)double Read(const wxString& key, double defaultVal = 0.0);
+
+ %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;
+ }
+ }