X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fserializable.hh;h=967b2133376ffc2a43b20fe94ac5edc237114f34;hp=5b8b403dabc8e0020d55918d6a28257994b96bf6;hb=7d15b919681bb9ec0088b4b27c6abf62d6dfb9b1;hpb=0fffd0097d7b496454413e57b398c903ecc252e4 diff --git a/src/serializable.hh b/src/serializable.hh index 5b8b403..967b213 100644 --- a/src/serializable.hh +++ b/src/serializable.hh @@ -34,9 +34,9 @@ #include #include +#include "stringtools.hh" #include "serializer.hh" #include "deserializer.hh" -#include "stringtools.hh" namespace dc { @@ -59,6 +59,15 @@ public: virtual bool get(std::wstring& value); virtual bool get(std::vector& value); virtual bool get(std::map& value); + + /* + * To get a number value which may have been parsed as either an integer or + * double, use these instead. + */ + + bool getNumber(long&); + bool getNumber(double&); + virtual bool isNull(); }; @@ -75,7 +84,6 @@ public: void print() const; bool get(T& value); - public: T variable; }; @@ -240,3 +248,5 @@ inline bool null::isNull() #endif // _SERIALIZABLE_HH_ +/** vim: set ts=4 sw=4 tw=80: *************************************************/ +