|
SSAGES
0.1
A MetaDynamics Package
|
Requires entry to be member of an enum. More...
#include <EnumRequirement.h>

Public Member Functions | |
| EnumRequirement () | |
| Constructor. | |
| virtual void | Reset () |
| Clear enum value. | |
| virtual void | Parse (Value json, const std::string &) |
| Parse JSON input value to generate enum. More... | |
| virtual void | Validate (const Value &json, const std::string &path) |
| Validate that JSON value is member of the parsed enum. 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 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::vector< Value > | enum_ |
| Enum value. | |
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 entry to be member of an enum.
Definition at line 36 of file EnumRequirement.h.
|
inlinevirtual |
Parse JSON input value to generate enum.
| json | JSON input value. |
Implements Json::Requirement.
Definition at line 55 of file EnumRequirement.h.
References enum_.
|
inlinevirtual |
Validate that JSON value is member of the parsed enum.
| json | JSON value to be validated. |
| path | Path for JSON path specification. |
Implements Json::Requirement.
Definition at line 67 of file EnumRequirement.h.
References enum_, and Json::Requirement::PushError().

1.8.7