diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-24 22:56:33 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-24 22:56:33 +0100 |
| commit | e1e7de8d73bedd0c741e7df0390068c67867e09f (patch) | |
| tree | 02f007aad80f4d99707f2507a81b0685865026d0 /src/verify.cc | |
| parent | ceaf7bc52712cb60708ed5eb5c62c5e463dd8e89 (diff) | |
Tidying.
Diffstat (limited to 'src/verify.cc')
| -rw-r--r-- | src/verify.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/verify.cc b/src/verify.cc index 6f6a48f1..3cb61bad 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -31,6 +31,12 @@ files in the program, then also delete it here. */ + +/** @file src/verify.cc + * @brief dcp::verify() method and associated code + */ + + #include "verify.h" #include "dcp.h" #include "cpl.h" @@ -72,6 +78,7 @@ #include <vector> #include <iostream> + using std::list; using std::vector; using std::string; @@ -85,9 +92,11 @@ using boost::optional; using boost::function; using std::dynamic_pointer_cast; + using namespace dcp; using namespace xercesc; + static string xml_ch_to_string (XMLCh const * a) @@ -98,6 +107,7 @@ xml_ch_to_string (XMLCh const * a) return o; } + class XMLValidationError { public: @@ -183,6 +193,7 @@ private: list<XMLValidationError> _errors; }; + class StringToXMLCh { public: @@ -207,6 +218,7 @@ private: XMLCh* _buffer; }; + class LocalFileResolver : public EntityResolver { public: @@ -1341,6 +1353,7 @@ dcp::verify ( return notes; } + string dcp::note_to_string (VerificationNote note) { @@ -1493,6 +1506,7 @@ dcp::operator== (dcp::VerificationNote const& a, dcp::VerificationNote const& b) return a.type() == b.type() && a.code() == b.code() && a.note() == b.note() && a.file() == b.file() && a.line() == b.line(); } + std::ostream& dcp::operator<< (std::ostream& s, dcp::VerificationNote const& note) { |
