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)
5  2010, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 */
13 
14 
31 #ifndef MOBJECT_SESSION_SESSION_QUERY_H
32 #define MOBJECT_SESSION_SESSION_QUERY_H
33 
37 
38 #include <functional>
39 
40 
41 
42 namespace steam {
43 namespace mobject {
44 namespace session {
45 
46  using std::function;
47 
48 
49 
50  /* ====== Predicates for picking objects ====== */
51 
53  inline function<bool(Placement<Fork> const&)>
54  match_specificFork (string const& forkID)
55  {
56  return [=](Placement<Fork> const& forkMO)
57  {
58  return forkMO->isSameID (forkID);
59  };
60  }
61 
62 }}} // namespace steam::mobject::session
63 #endif
A refcounting Handle to an MObject of type MO, used to constrain or explicitly specify the location w...
Definition: trait.hpp:82
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:65
Primary Interface to the current Session.