/** @file src/asset.h
* @brief Asset class.
- */
+ */
#ifndef LIBDCP_ASSET_H
#define LIBDCP_ASSET_H
class Node;
}
+struct asset_test;
+
namespace dcp {
/** @class Asset
public:
Asset ();
Asset (boost::filesystem::path file);
+ Asset (std::string id, boost::filesystem::path file);
virtual bool equals (
boost::shared_ptr<const Asset> other,
* @param node Parent node.
* @param standard Standard to use.
*/
- void write_to_pkl (xmlpp::Node* node, Standard standard) const;
+ void write_to_pkl (xmlpp::Node* node, boost::filesystem::path root, Standard standard) const;
/** @return the most recent disk file used to read or write this asset; may be empty */
boost::filesystem::path file () const {
std::string hash (boost::function<void (float)> progress = 0) const;
protected:
+ friend struct ::asset_test;
+
virtual std::string pkl_type (Standard standard) const = 0;
/** The most recent disk file used to read or write this asset; may be empty */