VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtModelDefinitionSchemaValidator.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtModelDefinitionSchemaValidator_H_
11 #define DtModelDefinitionSchemaValidator_H_
12 
13 #include <vrvCore/vrvCore.h>
14 #include <makArchives/DtSchema.h>
15 
16 #include <string>
17 #include <vector>
18 
19 namespace makVrv
20 {
21  class DtModelDefinition;
22 
26  {
27  public:
28 
30  {
37  end_ErrorCodes
38  };
39 
42  typedef std::pair<std::string,ErrorCodes> ErrorMessage;
43  typedef std::vector<std::pair<std::string,ErrorCodes> > ErrorMessageList;
44 
47 
50 
57 
58  virtual bool validate(const makArchives::DtSchemaEntry&, const DtModelDefinition& definition, ErrorMessageList& errors,
59  bool firstErrorOnly) const;
60 
63  const DtModelDefinition& definition) const;
64 
65 
66  protected:
68  };
69 }
70 
71 #endif
72 
std::vector< DtSchemaParameter > DtSchemaParameters
Definition: DtSchemaEntry.h:23
Definition: DtModelDefinitionSchemaValidator.h:34
std::pair< std::string, ErrorCodes > ErrorMessage
An error message has a string (indicating a parameter) and an Error Code (indicating the problem)...
Definition: DtModelDefinitionSchemaValidator.h:42
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:38
Definition: DtModelDefinitionSchemaValidator.h:35
Definition: DtModelDefinitionSchemaValidator.h:31
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Definition: DtModelDefinitionSchemaValidator.h:36
Definition: DtModelDefinitionSchemaValidator.h:33
A schema for a definition.
Definition: DtModelDefinitionSchemaValidator.h:25
The makArchives::DtSchemaEntry class is a collection of makArchives::DtSchemaParameter objects...
Definition: DtSchemaEntry.h:20
Definition: DtModelDefinitionSchemaValidator.h:32
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
ErrorCodes
Definition: DtModelDefinitionSchemaValidator.h:29
DtDe & myDe
Definition: DtModelDefinitionSchemaValidator.h:67
Contains DLL export macros.
std::vector< std::pair< std::string, ErrorCodes > > ErrorMessageList
Definition: DtModelDefinitionSchemaValidator.h:43

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)