… | |
… | |
383 | void get_ornull (shstr &sh) const { sh = value; } |
383 | void get_ornull (shstr &sh) const { sh = value; } |
384 | void get (shstr &sh) const { sh = value; } // might want to check for non-null here |
384 | void get (shstr &sh) const { sh = value; } // might want to check for non-null here |
385 | |
385 | |
386 | bool get_bool () const { return *value_nn == '1'; } |
386 | bool get_bool () const { return *value_nn == '1'; } |
387 | sint32 get_sint32 () const; |
387 | sint32 get_sint32 () const; |
388 | sint64 get_sint64 () const { return atoll (value_nn); } |
388 | sint64 get_sint64 () const { return strtoll (value_nn, 0, 10); } |
389 | double get_double () const { return atof (value_nn); } |
389 | double get_double () const { return strtod (value_nn, 0); } |
390 | |
390 | |
391 | void get (float &v) { v = get_double (); } |
391 | void get (float &v) { v = get_double (); } |
392 | void get (double &v) { v = get_double (); } |
392 | void get (double &v) { v = get_double (); } |
393 | |
393 | |
394 | void get (bool &i) { i = get_bool (); } |
394 | void get (bool &i) { i = get_bool (); } |