Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
proc/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 "proc/asset/media.hpp"
33 
34 
35 
37 
38 namespace proc {
39 namespace asset {
40 
44  class Clip : public Media
45  {
47  const Media& source_;
48 
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 proc:asset
71 #endif
PClip clipMO_
the corresponding (dependent) clip-MO
virtual PMedia checkCompound() const
specialisation delegating the decision to the media asset referred by this clip
bookkeeping (Asset) view of a media clip.
A refcounting Handle to an MObject of type MO, used to constrain or explicitly specify the location w...
Definition: trait.hpp:87
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Definition: trait.hpp:76
Media data represented a specific kind of Asset.
The asset subsystem of the Proc-Layer.
Definition: id-scheme.hpp:64
const Media & source_
media source of this clip
const string CLIP_SUBFOLDER
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:143
virtual PClip createClip() const
Specialisation of the asset::Media interface method, just returning the already existing Clip-MO...
Proc-Layer implementation namespace root.
Definition: id-scheme.hpp:63
key abstraction: media-like assets
Definition: media.hpp:72
Clip(Media &mediaref)
lib::P< const asset::Clip > PClipAsset