1 | /*
|
---|
2 | * Project: MoleCuilder
|
---|
3 | * Description: creates and alters molecular systems
|
---|
4 | * Copyright (C) 2012 University of Bonn. All rights reserved.
|
---|
5 | *
|
---|
6 | *
|
---|
7 | * This file is part of MoleCuilder.
|
---|
8 | *
|
---|
9 | * MoleCuilder is free software: you can redistribute it and/or modify
|
---|
10 | * it under the terms of the GNU General Public License as published by
|
---|
11 | * the Free Software Foundation, either version 2 of the License, or
|
---|
12 | * (at your option) any later version.
|
---|
13 | *
|
---|
14 | * MoleCuilder is distributed in the hope that it will be useful,
|
---|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
17 | * GNU General Public License for more details.
|
---|
18 | *
|
---|
19 | * You should have received a copy of the GNU General Public License
|
---|
20 | * along with MoleCuilder. If not, see <http://www.gnu.org/licenses/>.
|
---|
21 | */
|
---|
22 |
|
---|
23 | /*
|
---|
24 | * HelpRedistributeAction.cpp
|
---|
25 | *
|
---|
26 | * Created on: Sep 11, 2012
|
---|
27 | * Author: heber
|
---|
28 | */
|
---|
29 |
|
---|
30 | // include config.h
|
---|
31 | #ifdef HAVE_CONFIG_H
|
---|
32 | #include <config.h>
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | #include "CodePatterns/MemDebug.hpp"
|
---|
36 |
|
---|
37 | #include <iostream>
|
---|
38 | #include <string>
|
---|
39 |
|
---|
40 | #include "Actions/ActionRegistry.hpp"
|
---|
41 | #include "Actions/ActionTrait.hpp"
|
---|
42 | #include "Actions/OptionRegistry.hpp"
|
---|
43 | #include "Actions/OptionTrait.hpp"
|
---|
44 | #include "CodePatterns/Log.hpp"
|
---|
45 |
|
---|
46 | #include "Actions/CommandAction/HelpRedistributeAction.hpp"
|
---|
47 |
|
---|
48 | using namespace MoleCuilder;
|
---|
49 |
|
---|
50 | // and construct the stuff
|
---|
51 | #include "HelpRedistributeAction.def"
|
---|
52 | #include "Action_impl_pre.hpp"
|
---|
53 | /** =========== define the function ====================== */
|
---|
54 | Action::state_ptr CommandHelpRedistributeAction::performCall() {
|
---|
55 | // print some general advice
|
---|
56 |
|
---|
57 | std::cout << "MoleCuilder - creates and alters molecular systems" << std::endl;
|
---|
58 | std::cout << "Copyright (C) 2008-2012 University of Bonn" << std::endl;
|
---|
59 | std::cout << std::endl;
|
---|
60 | std::cout << "This program is free software: you can redistribute it and/or modify" << std::endl;
|
---|
61 | std::cout << "it under the terms of the GNU General Public License as published by" << std::endl;
|
---|
62 | std::cout << "the Free Software Foundation, either version 2 of the License, or" << std::endl;
|
---|
63 | std::cout << "(at your option) any later version." << std::endl;
|
---|
64 | std::cout << std::endl;
|
---|
65 | std::cout << "This program is distributed in the hope that it will be useful," << std::endl;
|
---|
66 | std::cout << "but WITHOUT ANY WARRANTY; without even the implied warranty of" << std::endl;
|
---|
67 | std::cout << "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the" << std::endl;
|
---|
68 | std::cout << "GNU General Public License for more details." << std::endl;
|
---|
69 | std::cout << std::endl;
|
---|
70 | std::cout << "You should have received a copy of the GNU General Public License" << std::endl;
|
---|
71 | std::cout << "along with this program. If not, see <http://www.gnu.org/licenses/>." << std::endl;
|
---|
72 | std::cout << std::endl;
|
---|
73 |
|
---|
74 | return Action::success;
|
---|
75 | }
|
---|
76 |
|
---|
77 | Action::state_ptr CommandHelpRedistributeAction::performUndo(Action::state_ptr _state) {
|
---|
78 | return Action::success;
|
---|
79 | }
|
---|
80 |
|
---|
81 | Action::state_ptr CommandHelpRedistributeAction::performRedo(Action::state_ptr _state){
|
---|
82 | return Action::success;
|
---|
83 | }
|
---|
84 |
|
---|
85 | bool CommandHelpRedistributeAction::canUndo() {
|
---|
86 | return true;
|
---|
87 | }
|
---|
88 |
|
---|
89 | bool CommandHelpRedistributeAction::shouldUndo() {
|
---|
90 | return false;
|
---|
91 | }
|
---|
92 | /** =========== end of function ====================== */
|
---|