Lumiera  0.pre.03
»edit your freedom«
explicitplacement.hpp
Go to the documentation of this file.
1 /*
2  EXPLICITPLACEMENT.hpp - special Placement yielding an absolute location (Time,Output) for a MObject
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 
39 #ifndef STEAM_MOBJECT_EXPLICITPLACEMENT_H
40 #define STEAM_MOBJECT_EXPLICITPLACEMENT_H
41 
43 
44 
45 
46 namespace steam {
47 namespace mobject {
48 
49 
50 
63  class ExplicitPlacement : public Placement<MObject>
64  {
65  public:
66  const Time time;
67  const Pipe pipe;
68 
69  typedef std::pair<Time,Pipe> SolutionData; //TODO (ichthyo considers better passing of solution by subclass)
70 
75  virtual
77  {
78  return *this;
79  }
80 
81 
82  protected:
83  /* @todo ichthyo considers a much more elegant implementation utilising a subclass
84  * of FixedLocation, which would serve as Placement::LocatingSolution, and
85  * would be used as LocatingPin::chain subobject as well, so that it could
86  * be initialised directly here in the ExplicitPlacement ctor.
87  * (ichthyo: see Trac #100)
88  */
89  ExplicitPlacement (const Placement<MObject>& base, const SolutionData found)
90  : Placement<MObject>(base),
91  time(found.first), pipe(found.second)
92  { };
93 
95 
96  private:
99  };
100 
101 
102 
103 }} // namespace steam::mobject
104 #endif /*STEAM_MOBJECT_EXPLICITPLACEMENT_H*/
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.
Special kind of Placement, where the location of the MObject has been nailed down to a fixed position...
Steam-Layer implementation namespace root.
virtual ExplicitPlacement resolve() const
no need to resolve any further, as this ExplicitPlacement already is the result of a resolve()-call...
ExplicitPlacement & operator=(const ExplicitPlacement &)
copying prohibited, ExplicitPlacement is effectively const!
string resolve(fsys::path iniSpec)
use the general mechanism for resolving a search path to get the absolute path of the setup...
Definition: basic-setup.cpp:65