- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/CommandLineWindow.cpp
r112b09 r77b2d7 6 6 */ 7 7 8 #include "Helpers/MemDebug.hpp"9 10 8 #include <boost/bind.hpp> 11 9 … … 14 12 15 13 #include "Actions/ActionRegistry.hpp" 14 #include "Actions/AnalysisAction/MolecularVolumeAction.hpp" 16 15 #include "Actions/AnalysisAction/PairCorrelationAction.hpp" 17 #include "Actions/AnalysisAction/PairCorrelationToPointAction.hpp" 18 #include "Actions/AnalysisAction/PairCorrelationToSurfaceAction.hpp" 16 #include "Actions/AnalysisAction/PrincipalAxisSystemAction.hpp" 19 17 #include "Actions/AtomAction/AddAction.hpp" 20 18 #include "Actions/AtomAction/ChangeElementAction.hpp" … … 28 26 #include "Actions/FragmentationAction/DepthFirstSearchAction.hpp" 29 27 #include "Actions/FragmentationAction/SubgraphDissectionAction.hpp" 28 #include "Actions/FragmentationAction/FragmentationAction.hpp" 30 29 #include "Actions/MoleculeAction/BondFileAction.hpp" 31 30 #include "Actions/MoleculeAction/ChangeNameAction.hpp" … … 35 34 #include "Actions/MoleculeAction/SaveBondsAction.hpp" 36 35 #include "Actions/MoleculeAction/SaveTemperatureAction.hpp" 36 #include "Actions/MoleculeAction/TranslateAction.hpp" 37 37 #include "Actions/MoleculeAction/VerletIntegrationAction.hpp" 38 38 #include "Actions/ParserAction/LoadXyzAction.hpp" … … 75 75 CommandLineWindow::~CommandLineWindow() 76 76 { 77 // // go through all possible actions78 // 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 83 77 delete statusIndicator; 84 78 } … … 86 80 void CommandLineWindow::display() { 87 81 // 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(); 93 86 } 94 87 } … … 96 89 void CommandLineWindow::populateAnalysisActions() 97 90 { 91 new AnalysisMolecularVolumeAction(); 98 92 new AnalysisPairCorrelationAction(); 99 new AnalysisPairCorrelationToPointAction(); 100 new AnalysisPairCorrelationToSurfaceAction(); 93 new AnalysisPrincipalAxisSystemAction(); 101 94 } 102 95 … … 121 114 { 122 115 new FragmentationDepthFirstSearchAction(); 116 new FragmentationFragmentationAction(); 117 new FragmentationSubgraphDissectionAction(); 123 118 } 124 119 … … 132 127 new MoleculeSaveBondsAction(); 133 128 new MoleculeSaveTemperatureAction(); 129 new MoleculeTranslateAction(); 134 130 new MoleculeVerletIntegrationAction(); 135 131 }
Note:
See TracChangeset
for help on using the changeset viewer.