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)
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 
29 namespace steam {
30 namespace asset {
31 
35  class Clip : public Media
36  {
38  const Media& source_;
39 
41  PClip clipMO_;
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
key abstraction: media-like assets
Definition: media.hpp:63
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:87
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:98
Factory specialised for creating Media Asset objects.
Definition: media.hpp:134
const Media & source_
media source of this clip
Definition: asset/clip.hpp:38
virtual PClip createClip() const
Specialisation of the asset::Media interface method, just returning the already existing Clip-MO...
Definition: asset/clip.cpp:76
bookkeeping (Asset) view of a media clip.
Definition: asset/clip.hpp:35
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Definition: trait.hpp:71
The asset subsystem of the Steam-Layer.
Definition: wrapperptr.hpp:35
PClip clipMO_
the corresponding (dependent) clip-MO
Definition: asset/clip.hpp:41