All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
command.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2015 Samsung Electronics Co., Ltd All Rights Reserved
3
*
4
* This library is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License version 2.1 as published by the Free Software Foundation.
7
*
8
* This library is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
* Lesser General Public License for more details.
12
*
13
* You should have received a copy of the GNU Lesser General Public
14
* License along with this library; if not, write to the Free Software
15
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
*/
17
24
#ifndef LXCPP_COMMANDS_COMMAND_HPP
25
#define LXCPP_COMMANDS_COMMAND_HPP
26
27
namespace
lxcpp {
28
29
class
Command
{
30
public
:
31
// do sth [mandatory]
32
virtual
void
execute
() = 0;
33
34
// roll-back execute() action [optional]
35
virtual
void
revert
() {}
36
};
37
38
}
// namespace lxcpp
39
40
#endif // LXCPP_COMMANDS_COMMAND_HPP
lxcpp::Command::revert
virtual void revert()
Definition:
command.hpp:35
lxcpp::Command
Definition:
command.hpp:29
lxcpp::Command::execute
virtual void execute()=0
libs
lxcpp
commands
command.hpp
Generated on Fri Dec 4 2015 11:36:48 for Vasum by
1.8.6