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