SSAGES
0.9.3
Software Suite for Advanced General Ensemble Simulations
|
Requires dependencies to be met. More...
#include <DependencyRequirement.h>
Public Member Functions | |
DependencyRequirement () | |
Constructor. | |
virtual void | Reset () override |
Reset Requirement. More... | |
virtual void | Parse (Value json, const std::string &) override |
Parse JSON input value. More... | |
virtual void | Validate (const Value &json, const std::string &path) override |
Validate that Requirement is met. More... | |
~DependencyRequirement () | |
Destructor. | |
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 void | ClearErrors () |
Clear list of error messages. | |
virtual bool | HasNotices () |
Check if notices have been queued. More... | |
std::vector< std::string > | GetNotices () |
Get list of notices. More... | |
virtual void | ClearNotices () |
Clear list of notice messages. | |
virtual | ~Requirement () |
Destructor. | |
Private Attributes | |
std::map< std::string, std::vector< std::string > > | deps_ |
Set of dependencies. | |
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 dependencies to be met.
Definition at line 36 of file DependencyRequirement.h.
|
inlineoverridevirtual |
Parse JSON input value.
json | JSON input value. |
Implements Json::Requirement.
Definition at line 61 of file DependencyRequirement.h.
References deps_, and Reset().
|
inlineoverridevirtual |
Reset Requirement.
Clear set of dependencies.
Implements Json::Requirement.
Definition at line 50 of file DependencyRequirement.h.
References Json::Requirement::ClearErrors(), Json::Requirement::ClearNotices(), and deps_.
Referenced by Parse().
|
inlineoverridevirtual |
Validate that Requirement is met.
Implements Json::Requirement.
Definition at line 86 of file DependencyRequirement.h.
References deps_, and Json::Requirement::PushError().