Salome HOME
add StudyService
[modules/gde.git] / projects / GDE_API_CPP / api / src / JsonFormatter.hpp
index 395bbcb8dbb2cdbed904e7eefef208c8fe083388..96856cf224a2dc17bdd7100b758ecf6349661f15 100644 (file)
@@ -1,9 +1,10 @@
-#ifndef JSON_FORMATTER_HPP
-#define JSON_FORMATTER_HPP
+#ifndef GDE_JSON_FORMATTER_HPP
+#define GDE_JSON_FORMATTER_HPP
 
 #include <string>
 
 #include <Poco/JSON/Object.h>
+#include <Poco/Timestamp.h>
 
 namespace gde {
 
@@ -11,7 +12,9 @@ namespace gde {
   public:
 
     static Poco::JSON::Object::Ptr parse(const std::string&);
+
     template <typename T> static T extract(Poco::JSON::Object::Ptr, const std::string&);
+    static Poco::Timestamp extract(Poco::JSON::Object::Ptr, const std::string&);
 
     static std::string stringify(const Poco::JSON::Object&);
   };