Lumiera  0.pre.03
»edit your freedom«
viewer.hpp
Go to the documentation of this file.
1 /*
2  VIEWER.hpp - asset corresponding to a viewer element in the GUI
3 
4  Copyright (C) Lumiera.org
5  2011, 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 
47 #ifndef ASSET_VIEWER_H
48 #define ASSET_VIEWER_H
49 
50 #include "steam/asset/struct.hpp"
51 //#include "steam/mobject/mobject.hpp"
52 //#include "steam/mobject/placement.hpp"
54 //#include "steam/mobject/session/binding.hpp" ////TODO avoidable??
55 #include "lib/p.hpp"
56 #include "lib/element-tracker.hpp"
57 
58 
59 //#include <vector>
60 //#include <string>
61 
62 //using std::vector;
63 //using std::string;
64 
65 namespace steam {
66 namespace mobject {
67 namespace session {
68 
69  class Binding;
70  typedef MORef<Binding> RBinding;
71 }}
72 
73 
74 namespace asset {
75 
76 
77  class Viewer;
78  typedef lib::P<Viewer> PViewer;
79 
80 
84  class Viewer
85  : public Struct
86 // , public lib::AutoRegistered<Viewer>
87  {
88 
89  Viewer (Ident const&);
90 
91  public:
93 // static PTimeline create (Asset::Ident const& idi, RBinding const& sequenceBinding);
94 
95  protected:
96  virtual void unlink ();
97 
98  };
99 
100 
101 
102 
104 
105 
106 }} // namespace steam::asset
107 #endif
Customised refcounting smart pointer.
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:74
External MObject/Placement reference.
a POD comprised of all the information sufficiently identifying any given Asset.
Definition: asset.hpp:158
Tracking instances automatically on creation and disposal.
TODO type comment.
Definition: viewer.hpp:84
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Definition: trait.hpp:80
key abstraction: structural asset Created automatically as a sideeffect of building the structure of ...
Definition: struct.hpp:113
The asset subsystem of the Steam-Layer.
Definition: wrapperptr.hpp:44
Asset representation of structural elements within the model.