31 #include "json/json.h"
70 virtual void Parse(Value json,
const std::string& path) = 0;
77 virtual void Validate(
const Value& json,
const std::string& path) = 0;
Requirements on input files.
void PushNotice(const std::string ¬ice)
Add message to list of notices.
std::vector< std::string > notices_
List of messages.
virtual void Reset()=0
Reset validator.
std::vector< std::string > GetNotices()
Get list of notices.
std::vector< std::string > errors_
List of error messages.
std::vector< std::string > GetErrors()
Get list of error messages.
virtual ~Requirement()
Destructor.
virtual void ClearNotices()
Clear list of notice messages.
virtual void Validate(const Value &json, const std::string &path)=0
Validate that JSON value meets requirements.
virtual void ClearErrors()
Clear list of error messages.
virtual bool HasNotices()
Check if notices have been queued.
void PushError(const std::string &error)
Add error to list of error messages.
bool HasErrors()
Check if errors have occured.
virtual void Parse(Value json, const std::string &path)=0
Parse JSON value.
std::vector< std::unique_ptr< Requirement > > RequireList
List of Requirements.