Changeset 9cff8b for src/Actions/ParserAction
- Timestamp:
- Feb 7, 2011, 10:43:27 AM (14 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:
- 61d69a4
- Parents:
- aa8ef2
- git-author:
- Frederik Heber <heber@…> (02/03/11 09:39:54)
- git-committer:
- Frederik Heber <heber@…> (02/07/11 10:43:27)
- Location:
- src/Actions/ParserAction
- Files:
-
- 6 moved
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ParserAction/SetGaussianBasisAction.cpp
raa8ef2 r9cff8b 30 30 using namespace std; 31 31 32 #include " Actions/WorldAction/SetGaussianBasisAction.hpp"32 #include "SetGaussianBasisAction.hpp" 33 33 34 34 // and construct the stuff … … 36 36 #include "Action_impl_pre.hpp" 37 37 /** =========== define the function ====================== */ 38 Action::state_ptr WorldSetGaussianBasisAction::performCall() {38 Action::state_ptr ParserSetGaussianBasisAction::performCall() { 39 39 config *configuration = World::getInstance().getConfig(); 40 40 … … 45 45 46 46 DoLog(1) && (Log() << Verbose(1) << "Setting MPQC basis to " << configuration->basis << "." << endl); 47 return Action::state_ptr(new WorldSetGaussianBasisState(lastname, params));47 return Action::state_ptr(new ParserSetGaussianBasisState(lastname, params)); 48 48 } 49 49 50 Action::state_ptr WorldSetGaussianBasisAction::performUndo(Action::state_ptr _state) {51 WorldSetGaussianBasisState *state = assert_cast<WorldSetGaussianBasisState*>(_state.get());50 Action::state_ptr ParserSetGaussianBasisAction::performUndo(Action::state_ptr _state) { 51 ParserSetGaussianBasisState *state = assert_cast<ParserSetGaussianBasisState*>(_state.get()); 52 52 53 53 config *configuration = World::getInstance().getConfig(); … … 57 57 } 58 58 59 Action::state_ptr WorldSetGaussianBasisAction::performRedo(Action::state_ptr _state){60 WorldSetGaussianBasisState *state = assert_cast<WorldSetGaussianBasisState*>(_state.get());59 Action::state_ptr ParserSetGaussianBasisAction::performRedo(Action::state_ptr _state){ 60 ParserSetGaussianBasisState *state = assert_cast<ParserSetGaussianBasisState*>(_state.get()); 61 61 62 62 config *configuration = World::getInstance().getConfig(); … … 66 66 } 67 67 68 bool WorldSetGaussianBasisAction::canUndo() {68 bool ParserSetGaussianBasisAction::canUndo() { 69 69 return true; 70 70 } 71 71 72 bool WorldSetGaussianBasisAction::shouldUndo() {72 bool ParserSetGaussianBasisAction::shouldUndo() { 73 73 return true; 74 74 } -
src/Actions/ParserAction/SetGaussianBasisAction.def
raa8ef2 r9cff8b 22 22 23 23 // some defines for all the names, you may use ACTION, STATE and PARAMS 24 #define CATEGORY World25 #define MENUNAME " world"24 #define CATEGORY Parser 25 #define MENUNAME "parser" 26 26 #define MENUPOSITION 11 27 27 #define ACTIONNAME SetGaussianBasis -
src/Actions/ParserAction/SetOutputFormatsAction.cpp
raa8ef2 r9cff8b 31 31 using namespace std; 32 32 33 #include " Actions/WorldAction/SetOutputFormatsAction.hpp"33 #include "SetOutputFormatsAction.hpp" 34 34 35 35 // and construct the stuff … … 37 37 #include "Action_impl_pre.hpp" 38 38 /** =========== define the function ====================== */ 39 Action::state_ptr WorldSetOutputFormatsAction::performCall() {39 Action::state_ptr ParserSetOutputFormatsAction::performCall() { 40 40 // obtain information 41 41 getParametersfromValueStorage(); … … 44 44 for (vector<std::string>::iterator iter = params.FormatList.begin(); iter != params.FormatList.end(); ++iter) { 45 45 if (!FormatParserStorage::getInstance().add(*iter)) { 46 DoeLog(1) && (eLog() << Verbose(1) << "Unknown parser format in WorldSetOutputFormatsAction: '" << *iter << "'" << endl);46 DoeLog(1) && (eLog() << Verbose(1) << "Unknown parser format in ParserSetOutputFormatsAction: '" << *iter << "'" << endl); 47 47 } 48 48 } … … 50 50 } 51 51 52 Action::state_ptr WorldSetOutputFormatsAction::performUndo(Action::state_ptr _state) {52 Action::state_ptr ParserSetOutputFormatsAction::performUndo(Action::state_ptr _state) { 53 53 // ParserLoadXyzState *state = assert_cast<ParserLoadXyzState*>(_state.get()); 54 54 … … 60 60 } 61 61 62 Action::state_ptr WorldSetOutputFormatsAction::performRedo(Action::state_ptr _state){62 Action::state_ptr ParserSetOutputFormatsAction::performRedo(Action::state_ptr _state){ 63 63 return Action::failure; 64 64 } 65 65 66 bool WorldSetOutputFormatsAction::canUndo() {66 bool ParserSetOutputFormatsAction::canUndo() { 67 67 return false; 68 68 } 69 69 70 bool WorldSetOutputFormatsAction::shouldUndo() {70 bool ParserSetOutputFormatsAction::shouldUndo() { 71 71 return false; 72 72 } -
src/Actions/ParserAction/SetOutputFormatsAction.def
raa8ef2 r9cff8b 22 22 23 23 // some defines for all the names, you may use ACTION, STATE and PARAMS 24 #define CATEGORY World25 #define MENUNAME " world"24 #define CATEGORY Parser 25 #define MENUNAME "parser" 26 26 #define MENUPOSITION 12 27 27 #define ACTIONNAME SetOutputFormats
Note:
See TracChangeset
for help on using the changeset viewer.