projects
/
libdcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tidying.
[libdcp.git]
/
src
/
verify.cc
diff --git
a/src/verify.cc
b/src/verify.cc
index 6f6a48f1b8a418fc4a1f0e6703b028438275b8d5..3cb61bad286629c863c8ff14af8d132ec7845696 100644
(file)
--- a/
src/verify.cc
+++ b/
src/verify.cc
@@
-31,6
+31,12
@@
files in the program, then also delete it here.
*/
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"
#include "verify.h"
#include "dcp.h"
#include "cpl.h"
@@
-72,6
+78,7
@@
#include <vector>
#include <iostream>
#include <vector>
#include <iostream>
+
using std::list;
using std::vector;
using std::string;
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 boost::function;
using std::dynamic_pointer_cast;
+
using namespace dcp;
using namespace xercesc;
using namespace dcp;
using namespace xercesc;
+
static
string
xml_ch_to_string (XMLCh const * a)
static
string
xml_ch_to_string (XMLCh const * a)
@@
-98,6
+107,7
@@
xml_ch_to_string (XMLCh const * a)
return o;
}
return o;
}
+
class XMLValidationError
{
public:
class XMLValidationError
{
public:
@@
-183,6
+193,7
@@
private:
list<XMLValidationError> _errors;
};
list<XMLValidationError> _errors;
};
+
class StringToXMLCh
{
public:
class StringToXMLCh
{
public:
@@
-207,6
+218,7
@@
private:
XMLCh* _buffer;
};
XMLCh* _buffer;
};
+
class LocalFileResolver : public EntityResolver
{
public:
class LocalFileResolver : public EntityResolver
{
public:
@@
-1341,6
+1353,7
@@
dcp::verify (
return notes;
}
return notes;
}
+
string
dcp::note_to_string (VerificationNote note)
{
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();
}
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)
{
std::ostream&
dcp::operator<< (std::ostream& s, dcp::VerificationNote const& note)
{