]> Dogcows Code - chaz/yoink/blobdiff - src/serializable.hh
big batch of progress
[chaz/yoink] / src / serializable.hh
index 5b8b403dabc8e0020d55918d6a28257994b96bf6..967b2133376ffc2a43b20fe94ac5edc237114f34 100644 (file)
@@ -34,9 +34,9 @@
 #include <map>
 #include <vector>
 
+#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<serializable_ptr>& value);
        virtual bool get(std::map<std::string,serializable_ptr>& 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: *************************************************/
+
This page took 0.017417 seconds and 4 git commands to generate.