Add choice and choice-set event parsing

This commit is contained in:
2023-04-25 20:33:13 -07:00
parent 556b731c0e
commit ce2ac8ba1c
11 changed files with 336 additions and 17 deletions

View File

@ -0,0 +1,26 @@
// Copyright (c) 2023 Dominic Masters
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
#pragma once
#include "util/XmlParser.hpp"
namespace Dawn {
struct VNChoiceSetEvent {
std::string key;
std::string value;
};
class VNChoiceSetEventParser : public XmlParser<VNChoiceSetEvent> {
protected:
std::vector<std::string> getRequiredAttributes() override;
std::map<std::string, std::string> getOptionalAttributes() override;
int32_t onParse(
Xml *node,
std::map<std::string, std::string> values,
struct VNChoiceSetEvent *out,
std::string *error
) override;
};
}