69 explicit Ref (std::string
id)
88 void resolve (std::vector<std::shared_ptr<Asset>> assets);
91 std::string
id ()
const {
98 std::shared_ptr<Asset>
asset ()
const {
119 return static_cast<bool>(
_asset);
Parent class for DCP assets, i.e. picture, sound, subtitles, closed captions, CPLs,...
A reference to an asset which is identified by a universally-unique identifier (UUID)
Ref(std::shared_ptr< Asset > asset)
Asset * operator->() const
std::shared_ptr< Asset > _asset
shared_ptr to the thing, may be null.
std::shared_ptr< Asset > asset() const
std::string _id
ID; will always be known.
void set_id(std::string id)
void resolve(std::vector< std::shared_ptr< Asset >> assets)
An exception caused by a reference (by UUID) to something which is not known.
Exceptions thrown by libdcp.
Namespace for everything in libdcp.
Utility methods and classes.