23using std::static_pointer_cast;
40 string name (mediaref.
ident.
name +
"-clip");
58 :
Media (createClipIdent (mediaref),
59 mediaref.getFilename(),
62 , clipMO_ (createClipMO (*this, source_))
Definition of Asset representation for a media clip.
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
static lib::P< KIND > wrap(const KIND &asset)
retrieve the registered smart-ptr for any asset
const Ident ident
Asset identification tuple.
void defineDependency(PAsset parent)
establish a connection between this and the given parent asset, denoting we are in some way dependent...
Tree like classification of Assets.
void setPath(string const &newpath)
bookkeeping (Asset) view of a media clip.
virtual PClip createClip() const
Specialisation of the asset::Media interface method, just returning the already existing Clip-MO.
PClip clipMO_
the corresponding (dependent) clip-MO
const Media & source_
media source of this clip
virtual PMedia checkCompound() const
specialisation delegating the decision to the media asset referred by this clip
virtual PClipAsset getClipAsset()
return this wrapped into a shared ptr, because it's already the desired asset::Clip
static session::MObjectFactory create
Storage for the (single, static) MObject factory object.
A refcounting Handle to an MObject of type MO, used to constrain or explicitly specify the location w...
Core factory to generate media objects for use in the Session model.
Media::PClip createClipMO(const Clip &thisClipAsset, const Media &mediaChannel)
const Asset::Ident createClipIdent(const Media &mediaref)
The asset subsystem of the Steam-Layer.
const string CLIP_SUBFOLDER
Steam-Layer implementation namespace root.
a POD comprised of all the information sufficiently identifying any given Asset.
asset::Category category
primary tree like classification of the asset.
string name
element ID, comprehensible but sanitised.
const uint version
version number of the thing or concept represented by this asset.
const string org
origin or authorship id.