Lumiera  0.pre.03
»edit your freedom«
session-query.hpp
Go to the documentation of this file.
1 /*
2  SESSION-QUERY.hpp - querying for session contents in various ways
3 
4  Copyright (C) Lumiera.org
5  2010, 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 
40 #ifndef MOBJECT_SESSION_SESSION_QUERY_H
41 #define MOBJECT_SESSION_SESSION_QUERY_H
42 
46 
47 #include <functional>
48 
49 
50 
51 namespace steam {
52 namespace mobject {
53 namespace session {
54 
55  using std::function;
56 
57 
58 
59  /* ====== Predicates for picking objects ====== */
60 
62  inline function<bool(Placement<Fork> const&)>
63  match_specificFork (string const& forkID)
64  {
65  return [=](Placement<Fork> const& forkMO)
66  {
67  return forkMO->isSameID (forkID);
68  };
69  }
70 
71 }}} // namespace steam::mobject::session
72 #endif
A refcounting Handle to an MObject of type MO, used to constrain or explicitly specify the location w...
Definition: trait.hpp:89
Core abstraction: placement of a media object into session context.
function< bool(Placement< Fork > const &)> match_specificFork(string const &forkID)
yield a query predicate to pick a specific fork
Organisational grouping device within the Session model ("Track" / "Media Bin").
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:74
Primary Interface to the current Session.