1 #include <boost/thread/mutex.hpp>
2 #include <libxml++/libxml++.h>
3 #include <libcxml/cxml.h>
8 using boost::shared_ptr;
10 Content::Content (boost::filesystem::path f)
16 Content::Content (shared_ptr<const cxml::Node> node)
18 _file = node->string_child ("File");
19 _digest = node->string_child ("Digest");
23 Content::as_xml (xmlpp::Node* node) const
25 boost::mutex::scoped_lock lm (_mutex);
26 node->add_child("File")->add_child_text (_file.string());
27 node->add_child("Digest")->add_child_text (_digest);
31 Content::examine (shared_ptr<Film>, shared_ptr<Job>, bool)
33 string const d = md5_digest (_file);
34 boost::mutex::scoped_lock lm (_mutex);