Last change
on this file since 2e06c4 was 2e06c4, checked in by Frederik Heber <heber@…>, 15 years ago |
Added all commands defined in ParseCommandLineOptions() as Actions.
- Actions are not yet used, except verbose, version and help.
- Files are present and included in Makefile.am
- not unit tests written so far
- no action has been tested so far (except for MapOfActions)
- structure introduced to to transition from ParseCommandLineOptions to actions.
- program name and config file are fixed arguments.
Signed-off-by: Frederik Heber <heber@…>
|
-
Property mode
set to
100644
|
File size:
669 bytes
|
Rev | Line | |
---|
[2e06c4] | 1 | /*
|
---|
| 2 | * TranslateAction.hpp
|
---|
| 3 | *
|
---|
| 4 | * Created on: May 10, 2010
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #ifndef TRANSLATEACTION_HPP
|
---|
| 9 | #define TRANSLATEACTION_HPP
|
---|
| 10 |
|
---|
| 11 | #include "Actions/Action.hpp"
|
---|
| 12 | #include "Actions/Process.hpp"
|
---|
| 13 |
|
---|
| 14 | class MoleculeListClass;
|
---|
| 15 |
|
---|
| 16 | class MoleculeTranslateAction : public Action {
|
---|
| 17 | public:
|
---|
| 18 | MoleculeTranslateAction();
|
---|
| 19 | virtual ~MoleculeTranslateAction();
|
---|
| 20 |
|
---|
| 21 | bool canUndo();
|
---|
| 22 | bool shouldUndo();
|
---|
| 23 |
|
---|
| 24 | virtual const std::string getName();
|
---|
| 25 | private:
|
---|
| 26 | virtual Action::state_ptr performCall();
|
---|
| 27 | virtual Action::state_ptr performUndo(Action::state_ptr);
|
---|
| 28 | virtual Action::state_ptr performRedo(Action::state_ptr);
|
---|
| 29 |
|
---|
| 30 | static const char NAME[];
|
---|
| 31 | };
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 | #endif // TRANSLATEACTION_HPP
|
---|
Note:
See
TracBrowser
for help on using the repository browser.