comparison Core/JobsEngine/IJobUnserializer.h @ 2655:c196d76cb8fa jobs

serialization
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 Jun 2018 17:57:49 +0200
parents a3f0f61a14ca
children a6d3e45eeff5
comparison
equal deleted inserted replaced
2654:761031029aa9 2655:c196d76cb8fa
52 52
53 virtual IJobOperation* UnserializeOperation(const Json::Value& value) = 0; 53 virtual IJobOperation* UnserializeOperation(const Json::Value& value) = 0;
54 54
55 virtual JobOperationValue* UnserializeValue(const Json::Value& value) = 0; 55 virtual JobOperationValue* UnserializeValue(const Json::Value& value) = 0;
56 56
57 static std::string GetString(const Json::Value& value, 57 static std::string ReadString(const Json::Value& value,
58 const std::string& name); 58 const std::string& field);
59 59
60 static int GetInteger(const Json::Value& value, 60 static int ReadInteger(const Json::Value& value,
61 const std::string& name); 61 const std::string& field);
62 62
63 static unsigned int GetUnsignedInteger(const Json::Value& value, 63 static unsigned int ReadUnsignedInteger(const Json::Value& value,
64 const std::string& name); 64 const std::string& field);
65 65
66 static bool GetBoolean(const Json::Value& value, 66 static bool ReadBoolean(const Json::Value& value,
67 const std::string& name); 67 const std::string& field);
68 68
69 static void GetArrayOfStrings(std::vector<std::string>& target, 69 static void ReadArrayOfStrings(std::vector<std::string>& target,
70 const Json::Value& value,
71 const std::string& field);
72
73 static void ReadListOfStrings(std::list<std::string>& target,
70 const Json::Value& value, 74 const Json::Value& value,
71 const std::string& name); 75 const std::string& field);
72 76
73 static void GetListOfStrings(std::list<std::string>& target, 77 static void ReadSetOfStrings(std::set<std::string>& target,
74 const Json::Value& value, 78 const Json::Value& value,
75 const std::string& name); 79 const std::string& field);
76 80
77 static void GetSetOfStrings(std::set<std::string>& target, 81 static void WriteArrayOfStrings(Json::Value& target,
78 const Json::Value& value, 82 const std::vector<std::string>& values,
79 const std::string& name); 83 const std::string& field);
80 }; 84 };
81 } 85 }