Ignore:
File:
1 edited

Legend:

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

    r77b2d7 r112b09  
    66 */
    77
     8#include "Helpers/MemDebug.hpp"
     9
    810#include <boost/bind.hpp>
    911
     
    1214
    1315#include "Actions/ActionRegistry.hpp"
    14 #include "Actions/AnalysisAction/MolecularVolumeAction.hpp"
    1516#include "Actions/AnalysisAction/PairCorrelationAction.hpp"
    16 #include "Actions/AnalysisAction/PrincipalAxisSystemAction.hpp"
     17#include "Actions/AnalysisAction/PairCorrelationToPointAction.hpp"
     18#include "Actions/AnalysisAction/PairCorrelationToSurfaceAction.hpp"
    1719#include "Actions/AtomAction/AddAction.hpp"
    1820#include "Actions/AtomAction/ChangeElementAction.hpp"
     
    2628#include "Actions/FragmentationAction/DepthFirstSearchAction.hpp"
    2729#include "Actions/FragmentationAction/SubgraphDissectionAction.hpp"
    28 #include "Actions/FragmentationAction/FragmentationAction.hpp"
    2930#include "Actions/MoleculeAction/BondFileAction.hpp"
    3031#include "Actions/MoleculeAction/ChangeNameAction.hpp"
     
    3435#include "Actions/MoleculeAction/SaveBondsAction.hpp"
    3536#include "Actions/MoleculeAction/SaveTemperatureAction.hpp"
    36 #include "Actions/MoleculeAction/TranslateAction.hpp"
    3737#include "Actions/MoleculeAction/VerletIntegrationAction.hpp"
    3838#include "Actions/ParserAction/LoadXyzAction.hpp"
     
    7575CommandLineWindow::~CommandLineWindow()
    7676{
     77//  // go through all possible actions
     78//  for(std::map<const std::string,Action*>::iterator ActionRunner = ActionRegistry::getInstance().getBeginIter(); ActionRegistry::getInstance().getBeginIter() != ActionRegistry::getInstance().getEndIter(); ActionRunner = ActionRegistry::getInstance().getBeginIter()) {
     79//    ActionRegistry::getInstance().unregisterAction(ActionRunner->second);
     80//    delete(ActionRunner->second);
     81//  }
     82
    7783  delete statusIndicator;
    7884}
     
    8086void CommandLineWindow::display() {
    8187  // go through all possible actions
    82   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))
    85       ActionRegistry::getInstance().getActionByName(*CommandRunner)->call();
     88  for(std::map<const std::string,Action*>::iterator ActionRunner = ActionRegistry::getInstance().getBeginIter(); ActionRunner != ActionRegistry::getInstance().getEndIter(); ActionRunner++) {
     89    // check whether action is present in command line
     90    if (CommandLineParser::getInstance().vm.count(ActionRunner->first)) {
     91      ActionRunner->second->call();
     92    }
    8693  }
    8794}
     
    8996void CommandLineWindow::populateAnalysisActions()
    9097{
    91   new AnalysisMolecularVolumeAction();
    9298  new AnalysisPairCorrelationAction();
    93   new AnalysisPrincipalAxisSystemAction();
     99  new AnalysisPairCorrelationToPointAction();
     100  new AnalysisPairCorrelationToSurfaceAction();
    94101}
    95102
     
    114121{
    115122  new FragmentationDepthFirstSearchAction();
    116   new FragmentationFragmentationAction();
    117   new FragmentationSubgraphDissectionAction();
    118123}
    119124
     
    127132  new MoleculeSaveBondsAction();
    128133  new MoleculeSaveTemperatureAction();
    129   new MoleculeTranslateAction();
    130134  new MoleculeVerletIntegrationAction();
    131135}
Note: See TracChangeset for help on using the changeset viewer.