Lumiera  0.pre.03
»edit your freedom«
test-dummy-commands.cpp
Go to the documentation of this file.
1 /*
2  test-dummy-commands - global checksum variables used to build test commands
3 
4  Copyright (C) Lumiera.org
5  2009, 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 
30 
31 
32 
33 namespace steam {
34 namespace control {
35 namespace test {
36 
37 
38 
39  namespace command1 {
40  int64_t check_ = 0;
41  }
42 
43 
44 
45  namespace command2 {
46  ostringstream check_;
47  }
48 
49 
50 
51  namespace command3 {
52  ulong check_;
53  }
54 
55 
56  /* ==== global static prototype definitions for these commands ==== */
57 
66  COMMAND_DEFINITION (test_Dummy_command1)
67  {
68  def.operation(command1::operate)
69  .captureUndo(command1::capture)
70  .undoOperation(command1::undoIt);
71  };
72 
74  {
75  def.operation(command2::operate)
76  .captureUndo(command2::capture)
77  .undoOperation(command2::undoIt);
78  };
79 
81  {
82  def.operation(command3::operate)
83  .captureUndo(command3::capture)
84  .undoOperation(command3::undoIt);
85  };
86 
87 
88 
89 }}} // namespace steam::control::test
CommandSetup test_Dummy_command3
test dummy command to increment a global variable; no arguments
Definition: run.hpp:49
#define COMMAND_DEFINITION(_NAME_)
Macro to write command definitions in a compact form.
Steam-Layer implementation namespace root.
CommandSetup test_Dummy_command2
test dummy command to invoke the given functor and append the result onto a global log string buffer ...
Some dummy command functions used for building unit test cases.
Actually defining a command and binding it to execution parameters.