- Timestamp:
- Jul 28, 2015, 2:03:59 PM (10 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:
- 42b40a
- Parents:
- 143263
- git-author:
- Frederik Heber <heber@…> (07/19/15 12:39:16)
- git-committer:
- Frederik Heber <heber@…> (07/28/15 14:03:59)
- Location:
- src
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/Action.hpp
r143263 ra82f61 198 198 virtual void outputAsPython(std::ostream &ost, const std::string &prefix) const=0; 199 199 200 /** Sets the option defined by \a _token to \a _value for this action. 201 * 202 * This is needed when constructing MakroActions. 203 * 204 * \param _token token of the option 205 * \param _value new value 206 */ 207 virtual void setOptionValue(const std::string &_token, const std::string &_value)=0; 208 200 209 /** 201 210 * Traits resemble all necessary information that "surrounds" an action, such as -
src/Actions/ActionSequence.cpp
r143263 ra82f61 195 195 (*it)->outputAsPython(ost, prefix); 196 196 } 197 198 void ActionSequence::setOptionValue(const std::string &_token, const std::string &_value) 199 { 200 for(std::deque<Action*>::const_iterator it=actions.begin();it!=actions.end();++it) 201 (*it)->setOptionValue(_token, _value); 202 } -
src/Actions/ActionSequence.hpp
r143263 ra82f61 51 51 void outputAsCLI(std::ostream &ost) const; 52 52 void outputAsPython(std::ostream &ost, const std::string &prefix) const; 53 void setOptionValue(const std::string &_token, const std::string &_value); 53 54 54 55 protected: -
src/Actions/Action_impl_header.hpp
r143263 ra82f61 252 252 } params; 253 253 254 virtual void setOptionValue(const std::string &_token, const std::string &_value); 255 254 256 protected: 255 257 virtual Dialog * fillDialog(Dialog*); -
src/Actions/Action_impl_pre.hpp
r143263 ra82f61 222 222 stringtype 223 223 224 // prints if ( token == "select-molecule-by-id" ) { prefix.ids.setAsString(_value); } 225 #define setparameterifmatch_print(z,n,container, reference, token, value) \ 226 if ( token == BOOST_PP_SEQ_ELEM(n, container) ) { \ 227 params. \ 228 BOOST_PP_SEQ_ELEM(n, reference) \ 229 .setAsString( \ 230 value \ 231 ); \ 232 } 224 233 225 234 //#include "Actions/ActionTraits.hpp" … … 301 310 #endif 302 311 {} 312 313 void ACTION::setOptionValue(const std::string &_token, const std::string &_value) 314 { 315 // check whether it is a valid token and set 316 #if defined paramtokens && defined paramreferences 317 #define BOOST_PP_LOCAL_MACRO(n) setparameterifmatch_print(~, n, paramtokens, paramreferences, _token, _value) 318 #define BOOST_PP_LOCAL_LIMITS (0, MAXPARAMTYPES-1) 319 #include BOOST_PP_LOCAL_ITERATE() 320 #endif 321 } 303 322 304 323 // =========== clone Action =========== -
src/Actions/Calculation.hpp
r143263 ra82f61 47 47 virtual void outputAsPython(std::ostream &ost, const std::string &prefix) const; 48 48 49 virtual void setOptionValue(const std::string &_token, const std::string &_value); 50 49 51 /** 50 52 * Does the actual calculation and returns the result. -
src/Actions/Calculation_impl.hpp
r143263 ra82f61 78 78 {} 79 79 80 template<typename T> 81 void Calculation<T>::setOptionValue(const std::string &_token, const std::string &_value) 82 {} 83 80 84 // methods for calculation infrastructure 81 85 -
src/Actions/MakroAction.cpp
r143263 ra82f61 164 164 actions.outputAsPython(ost, prefix); 165 165 } 166 167 void MakroAction::setOptionValue(const std::string &_token, const std::string &_value) 168 { 169 actions.setOptionValue(_token, _value); 170 } -
src/Actions/MakroAction.hpp
r143263 ra82f61 48 48 virtual void outputAsPython(std::ostream &ost, const std::string &prefix) const; 49 49 50 virtual void setOptionValue(const std::string &_token, const std::string &_value); 51 50 52 // must be called after all primitive actions are present 51 53 virtual void prepare(ActionRegistry &AR); -
src/Actions/ManipulateAtomsProcess.cpp
r143263 ra82f61 90 90 {} 91 91 92 void ManipulateAtomsProcess::setOptionValue(const std::string &_token, const std::string &_value) 93 {} 94 92 95 void ManipulateAtomsProcess::doManipulate(World *world){ 93 96 setMaxSteps(world->numAtoms()); -
src/Actions/ManipulateAtomsProcess.hpp
r143263 ra82f61 43 43 void outputAsPython(std::ostream &ost, const std::string &prefix) const; 44 44 45 void setOptionValue(const std::string &_token, const std::string &_value); 46 45 47 virtual void doManipulate(World *); 46 48 -
src/Actions/MethodAction.cpp
r143263 ra82f61 96 96 void MethodAction::outputAsPython(std::ostream &ost, const std::string &prefix) const 97 97 {} 98 99 void MethodAction::setOptionValue(const std::string &_token, const std::string &_value) 100 {} -
src/Actions/MethodAction.hpp
r143263 ra82f61 38 38 void outputAsCLI(std::ostream &ost) const; 39 39 void outputAsPython(std::ostream &ost, const std::string &prefix) const; 40 void setOptionValue(const std::string &_token, const std::string &_value); 40 41 41 42 protected: -
src/Actions/unittests/ActionSequenceUnitTest.cpp
r143263 ra82f61 95 95 void outputAsPython(std::ostream &ost, const std::string &prefix) const 96 96 {} 97 void setOptionValue(const std::string &_token, const std::string &_value) 98 {} 97 99 }; 98 100 … … 134 136 void outputAsPython(std::ostream &ost, const std::string &prefix) const 135 137 {} 138 void setOptionValue(const std::string &_token, const std::string &_value) 139 {} 136 140 }; 137 141 … … 175 179 {} 176 180 void outputAsPython(std::ostream &ost, const std::string &prefix) const 181 {} 182 void setOptionValue(const std::string &_token, const std::string &_value) 177 183 {} 178 184 bool wasCalled(){ -
src/UIElements/Menu/TextMenu/TxMenuLeaveAction.cpp
r143263 ra82f61 85 85 {} 86 86 87 void TxMenu::LeaveAction::setOptionValue(const std::string &_token, const std::string &_value) 88 {} 89 87 90 /** Internal function to construct the dialog. 88 91 * We do not need this function as there is no dialog to construct. -
src/UIElements/Menu/TextMenu/TxMenuLeaveAction.hpp
r143263 ra82f61 37 37 void outputAsCLI(std::ostream &ost) const; 38 38 void outputAsPython(std::ostream &ost, const std::string &prefix) const; 39 void setOptionValue(const std::string &_token, const std::string &_value); 39 40 40 41 protected:
Note:
See TracChangeset
for help on using the changeset viewer.