VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
DtModelDefinitionSchemaValidator.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtModelDefinitionSchemaValidator.h,v $ $Revision: 1.10 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtModelDefinitionSchemaValidator_H_
14
#define DtModelDefinitionSchemaValidator_H_
15
16
#include <
vrvCore/vrvCore.h
>
17
#include <
makArchives/DtSchema.h
>
18
19
#include <string>
20
#include <vector>
21
22
namespace
makVrv
23
{
24
class
DtModelDefinition;
25
28
class
DT_DLL_VRVCORE
DtModelDefinitionSchemaValidator
29
{
30
public
:
31
32
enum
ErrorCodes
33
{
34
ParameterMissing
,
35
InvalidEnumeration
,
36
ParsingError
,
37
FileNameDoesNotExist
,
38
NotSupported
,
39
end_ErrorCodes
40
};
41
44
typedef
std::pair<std::string,ErrorCodes>
ErrorMessage
;
45
typedef
std::vector<std::pair<std::string,ErrorCodes> >
ErrorMessageList
;
46
48
DtModelDefinitionSchemaValidator
(
DtDe
& de);
49
51
~
DtModelDefinitionSchemaValidator
();
52
59
60
virtual
bool
validate(
const
makArchives::DtSchemaEntry
&,
const
DtModelDefinition
& definition,
ErrorMessageList
& errors,
61
bool
firstErrorOnly)
const
;
62
64
makArchives::DtSchemaEntry::DtSchemaParameters
missingParameters(
const
makArchives::DtSchemaEntry
&,
65
const
DtModelDefinition
& definition)
const
;
66
67
68
protected
:
69
DtDe
&
myDe
;
70
};
71
}
72
73
#endif
74
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)