7 #ifndef JsonInterface_HEADER 8 #define JsonInterface_HEADER 1 10 #include <json/json.h> 25 virtual void loadJSON(
const Json::Value& jsonNode) = 0;
26 virtual void saveJSON(Json::Value& jsonNode)
const = 0;
virtual void loadJSON(const Json::Value &jsonNode)=0
virtual void saveJSON(Json::Value &jsonNode) const =0
This code was derived from https://gist.github.com/mshockwave.
Pure virtual interface for classes implementing JSON-based load/save state.