class ContentProperty
{
public:
+ static int const PATH;
static int const POSITION;
static int const LENGTH;
static int const TRIM_START;
virtual std::string information () const = 0;
virtual void as_xml (xmlpp::Node *) const;
virtual Time full_length () const = 0;
+ virtual std::string identifier () const;
boost::shared_ptr<Content> clone () const;
+
+ void set_path (boost::filesystem::path);
boost::filesystem::path path () const {
boost::mutex::scoped_lock lm (_mutex);
return _path;
}
+ bool path_valid () const;
+
/** @return MD5 digest of the content's file(s) */
std::string digest () const {
boost::mutex::scoped_lock lm (_mutex);
}
Time end () const {
- return position() + length_after_trim();
+ return position() + length_after_trim() - 1;
}
Time length_after_trim () const;