// Copyright (c) 2023 Dominic Masters // // This software is released under the MIT License. // https://opensource.org/licenses/MIT #include "VNChoiceSetEventParser.hpp" using namespace Dawn; std::vector VNChoiceSetEventParser::getRequiredAttributes() { return { "key", "value" }; } std::map VNChoiceSetEventParser::getOptionalAttributes() { return {}; } int32_t VNChoiceSetEventParser::onParse( Xml *node, std::map values, struct VNChoiceSetEvent *out, std::string *error ) { out->key = values["key"]; out->value = values["value"]; return 0; }