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)
5  2009, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 * *****************************************************************/
13 
21 
22 
23 
24 namespace steam {
25 namespace control {
26 namespace test {
27 
28 
29 
30  namespace command1 {
31  int64_t check_ = 0;
32  }
33 
34 
35 
36  namespace command2 {
37  ostringstream check_;
38  }
39 
40 
41 
42  namespace command3 {
43  ulong check_;
44  }
45 
46 
47  /* ==== global static prototype definitions for these commands ==== */
48 
57  COMMAND_DEFINITION (test_Dummy_command1)
58  {
59  def.operation(command1::operate)
60  .captureUndo(command1::capture)
61  .undoOperation(command1::undoIt);
62  };
63 
65  {
66  def.operation(command2::operate)
67  .captureUndo(command2::capture)
68  .undoOperation(command2::undoIt);
69  };
70 
72  {
73  def.operation(command3::operate)
74  .captureUndo(command3::capture)
75  .undoOperation(command3::undoIt);
76  };
77 
78 
79 
80 }}} // namespace steam::control::test
CommandSetup test_Dummy_command3
test dummy command to increment a global variable; no arguments
Definition: run.hpp:40
#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.