Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
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
24namespace steam {
25namespace control {
26namespace test {
27
28
29
30 namespace command1 {
32 }
33
34
35
36 namespace command2 {
37 ostringstream check_;
38 }
39
40
41
42 namespace command3 {
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
64 COMMAND_DEFINITION (test_Dummy_command2)
65 {
66 def.operation(command2::operate)
67 .captureUndo(command2::capture)
68 .undoOperation(command2::undoIt);
69 };
70
71 COMMAND_DEFINITION (test_Dummy_command3)
72 {
73 def.operation(command3::operate)
74 .captureUndo(command3::capture)
75 .undoOperation(command3::undoIt);
76 };
77
78
79
80}}} // namespace steam::control::test
Actually defining a command and binding it to execution parameters.
#define COMMAND_DEFINITION(_NAME_)
Macro to write command definitions in a compact form.
unsigned long int ulong
Definition integral.hpp:31
enable_if_c< Cond::value, T >::type enable_if
SFINAE helper to control the visibility of specialisations and overloads.
Definition meta/util.hpp:87
int64_t check_
< test command just adding a given value
ulong check_
< test command with zero arguments
Steam-Layer implementation namespace root.
Test runner and basic definitions for tests.
Some dummy command functions used for building unit test cases.