A meta-schema that determines if any, all, or exactly one or none of its subschemas are valid.
More...
#include <parsnip_schema.h>
|
| enum class | Action { All
, Any
, ExactlyOne
, Not
} |
| |
A meta-schema that determines if any, all, or exactly one or none of its subschemas are valid.
Also provides "not".
◆ createCopy()
Create an identical, deep copy of the schema.
Caller is responsible for deleting it.
Implements Parsnip::SchemaBase.
◆ dump()
| std::ostream & Parsnip::ConjunctionSchema::dump |
( |
std::ostream & |
target, |
|
|
int |
indent, |
|
|
bool |
suppress_indent = false |
|
) |
| const |
|
overridevirtual |
Render the schema in human-friendly text.
- Parameters
-
| target | Where to write the schema. |
| indent | Amount of indent to use. |
| suppress_indent | Flag indicating indent was already performed. |
Implements Parsnip::SchemaBase.
◆ is_conjunction()
| bool Parsnip::ConjunctionSchema::is_conjunction |
( |
const Parsnip::Data & |
schema_spec | ) |
|
|
static |
Checks a schema specification for a conjunction.
- Returns
- True if a conjunction is present, false otherwise.
◆ operator==()
| bool Parsnip::ConjunctionSchema::operator== |
( |
const SchemaBase & |
other | ) |
const |
|
overridevirtual |
Check if two schemas perform the same validation.
Compare two schemas to see if they determine validity in the same manner.
- Parameters
-
| other | The schema to compare to. |
- Returns
- True if the schemas match, false otherwise.
Reimplemented from Parsnip::SchemaBase.
◆ validate()
| void Parsnip::ConjunctionSchema::validate |
( |
const Parsnip::Data & |
entry | ) |
const |
|
overridevirtual |
Verify that Data matches the schema.
- Parameters
-
| entry | The data to validate. |
- Exceptions
-
Implements Parsnip::SchemaBase.
The documentation for this class was generated from the following files: