|
SSAGES
0.1
A MetaDynamics Package
|
Requirements on an object. More...
#include <ObjectRequirement.h>

Public Member Functions | |
| ObjectRequirement () | |
| Constructor. | |
| ~ObjectRequirement () | |
| Destructor. | |
| virtual void | ClearErrors () override |
| Clear errors on all Requirements. | |
| virtual void | ClearNotices () override |
| Clear notices on all Requirements. | |
| virtual void | Reset () override |
| Reset Requirement. | |
| virtual void | Parse (Value json, const std::string &path) override |
| Parse JSON value to generate Requirement(s). More... | |
| virtual void | Validate (const Value &json, const std::string &path) override |
| Validate JSON value. 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::map< std::string, std::unique_ptr< Requirement > > | properties_ |
| Map of properties the object needs to have. | |
|
std::map< std::string, std::unique_ptr< Requirement > > | patternProps_ |
| Map of patterns the object needs to match. | |
| RequireList | extended_ |
| List of requirements. | |
|
std::unique_ptr < DependencyRequirement > | dependency_ |
| Dependency requirement. | |
| std::vector< std::string > | required_ |
| List of requirements. | |
| bool | moreProps_ |
If True, more properties need to be set. | |
| bool | setMin_ |
If True lower bound is active. | |
| bool | setMax_ |
If True upper bound is active. | |
| unsigned int | min_ |
| Lower bound. | |
| unsigned int | max_ |
| Upper bound. | |
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... | |
Requirements on an object.
Definition at line 46 of file ObjectRequirement.h.
|
inlineoverridevirtual |
Parse JSON value to generate Requirement(s).
| json | JSON input value. |
| path | Path for JSON path specification. |
Implements Json::Requirement.
Definition at line 142 of file ObjectRequirement.h.
References dependency_, extended_, Json::RequirementLoader::LoadExtended(), Json::RequirementLoader::LoadRequirement(), max_, min_, moreProps_, patternProps_, properties_, required_, Reset(), setMax_, and setMin_.
Referenced by SSAGES::GaussianPK::Build(), SSAGES::Logger::Build(), SSAGES::ResourceHandler::Build(), SSAGES::RationalSwitchPK::Build(), SSAGES::Umbrella::Build(), SSAGES::Meta::Build(), SSAGES::AlphaRMSDCV::Build(), SSAGES::StringMethod::Build(), SSAGES::AntiBetaRMSDCV::Build(), SSAGES::ParallelBetaRMSDCV::Build(), SSAGES::ABF::Build(), SSAGES::Basis::Build(), SSAGES::ForwardFlux::Build(), SSAGES::Constraint::BuildConstraint(), SSAGES::Grid< int >::BuildGrid(), SSAGES::Histogram< int >::BuildHistogram(), and SSAGES::Method::BuildMethod().


|
inlineoverridevirtual |
Validate JSON value.
| json | JSON value to be validated. |
| path | Path for JSON path specification. |
Implements Json::Requirement.
Definition at line 239 of file ObjectRequirement.h.
References dependency_, extended_, Json::Requirement::GetErrors(), Json::Requirement::GetNotices(), Json::Requirement::HasErrors(), Json::Requirement::HasNotices(), max_, min_, moreProps_, patternProps_, properties_, Json::Requirement::PushError(), Json::Requirement::PushNotice(), required_, setMax_, setMin_, and Json::Requirement::Validate().
Referenced by SSAGES::GaussianPK::Build(), SSAGES::Logger::Build(), SSAGES::ResourceHandler::Build(), SSAGES::RationalSwitchPK::Build(), SSAGES::Umbrella::Build(), SSAGES::Meta::Build(), SSAGES::AlphaRMSDCV::Build(), SSAGES::StringMethod::Build(), SSAGES::AntiBetaRMSDCV::Build(), SSAGES::ParallelBetaRMSDCV::Build(), SSAGES::ABF::Build(), SSAGES::Basis::Build(), SSAGES::ForwardFlux::Build(), SSAGES::Constraint::BuildConstraint(), SSAGES::Grid< int >::BuildGrid(), SSAGES::Histogram< int >::BuildHistogram(), and SSAGES::Method::BuildMethod().


1.8.7