SSAGES
0.9.3
Software Suite for Advanced General Ensemble Simulations
|
Requires a given Requirement to fail. More...
#include <NotRequirement.h>
Public Member Functions | |
NotRequirement () | |
Constructor. | |
virtual void | ClearErrors () override |
Clear list of error messages. | |
virtual void | ClearNotices () override |
Clear list of notices. | |
virtual void | Reset () override |
Reset Requirement. | |
virtual void | Parse (Value json, const std::string &path) override |
Parse JSON value and generate Requirement to be negated. More... | |
virtual void | Validate (const Value &json, const std::string &path) override |
Validate that JSON value fails the given Requirement. 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 | |
std::unique_ptr< Requirement > | req_ |
Requirement to negate. | |
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 a given Requirement to fail.
Definition at line 37 of file NotRequirement.h.
|
inlineoverridevirtual |
Parse JSON value and generate Requirement to be negated.
Implements Json::Requirement.
Definition at line 78 of file NotRequirement.h.
References Json::RequirementLoader::LoadRequirement(), req_, and Reset().
|
inlineoverridevirtual |
Validate that JSON value fails the given Requirement.
Calls validate on the Requirement to be negated and checks if it has an error. If it has not, it passed the validation and an error is added to this Requirement.
Implements Json::Requirement.
Definition at line 97 of file NotRequirement.h.
References Json::Requirement::PushError(), and req_.