Lumiera  0.pre.03
»edit your freedom«
sequence-cmd.cpp
Go to the documentation of this file.
1 /*
2  SequenceCmd - actual steam command scripts for actions operating within a sequence
3 
4  Copyright (C) Lumiera.org
5  2017, 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 
38 #include "steam/cmd.hpp"
40 //#include "steam/mobject/session.hpp"
41 //#include "lib/symbol.hpp"
42 #include "lib/idi/entry-id.hpp"
43 //#include "lib/format-string.hpp"
44 
45 //#include <string>
46 
47 using lib::hash::LuidH;
48 //using std::string;
49 //using util::cStr;
50 //using util::_Fmt;
51 
52 
53 namespace steam {
54 namespace cmd {
55  namespace error = lumiera::error;
56 
57  //using mobject::Session;
58 
59  namespace { // implementation helper...
60  }//(End) implementation helper
61 
62 
63 
64 
69  COMMAND_DEFINITION (sequence_newTrack)
70  {
71  def.operation ([](LuidH context, LuidH newID)
72  {
73  UNIMPLEMENTED ("add a new Track into the given context scope within the Session");
74  })
75  .captureUndo ([](LuidH, LuidH addedTrack) -> LuidH
76  {
77  return addedTrack;
78  })
79  .undoOperation ([](LuidH context, LuidH newID, LuidH addedTrack)
80  {
81  REQUIRE (addedTrack == newID);
82  UNIMPLEMENTED ("how to remove a sub-track from the given context");
83  });
84  };
85 
86 
87 
88 
93 }} // namespace steam::cmd
#define COMMAND_DEFINITION(_NAME_)
Macro to write command definitions in a compact form.
Common ID definitions for Steam-Layer commands.
Steam-Layer implementation namespace root.
Hash implementation based on a lumiera unique object id (LUID) When invoking the default ctor...
Bare symbolic and hash ID used for accounting of asset like entries.
Actually defining a command and binding it to execution parameters.