28 #include "Requirement.h"
55 virtual void Parse(Value json,
const std::string&)
67 virtual void Validate(
const Value& json,
const std::string& path)
71 for(
auto& val :
enum_)
76 PushError(path +
": Value is not a valid entry.");
Requires entry to be member of an enum.
virtual void Reset()
Clear enum value.
virtual void Parse(Value json, const std::string &)
Parse JSON input value to generate enum.
EnumRequirement()
Constructor.
virtual void Validate(const Value &json, const std::string &path)
Validate that JSON value is member of the parsed enum.
std::vector< Value > enum_
Enum value.
Requirements on input files.
void PushError(const std::string &error)
Add error to list of error messages.