void Visitor<Reader<JSONObject>>::readFrom(const AutomationModel& autom) { m_obj["PluginsMetadata"] = toJsonValue(*autom.pluginModelList); m_obj["Curve"] = toJsonObject(autom.curve()); m_obj["Address"] = toJsonObject(autom.address()); m_obj["Min"] = autom.min(); m_obj["Max"] = autom.max(); }
void Visitor<Reader<DataStream>>::readFrom(const AutomationModel& autom) { readFrom(*autom.pluginModelList); m_stream << autom.address(); m_stream << autom.min(); m_stream << autom.max(); readFrom(autom.curve()); insertDelimiter(); }