Lumiera  0.pre.03
»edit your freedom«
generator-mo.hpp
Go to the documentation of this file.
1 /*
2  GENERATOR-MO.hpp - a (Test)data generator
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 
32 #ifndef STEAM_MOBJECT_SESSION_GENERATOR_MO_H
33 #define STEAM_MOBJECT_SESSION_GENERATOR_MO_H
34 
36 #include "lib/time/timevalue.hpp"
37 
38 
39 namespace steam {
40 namespace asset {
41  class Media;
42  class Clip;
43 }
44 
45 namespace mobject {
46 namespace session {
47 
48  using asset::Media;
49  using lib::time::TimeVar;
50 
51  typedef lib::P<Media> PMedia;
52  typedef lib::P<asset::Clip> PClipAsset;
53 
54 
59  : public AbstractMO
60  {
61  string
62  initShortID() const
63  {
64  return buildShortID("Generator");
65  }
66 
67  void setupLength();
68 
69 
70 
71  protected:
74 
83  GeneratorMO ();
84  friend class MObjectFactory;
85 
86 
87  public:
88  bool isValid() const;
89 
90 
92 
93  };
94 
95 
96 
97 }}} // namespace steam::mobject::session
98 #endif
a mutable time value, behaving like a plain number, allowing copy and re-accessing ...
Definition: timevalue.hpp:241
key abstraction: media-like assets
Definition: media.hpp:72
Base class of all BuilderTools, used according to the visitor pattern: each Tool contains the concret...
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:74
abstract base class of all MObjects for providing common services.
Definition: abstractmo.hpp:48
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Definition: trait.hpp:80
#define DEFINE_PROCESSABLE_BY(TOOL)
mark a Visitable subclass as actually treat-able by some "visiting tool" base interface.
Definition: visitor.hpp:231
TimeVar start_
start position in source
a family of time value like entities and their relationships.
The asset subsystem of the Steam-Layer.
Definition: wrapperptr.hpp:44