![]() |
VR-Forces 4.0.4 Class Documentation
|
A schema for a definition. More...
Public Types | |
| enum | ErrorCodes { ParameterMissing, InvalidEnumeration, ParsingError, FileNameDoesNotExist, NotSupported, end_ErrorCodes } |
| typedef std::pair< std::string, ErrorCodes > | ErrorMessage |
| An error message has a string (indicating a parameter) and an Error Code (indicating the problem). | |
| typedef std::vector< std::pair < std::string, ErrorCodes > > | ErrorMessageList |
Public Member Functions | |
| DtModelDefinitionSchemaValidator (DtDe &de) | |
| CTOR. | |
| ~DtModelDefinitionSchemaValidator () | |
| DTOR. | |
| virtual bool | validate (const makArchives::DtSchemaEntry &, const DtModelDefinition &definition, ErrorMessageList &errors, bool firstErrorOnly) const |
| Validate a schema definition. | |
| makArchives::DtSchemaEntry::DtSchemaParameters | missingParameters (const makArchives::DtSchemaEntry &, const DtModelDefinition &definition) const |
| Get the missing parameters from a schema definition. | |
Protected Attributes | |
| DtDe & | myDe |
A schema for a definition.
| typedef std::pair<std::string,ErrorCodes> makVrv::DtModelDefinitionSchemaValidator::ErrorMessage |
An error message has a string (indicating a parameter) and an Error Code (indicating the problem).
| typedef std::vector<std::pair<std::string,ErrorCodes> > makVrv::DtModelDefinitionSchemaValidator::ErrorMessageList |
| virtual bool makVrv::DtModelDefinitionSchemaValidator::validate | ( | const makArchives::DtSchemaEntry & | , |
| const DtModelDefinition & | definition, | ||
| ErrorMessageList & | errors, | ||
| bool | firstErrorOnly | ||
| ) | const [virtual] |
Validate a schema definition.
param Input
| the | definition to check. |
| firstErrorOnly | stops validation after the first problem. |
| Output | |
| errors | a list of all of the validation errors. |
| makArchives::DtSchemaEntry::DtSchemaParameters makVrv::DtModelDefinitionSchemaValidator::missingParameters | ( | const makArchives::DtSchemaEntry & | , |
| const DtModelDefinition & | definition | ||
| ) | const |
Get the missing parameters from a schema definition.
DtDe& makVrv::DtModelDefinitionSchemaValidator::myDe [protected] |