SSAGES
0.9.3
Software Suite for Advanced General Ensemble Simulations
|
Requires that at least one of a list of Requirements hold. More...
#include <AnyOfRequirement.h>
Public Member Functions | |
AnyOfRequirement () | |
Constructor. | |
virtual void | ClearErrors () override |
Clear list of error messages for all Requirements. | |
virtual void | ClearNotices () override |
Clear list of notices for all Requirements. | |
virtual void | Reset () override |
Reset all Requirements. | |
virtual void | Parse (Value json, const std::string &path) override |
Parse JSON value and create list of Requirements. More... | |
virtual void | Validate (const Value &json, const std::string &path) override |
Validate that at least one Requirement holds. More... | |
Public Member Functions inherited from Json::Requirement | |
bool | HasErrors () |
Check if errors have occured. More... | |
std::vector< std::string > | GetErrors () |
Get list of error messages. More... | |
virtual bool | HasNotices () |
Check if notices have been queued. More... | |
std::vector< std::string > | GetNotices () |
Get list of notices. More... | |
virtual | ~Requirement () |
Destructor. | |
Private Attributes | |
RequireList | reqs_ |
List of Requirements. | |
Additional Inherited Members | |
Protected Member Functions inherited from Json::Requirement | |
void | PushError (const std::string &error) |
Add error to list of error messages. More... | |
void | PushNotice (const std::string ¬ice) |
Add message to list of notices. More... | |
Requires that at least one of a list of Requirements hold.
Definition at line 37 of file AnyOfRequirement.h.
|
inlineoverridevirtual |
Parse JSON value and create list of Requirements.
This function parses the given JSON value and creates a new Requirement for each value in the "anyOf" branch. The new Requirements are appended to the list of Requirements.
Implements Json::Requirement.
Definition at line 81 of file AnyOfRequirement.h.
References Json::RequirementLoader::LoadRequirement(), reqs_, and Reset().
|
inlineoverridevirtual |
Validate that at least one Requirement holds.
Implements Json::Requirement.
Definition at line 102 of file AnyOfRequirement.h.
References Json::Requirement::PushError(), Json::Requirement::PushNotice(), and reqs_.