score
Home
Classes
Namespaces
Files
Loading...
Searching...
No Matches
ValidityChecker.hpp
1
#pragma once
2
#include <score/plugins/Interface.hpp>
3
4
#include <score_lib_base_export.h>
5
6
namespace
score
7
{
8
class
Document;
9
struct
DocumentContext;
10
20
class
SCORE_LIB_BASE_EXPORT
ValidityChecker
:
public
score::InterfaceBase
21
{
22
SCORE_INTERFACE(
ValidityChecker
,
"08d4e533-e212-41ba-b0c1-643cc2c98cae"
)
23
public
:
24
~ValidityChecker
()
override
;
25
26
virtual
bool
validate(
const
score::DocumentContext
&) = 0;
27
};
28
29
class
ValidityCheckerList
;
30
34
class
SCORE_LIB_BASE_EXPORT
DocumentValidator
35
{
36
public
:
37
DocumentValidator
(
const
ValidityCheckerList
& l,
const
score::Document
& doc);
38
40
bool
operator()()
const
;
41
42
private
:
43
const
ValidityCheckerList
& m_list;
44
const
score::Document
& m_doc;
45
};
46
}
score::Document
The Document class is the central part of the software.
Definition
Document.hpp:51
score::DocumentValidator
Checks that a document is valid according to a list of checks to run.
Definition
ValidityChecker.hpp:35
score::InterfaceBase
Base class for plug-in interfaces.
Definition
Interface.hpp:52
score::ValidityChecker
Implement validation checks on the document.
Definition
ValidityChecker.hpp:21
score::ValidityCheckerList
Definition
ValidityCheckerList.hpp:11
score
Base toolkit upon which the software is built.
Definition
Application.cpp:97
score::DocumentContext
Definition
DocumentContext.hpp:18