- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/CommandLineWindow.cpp
r4f7f34e r77b2d7 5 5 * Author: heber 6 6 */ 7 8 #include "Helpers/MemDebug.hpp"9 7 10 8 #include <boost/bind.hpp> … … 47 45 #include "Actions/WorldAction/CenterOnEdgeAction.hpp" 48 46 #include "Actions/WorldAction/ChangeBoxAction.hpp" 49 #include "Actions/WorldAction/InputAction.hpp"50 #include "Actions/WorldAction/OutputAction.hpp"51 47 #include "Actions/WorldAction/RemoveSphereOfAtomsAction.hpp" 52 48 #include "Actions/WorldAction/RepeatBoxAction.hpp" … … 83 79 84 80 void CommandLineWindow::display() { 85 //cout << ActionRegistry::getInstance();86 87 81 // go through all possible actions 88 82 for (std::list<std::string>::iterator CommandRunner = CommandLineParser::getInstance().SequenceOfActions.begin(); CommandRunner != CommandLineParser::getInstance().SequenceOfActions.end(); ++CommandRunner) { 89 cout << "Checking presence of " << *CommandRunner << ": "; 90 if (ActionRegistry::getInstance().isActionByNamePresent(*CommandRunner)) { 91 cout << "calling " << *CommandRunner << endl; 83 cout << "Checking presence of " << *CommandRunner << endl; 84 if (ActionRegistry::getInstance().isActionByNamePresent(*CommandRunner)) 92 85 ActionRegistry::getInstance().getActionByName(*CommandRunner)->call(); 93 } else {94 cout << "absent." << endl;95 }96 86 } 97 87 } … … 160 150 new WorldCenterOnEdgeAction(); 161 151 new WorldChangeBoxAction(); 162 new WorldInputAction();163 new WorldOutputAction();164 152 new WorldRemoveSphereOfAtomsAction(); 165 153 new WorldRepeatBoxAction();
Note:
See TracChangeset
for help on using the changeset viewer.
