Lumiera  0.pre.03
»edit your freedom«
bus-mo.cpp
Go to the documentation of this file.
1 /*
2  BusMO - attachment point to form a global pipe
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 
32 
33 namespace steam {
34 namespace mobject {
35 namespace session {
36 
38  BusMO::BusMO (PPipe const& pipe_to_represent)
39  : pipe_(pipe_to_represent)
40  {
41  throwIfInvalid();
42  TODO ("what additionally to do when rooting a global pipe??");
43  }
44 
45 
46  bool
47  BusMO::isValid() const
48  {
49  TODO ("self-check of a global pipe within the model");
50  return true;
51  // Ideas: - maybe re-access the pipe "from outward"
52  // - and then verify matching WiringClaim in the corresponding placement
53  }
54 
55 
56 
57 
58 }}} // namespace steam::mobject::session
Steam-Layer implementation namespace root.
Namespace of Session and user visible high-level objects.
Definition: sequence.hpp:74
MObject in the Session to represent a processing pipe.