Lumiera  0.pre.03
»edit your freedom«
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) Lumiera.org
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 
29 #ifndef ASSET_CLIP_H
30 #define ASSET_CLIP_H
31 
32 #include "steam/asset/media.hpp"
33 
34 
35 
37 
38 namespace steam {
39 namespace asset {
40 
44  class Clip : public Media
45  {
47  const Media& source_;
48 
50  PClip clipMO_;
51 
52  public:
53  virtual PClip createClip () const;
54 
55  protected:
56  Clip (Media& mediaref);
57  friend class MediaFactory;
58 
59  virtual PClipAsset getClipAsset ();
60  virtual PMedia checkCompound () const;
61 
62  };
63 
65 
66  const string CLIP_SUBFOLDER = "clips"; // TODO: handling of hard-wired constants....
67 
68 
69 
70 }} // namespace steam:asset
71 #endif
key abstraction: media-like assets
Definition: media.hpp:72
Media data represented a specific kind of Asset.
virtual PClipAsset getClipAsset()
return this wrapped into a shared ptr, because it&#39;s already the desired asset::Clip ...
Definition: asset/clip.cpp:96
Steam-Layer implementation namespace root.
virtual PMedia checkCompound() const
specialisation delegating the decision to the media asset referred by this clip
Definition: asset/clip.cpp:107
Factory specialised for creating Media Asset objects.
Definition: media.hpp:143
const Media & source_
media source of this clip
Definition: asset/clip.hpp:47
virtual PClip createClip() const
Specialisation of the asset::Media interface method, just returning the already existing Clip-MO...
Definition: asset/clip.cpp:85
bookkeeping (Asset) view of a media clip.
Definition: asset/clip.hpp:44
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Definition: trait.hpp:80
The asset subsystem of the Steam-Layer.
Definition: wrapperptr.hpp:44
PClip clipMO_
the corresponding (dependent) clip-MO
Definition: asset/clip.hpp:50