Ignore:
File:
1 edited

Legend:

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

    r112b09 r77b2d7  
    66 */
    77
    8 #include "Helpers/MemDebug.hpp"
    9 
    108#include <boost/bind.hpp>
    119
     
    1412
    1513#include "Actions/ActionRegistry.hpp"
     14#include "Actions/AnalysisAction/MolecularVolumeAction.hpp"
    1615#include "Actions/AnalysisAction/PairCorrelationAction.hpp"
    17 #include "Actions/AnalysisAction/PairCorrelationToPointAction.hpp"
    18 #include "Actions/AnalysisAction/PairCorrelationToSurfaceAction.hpp"
     16#include "Actions/AnalysisAction/PrincipalAxisSystemAction.hpp"
    1917#include "Actions/AtomAction/AddAction.hpp"
    2018#include "Actions/AtomAction/ChangeElementAction.hpp"
     
    2826#include "Actions/FragmentationAction/DepthFirstSearchAction.hpp"
    2927#include "Actions/FragmentationAction/SubgraphDissectionAction.hpp"
     28#include "Actions/FragmentationAction/FragmentationAction.hpp"
    3029#include "Actions/MoleculeAction/BondFileAction.hpp"
    3130#include "Actions/MoleculeAction/ChangeNameAction.hpp"
     
    3534#include "Actions/MoleculeAction/SaveBondsAction.hpp"
    3635#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 
    8377  delete statusIndicator;
    8478}
     
    8680void CommandLineWindow::display() {
    8781  // go through all possible actions
    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     }
     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();
    9386  }
    9487}
     
    9689void CommandLineWindow::populateAnalysisActions()
    9790{
     91  new AnalysisMolecularVolumeAction();
    9892  new AnalysisPairCorrelationAction();
    99   new AnalysisPairCorrelationToPointAction();
    100   new AnalysisPairCorrelationToSurfaceAction();
     93  new AnalysisPrincipalAxisSystemAction();
    10194}
    10295
     
    121114{
    122115  new FragmentationDepthFirstSearchAction();
     116  new FragmentationFragmentationAction();
     117  new FragmentationSubgraphDissectionAction();
    123118}
    124119
     
    132127  new MoleculeSaveBondsAction();
    133128  new MoleculeSaveTemperatureAction();
     129  new MoleculeTranslateAction();
    134130  new MoleculeVerletIntegrationAction();
    135131}
Note: See TracChangeset for help on using the changeset viewer.