Lumiera  0.pre.03
»edit your freedom«
session-service-mutate.hpp
Go to the documentation of this file.
1 /*
2  SESSION-SERVICE-MUTATE.hpp - session implementation service API: add/remove session contents
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 
39 #ifndef MOBJECT_SESSION_SESSION_SERVICE_MUTATE_H
40 #define MOBJECT_SESSION_SESSION_SERVICE_MUTATE_H
41 
42 //#include "steam/mobject/session.hpp"
43 //#include "lib/meta/generator.hpp"
45 
46 
47 
48 
49 namespace steam {
50 namespace mobject {
51 namespace session {
52 
53 
62  {
63  public:
64  typedef PlacementMO const& PMO;
65  typedef PlacementMO::ID const& PID;
66 
67  static PID attach_toModel (PMO, PID) ;
68  static bool detach_and_clear (PID) ;
69  static bool detach (PID) ;
70  };
71 
72 
73 
74 }}} // namespace steam::mobject::session
75 #endif
Core abstraction: placement of a media object into session context.
Implementation-level service for resolving an Placement-ID.
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:74
static PID attach_toModel(PMO, PID)
attach an object by placement onto the session.
static bool detach_and_clear(PID)
detach the denoted element from the model including all children.
static bool detach(PID)
detach the denoted leaf element from the model.