SSAGES
0.9.3
Software Suite for Advanced General Ensemble Simulations
|
Requires that all of a list of Requirements hold. More...
#include <AllOfRequirement.h>
Public Member Functions | |
AllOfRequirement () | |
Constructor. | |
virtual void | ClearErrors () override |
Clear lists of errors for all Requirements. | |
virtual void | ClearNotices () override |
Clear lists 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 add all loaded Requirements. More... | |
virtual void | Validate (const Value &json, const std::string &path) override |
Validate that all Requirements are met. 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 all of a list of Requirements hold.
Definition at line 38 of file AllOfRequirement.h.
|
inlineoverridevirtual |
Parse JSON value and add all loaded Requirements.
This function parses a JSON value and adds all Requirements that are in the "allOf" branch to the list of Requirements.
Implements Json::Requirement.
Definition at line 81 of file AllOfRequirement.h.
References Json::RequirementLoader::LoadRequirement(), reqs_, and Reset().
|
inlineoverridevirtual |
Validate that all Requirements are met.
Implements Json::Requirement.
Definition at line 102 of file AllOfRequirement.h.
References Json::Requirement::PushError(), Json::Requirement::PushNotice(), and reqs_.