Extend serialization to gmx_int64_t
[alexxy/gromacs.git] / src / gromacs / utility / tests / keyvaluetreeserializer.cpp
index 00156143a9b29f0a11376d5304fb184c558b229b..f94866c8a6766a42086265227a2df0e284ac7c5b 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file is part of the GROMACS molecular simulation package.
  *
- * Copyright (c) 2016, by the GROMACS development team, led by
+ * Copyright (c) 2016,2017, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -65,6 +65,10 @@ class RefDataWriteSerializer : public gmx::ISerializer
         {
             checker_.checkInteger(*value, nullptr);
         }
+        virtual void doInt64(gmx_int64_t *value)
+        {
+            checker_.checkInt64(*value, nullptr);
+        }
         virtual void doFloat(float *value)
         {
             checker_.checkFloat(*value, nullptr);
@@ -101,6 +105,10 @@ class RefDataReadSerializer : public gmx::ISerializer
         {
             *value = checker_.readInteger(nullptr);
         }
+        virtual void doInt64(gmx_int64_t *value)
+        {
+            *value = checker_.readInt64(nullptr);
+        }
         virtual void doFloat(float *value)
         {
             *value = checker_.readFloat(nullptr);