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