Lumiera  0.pre.03
»edit your freedom«
mobject.cpp
Go to the documentation of this file.
1 /*
2  MObject - Key Abstraction: A Media Object in the Session
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 
31 #include "lib/time/timevalue.hpp"
32 #include "lib/util.hpp"
33 
34 using lib::time::Time;
35 using util::isnil;
36 
37 namespace steam {
38 namespace mobject {
39 
40 
41 
45 
46 
47  MObject::MObject()
48  : length_(Time::ZERO)
49  , shortID_()
50  { }
51 
52 
53  MObject::~MObject() { };
54 
55 
56 
57  string const&
59  {
60  if (isnil (shortID_))
61  shortID_ = initShortID();
62  return shortID_;
63  }
64 
65 
66 
67 }} // namespace mobject
Core abstraction of the Session model: a media object.
Steam-Layer implementation namespace root.
Lumiera&#39;s internal time value datatype.
Definition: timevalue.hpp:305
string const & shortID() const
a short readable ID as a single name-token, denoting both the kind of MObject and some sort of instan...
Definition: mobject.cpp:58
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
Core factory to generate media objects for use in the Session model.
static session::MObjectFactory create
Storage for the (single, static) MObject factory object.
Definition: mobject.hpp:98
a family of time value like entities and their relationships.