Changeset b5b01e for src/Actions/CommandAction
- Timestamp:
- Sep 19, 2013, 8:23:52 PM (12 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 6367dd
- Parents:
- f92ef3
- git-author:
- Frederik Heber <heber@…> (08/19/13 19:04:10)
- git-committer:
- Frederik Heber <heber@…> (09/19/13 20:23:52)
- Location:
- src/Actions/CommandAction
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/CommandAction/BondLengthTableAction.cpp
rf92ef3 rb5b01e 55 55 #include "Action_impl_pre.hpp" 56 56 /** =========== define the function ====================== */ 57 Action ::state_ptr CommandBondLengthTableAction::performCall() {57 ActionState::ptr CommandBondLengthTableAction::performCall() { 58 58 ostringstream usage; 59 59 … … 78 78 LOG(0, "Bond length table parsed successfully."); 79 79 input.close(); 80 return Action ::state_ptr(UndoState);80 return ActionState::ptr(UndoState); 81 81 } else { 82 82 ELOG(1, "Bond length table parsing failed."); … … 94 94 } 95 95 96 Action ::state_ptr CommandBondLengthTableAction::performUndo(Action::state_ptr _state) {96 ActionState::ptr CommandBondLengthTableAction::performUndo(ActionState::ptr _state) { 97 97 CommandBondLengthTableState *state = assert_cast<CommandBondLengthTableState*>(_state.get()); 98 98 … … 103 103 World::getInstance().setBondGraph(BG); 104 104 105 return Action ::state_ptr(_state);105 return ActionState::ptr(_state); 106 106 } 107 107 108 Action ::state_ptr CommandBondLengthTableAction::performRedo(Action::state_ptr _state){108 ActionState::ptr CommandBondLengthTableAction::performRedo(ActionState::ptr _state){ 109 109 CommandBondLengthTableState *state = assert_cast<CommandBondLengthTableState*>(_state.get()); 110 110 … … 117 117 } 118 118 119 return Action ::state_ptr(_state);119 return ActionState::ptr(_state); 120 120 } 121 121 -
src/Actions/CommandAction/ElementDbAction.cpp
rf92ef3 rb5b01e 57 57 58 58 /** =========== define the function ====================== */ 59 Action ::state_ptr CommandElementDbAction::performCall() {59 ActionState::ptr CommandElementDbAction::performCall() { 60 60 std::ostringstream usage; 61 61 … … 82 82 LOG(0, "Element list loaded successfully."); 83 83 //periode->Output(); 84 return Action ::state_ptr(UndoState);84 return ActionState::ptr(UndoState); 85 85 } else { 86 86 LOG(0, "Element list loading failed."); … … 90 90 } 91 91 92 Action ::state_ptr CommandElementDbAction::performUndo(Action::state_ptr _state) {92 ActionState::ptr CommandElementDbAction::performUndo(ActionState::ptr _state) { 93 93 CommandElementDbState *state = assert_cast<CommandElementDbState*>(_state.get()); 94 94 … … 102 102 World::getInstance().getPeriode() = periode; 103 103 104 return Action ::state_ptr(_state);104 return ActionState::ptr(_state); 105 105 } 106 106 107 Action ::state_ptr CommandElementDbAction::performRedo(Action::state_ptr _state){107 ActionState::ptr CommandElementDbAction::performRedo(ActionState::ptr _state){ 108 108 CommandElementDbState *state = assert_cast<CommandElementDbState*>(_state.get()); 109 109 … … 119 119 LOG(0, "Element list loaded successfully."); 120 120 //periode->Output(); 121 return Action ::state_ptr(_state);121 return ActionState::ptr(_state); 122 122 } else { 123 123 LOG(0, "Element list loading failed."); -
src/Actions/CommandAction/FastParsingAction.cpp
rf92ef3 rb5b01e 51 51 #include "Action_impl_pre.hpp" 52 52 /** =========== define the function ====================== */ 53 Action ::state_ptr CommandFastParsingAction::performCall() {53 ActionState::ptr CommandFastParsingAction::performCall() { 54 54 config *configuration = World::getInstance().getConfig(); 55 55 bool oldvalue = configuration->FastParsing; … … 60 60 else 61 61 LOG(0, "I will parse trajectories."); 62 return Action ::state_ptr(new CommandFastParsingState(oldvalue, params));62 return ActionState::ptr(new CommandFastParsingState(oldvalue, params)); 63 63 } 64 64 65 Action ::state_ptr CommandFastParsingAction::performUndo(Action::state_ptr _state) {65 ActionState::ptr CommandFastParsingAction::performUndo(ActionState::ptr _state) { 66 66 CommandFastParsingState *state = assert_cast<CommandFastParsingState*>(_state.get()); 67 67 … … 73 73 LOG(0, "I will parse trajectories."); 74 74 75 return Action ::state_ptr(_state);75 return ActionState::ptr(_state); 76 76 } 77 77 78 Action ::state_ptr CommandFastParsingAction::performRedo(Action::state_ptr _state){78 ActionState::ptr CommandFastParsingAction::performRedo(ActionState::ptr _state){ 79 79 CommandFastParsingState *state = assert_cast<CommandFastParsingState*>(_state.get()); 80 80 … … 86 86 LOG(0, "I will parse trajectories."); 87 87 88 return Action ::state_ptr(_state);88 return ActionState::ptr(_state); 89 89 } 90 90 -
src/Actions/CommandAction/HelpAction.cpp
rf92ef3 rb5b01e 52 52 #include "Action_impl_pre.hpp" 53 53 /** =========== define the function ====================== */ 54 Action ::state_ptr CommandHelpAction::performCall() {54 ActionState::ptr CommandHelpAction::performCall() { 55 55 // print some general advice 56 56 std::cout << std::endl << std::endl << "Usage help:" << std::endl; … … 107 107 } 108 108 109 Action ::state_ptr CommandHelpAction::performUndo(Action::state_ptr _state) {109 ActionState::ptr CommandHelpAction::performUndo(ActionState::ptr _state) { 110 110 return Action::success; 111 111 } 112 112 113 Action ::state_ptr CommandHelpAction::performRedo(Action::state_ptr _state){113 ActionState::ptr CommandHelpAction::performRedo(ActionState::ptr _state){ 114 114 return Action::success; 115 115 } -
src/Actions/CommandAction/HelpRedistributeAction.cpp
rf92ef3 rb5b01e 50 50 #include "Action_impl_pre.hpp" 51 51 /** =========== define the function ====================== */ 52 Action ::state_ptr CommandHelpRedistributeAction::performCall() {52 ActionState::ptr CommandHelpRedistributeAction::performCall() { 53 53 // print some general advice 54 54 … … 73 73 } 74 74 75 Action ::state_ptr CommandHelpRedistributeAction::performUndo(Action::state_ptr _state) {75 ActionState::ptr CommandHelpRedistributeAction::performUndo(ActionState::ptr _state) { 76 76 return Action::success; 77 77 } 78 78 79 Action ::state_ptr CommandHelpRedistributeAction::performRedo(Action::state_ptr _state){79 ActionState::ptr CommandHelpRedistributeAction::performRedo(ActionState::ptr _state){ 80 80 return Action::success; 81 81 } -
src/Actions/CommandAction/VerboseAction.cpp
rf92ef3 rb5b01e 49 49 #include "Action_impl_pre.hpp" 50 50 /** =========== define the function ====================== */ 51 Action ::state_ptr CommandVerboseAction::performCall() {51 ActionState::ptr CommandVerboseAction::performCall() { 52 52 unsigned int oldverbosity = getVerbosity(); 53 53 … … 58 58 setVerbosity(params.verbosity.get()); 59 59 LOG(0, "Setting verbosity from " << oldverbosity << " to " << params.verbosity.get() << "."); 60 return Action ::state_ptr(UndoState);60 return ActionState::ptr(UndoState); 61 61 } else { 62 62 LOG(0, "Verbosity remains unchanged at " << oldverbosity << "."); … … 65 65 } 66 66 67 Action ::state_ptr CommandVerboseAction::performUndo(Action::state_ptr _state) {67 ActionState::ptr CommandVerboseAction::performUndo(ActionState::ptr _state) { 68 68 CommandVerboseState *state = assert_cast<CommandVerboseState*>(_state.get()); 69 69 … … 71 71 setVerbosity(state->oldverbosity); 72 72 73 return Action ::state_ptr(_state);73 return ActionState::ptr(_state); 74 74 } 75 75 76 Action ::state_ptr CommandVerboseAction::performRedo(Action::state_ptr _state){76 ActionState::ptr CommandVerboseAction::performRedo(ActionState::ptr _state){ 77 77 CommandVerboseState *state = assert_cast<CommandVerboseState*>(_state.get()); 78 78 … … 80 80 setVerbosity(state->params.verbosity.get()); 81 81 82 return Action ::state_ptr(_state);82 return ActionState::ptr(_state); 83 83 } 84 84 -
src/Actions/CommandAction/VersionAction.cpp
rf92ef3 rb5b01e 48 48 #include "Action_impl_pre.hpp" 49 49 /** =========== define the function ====================== */ 50 Action ::state_ptr CommandVersionAction::performCall() {50 ActionState::ptr CommandVersionAction::performCall() { 51 51 return Action::success; 52 52 } 53 53 54 Action ::state_ptr CommandVersionAction::performUndo(Action::state_ptr _state) {54 ActionState::ptr CommandVersionAction::performUndo(ActionState::ptr _state) { 55 55 return Action::success; 56 56 } 57 57 58 Action ::state_ptr CommandVersionAction::performRedo(Action::state_ptr _state){58 ActionState::ptr CommandVersionAction::performRedo(ActionState::ptr _state){ 59 59 return Action::success; 60 60 } -
src/Actions/CommandAction/WarrantyAction.cpp
rf92ef3 rb5b01e 46 46 #include "Action_impl_pre.hpp" 47 47 /** =========== define the function ====================== */ 48 Action ::state_ptr CommandWarrantyAction::performCall() {48 ActionState::ptr CommandWarrantyAction::performCall() { 49 49 std::cout << std::endl; 50 50 std::cout << "This program is distributed in the hope that it will be useful," << std::endl; … … 56 56 } 57 57 58 Action ::state_ptr CommandWarrantyAction::performUndo(Action::state_ptr _state) {58 ActionState::ptr CommandWarrantyAction::performUndo(ActionState::ptr _state) { 59 59 return Action::success; 60 60 } 61 61 62 Action ::state_ptr CommandWarrantyAction::performRedo(Action::state_ptr _state){62 ActionState::ptr CommandWarrantyAction::performRedo(ActionState::ptr _state){ 63 63 return Action::success; 64 64 }
Note:
See TracChangeset
for help on using the changeset viewer.