Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
asset/clip.hpp
Go to the documentation of this file.
1/*
2 CLIP.hpp - bookkeeping (asset) view of a media clip.
3
4 Copyright (C)
5 2008, Hermann Vosseler <Ichthyostega@web.de>
6
7  **Lumiera** is free software; you can redistribute it and/or modify it
8  under the terms of the GNU General Public License as published by the
9  Free Software Foundation; either version 2 of the License, or (at your
10  option) any later version. See the file COPYING for further details.
11
12*/
13
14
20#ifndef ASSET_CLIP_H
21#define ASSET_CLIP_H
22
23#include "steam/asset/media.hpp"
24
25
26
28
29namespace steam {
30namespace asset {
31
35 class Clip : public Media
36 {
38 const Media& source_;
39
42
43 public:
44 virtual PClip createClip () const;
45
46 protected:
47 Clip (Media& mediaref);
48 friend class MediaFactory;
49
50 virtual PClipAsset getClipAsset ();
51 virtual PMedia checkCompound () const;
52
53 };
54
56
57 const string CLIP_SUBFOLDER = "clips"; // TODO: handling of hard-wired constants....
58
59
60
61}} // namespace steam:asset
62#endif
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Definition p.hpp:77
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
Factory specialised for creating Media Asset objects.
Definition media.hpp:136
key abstraction: media-like assets
Definition media.hpp:64
friend class steam::asset::Clip
Definition media.hpp:117
A refcounting Handle to an MObject of type MO, used to constrain or explicitly specify the location w...
Media data represented a specific kind of Asset.
The asset subsystem of the Steam-Layer.
const string CLIP_SUBFOLDER
Steam-Layer implementation namespace root.