Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/CommandLineUI/CommandLineWindow.cpp

    r77b2d7 r4f7f34e  
    55 *      Author: heber
    66 */
     7
     8#include "Helpers/MemDebug.hpp"
    79
    810#include <boost/bind.hpp>
     
    4547#include "Actions/WorldAction/CenterOnEdgeAction.hpp"
    4648#include "Actions/WorldAction/ChangeBoxAction.hpp"
     49#include "Actions/WorldAction/InputAction.hpp"
     50#include "Actions/WorldAction/OutputAction.hpp"
    4751#include "Actions/WorldAction/RemoveSphereOfAtomsAction.hpp"
    4852#include "Actions/WorldAction/RepeatBoxAction.hpp"
     
    7983
    8084void CommandLineWindow::display() {
     85  //cout << ActionRegistry::getInstance();
     86
    8187  // go through all possible actions
    8288  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;
    8592      ActionRegistry::getInstance().getActionByName(*CommandRunner)->call();
     93    } else {
     94      cout << "absent." << endl;
     95    }
    8696  }
    8797}
     
    150160  new WorldCenterOnEdgeAction();
    151161  new WorldChangeBoxAction();
     162  new WorldInputAction();
     163  new WorldOutputAction();
    152164  new WorldRemoveSphereOfAtomsAction();
    153165  new WorldRepeatBoxAction();
Note: See TracChangeset for help on using the changeset viewer.