Lumiera  0.pre.03
»edityourfreedom«
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 PROC_MOBJECT_SESSION_GENERATOR_MO_H
33 #define PROC_MOBJECT_SESSION_GENERATOR_MO_H
34 
36 #include "lib/time/timevalue.hpp"
37 
38 
39 namespace proc {
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;
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 proc::mobject::session
98 #endif
a mutable time value, behaving like a plain number, allowing copy and re-accessing ...
Definition: timevalue.hpp:142
ChPredicate isValid(is_alnum() or is_any_of("-_.+$'()@"))
characters to be retained
The asset subsystem of the Proc-Layer.
Definition: id-scheme.hpp:64
Base class of all BuilderTools, used according to the visitor pattern: each Tool contains the concret...
abstract base class of all MObjects for providing common services.
Definition: abstractmo.hpp:48
Namespace of Session and user visible high-level objects.
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Definition: trait.hpp:76
#define DEFINE_PROCESSABLE_BY(TOOL)
mark a Visitable subclass as actually treat-able by some "visiting tool" base interface.
Definition: visitor.hpp:231
Proc-Layer implementation namespace root.
Definition: id-scheme.hpp:63
a family of time value like entities and their relationships.
key abstraction: media-like assets
Definition: media.hpp:72
lib::P< const asset::Clip > PClipAsset
TimeVar start_
start position in source