VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Attributes
makVrv::DtModelDefinitionSchemaValidator Class Reference

A schema for a definition. More...

List of all members.

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

DtDemyDe

Detailed Description

A schema for a definition.


Member Typedef Documentation

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

Member Enumeration Documentation

Enumerator:
ParameterMissing 
InvalidEnumeration 
ParsingError 
FileNameDoesNotExist 
NotSupported 
end_ErrorCodes 

Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual bool makVrv::DtModelDefinitionSchemaValidator::validate ( const makArchives::DtSchemaEntry ,
const DtModelDefinition definition,
ErrorMessageList errors,
bool  firstErrorOnly 
) const [virtual]

Validate a schema definition.

param Input

Parameters:
thedefinition to check.
firstErrorOnlystops validation after the first problem.
Output
errorsa list of all of the validation errors.

Get the missing parameters from a schema definition.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)