Changeset 533838 for src/Actions/MapOfActions.cpp
- Timestamp:
- Jul 25, 2010, 7:07:06 PM (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:
- 023971
- Parents:
- e971c4 (diff), e2009b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MapOfActions.cpp
re971c4 r533838 64 64 #include "Actions/ParserAction/LoadXyzAction.hpp" 65 65 #include "Actions/ParserAction/SaveXyzAction.hpp" 66 #include "Actions/SelectionAction/AtomByIdAction.hpp" 67 #include "Actions/SelectionAction/MoleculeByIdAction.hpp" 68 #include "Actions/SelectionAction/NotAtomByIdAction.hpp" 69 #include "Actions/SelectionAction/NotMoleculeByIdAction.hpp" 66 70 #include "Actions/TesselationAction/ConvexEnvelopeAction.hpp" 67 71 #include "Actions/TesselationAction/NonConvexEnvelopeAction.hpp" … … 209 213 DescriptionMap["version"] = "show version"; 210 214 // keys for values 211 DescriptionMap["atom-by-id"] = "index of an atom";212 215 DescriptionMap["bin-output-file"] = "name of the bin output file"; 213 216 DescriptionMap["bin-end"] = "start of the last bin"; … … 233 236 DescriptionMap["periodic"] = "system is constraint to periodic boundary conditions (y/n)"; 234 237 DescriptionMap["position"] = "position in R^3 space"; 238 DescriptionMap["select-atom-by-id"] = "select an atom by index"; 239 DescriptionMap["select-molecule-by-id"] = "select a molecule by index"; 235 240 DescriptionMap["sphere-radius"] = "radius of tesselation sphere"; 236 241 DescriptionMap["start-step"] = "first or start step"; 242 DescriptionMap["unselect-atom-by-id"] = "unselect an atom by index"; 243 DescriptionMap["unselect-molecule-by-id"] = "unselect a molecule by index"; 237 244 238 245 // short forms for the actions … … 317 324 318 325 // value types for the values 319 TypeMap["atom-by-id"] = &typeid(atom);320 326 TypeMap["bin-output-file"] = &typeid(std::string); 321 327 TypeMap["bin-end"] = &typeid(double); … … 340 346 TypeMap["periodic"] = &typeid(bool); 341 347 TypeMap["position"] = &typeid(VectorValue); 348 TypeMap["select-atom-by-id"] = &typeid(atom); 349 TypeMap["select-molecule-by-id"] = &typeid(molecule); 342 350 TypeMap["sphere-radius"] = &typeid(double); 343 351 TypeMap["start-step"] = &typeid(int); 352 TypeMap["unselect-atom-by-id"] = &typeid(atom); 353 TypeMap["unselect-molecule-by-id"] = &typeid(molecule); 344 354 345 355 TypeEnumMap[&typeid(void)] = None; … … 474 484 // positional arguments 475 485 generic.insert("input"); 476 inputfile.insert("input");477 486 478 487 // hidden arguments 479 generic.insert("atom-by-id"); 480 generic.insert("bin-end"); 481 generic.insert("bin-output-file"); 482 generic.insert("bin-start"); 483 generic.insert("bin-width"); 484 generic.insert("convex-file"); 485 generic.insert("distance"); 486 generic.insert("DoRotate"); 487 generic.insert("distances"); 488 generic.insert("element"); 489 generic.insert("elements"); 490 generic.insert("end-step"); 491 generic.insert("id-mapping"); 492 generic.insert("lengths"); 493 generic.insert("MaxDistance"); 494 generic.insert("molecule-by-id"); 495 generic.insert("molecule-by-name"); 496 generic.insert("nonconvex-file"); 497 generic.insert("order"); 498 generic.insert("output-file"); 499 generic.insert("periodic"); 500 generic.insert("position"); 501 generic.insert("sphere-radius"); 502 generic.insert("start-step"); 488 hidden.insert("bin-end"); 489 hidden.insert("bin-output-file"); 490 hidden.insert("bin-start"); 491 hidden.insert("bin-width"); 492 hidden.insert("convex-file"); 493 hidden.insert("distance"); 494 hidden.insert("DoRotate"); 495 hidden.insert("distances"); 496 hidden.insert("element"); 497 hidden.insert("elements"); 498 hidden.insert("end-step"); 499 hidden.insert("id-mapping"); 500 hidden.insert("lengths"); 501 hidden.insert("MaxDistance"); 502 hidden.insert("molecule-by-id"); 503 hidden.insert("molecule-by-name"); 504 hidden.insert("nonconvex-file"); 505 hidden.insert("order"); 506 hidden.insert("output-file"); 507 hidden.insert("periodic"); 508 hidden.insert("position"); 509 hidden.insert("select-atom-by-id"); 510 hidden.insert("select-molecule-by-id"); 511 hidden.insert("sphere-radius"); 512 hidden.insert("start-step"); 513 hidden.insert("unselect-atom-by-id"); 514 hidden.insert("unselect-molecule-by-id"); 503 515 } 504 516 … … 779 791 new ParserSaveXyzAction(); 780 792 793 new SelectionAtomByIdAction(); 794 new SelectionMoleculeByIdAction(); 795 new SelectionNotAtomByIdAction(); 796 new SelectionNotMoleculeByIdAction(); 797 781 798 new TesselationConvexEnvelopeAction(); 782 799 new TesselationNonConvexEnvelopeAction(); … … 806 823 for (set<string>::iterator OptionRunner = ListRunner->first->begin(); OptionRunner != ListRunner->first->end(); ++OptionRunner) { 807 824 if (hasValue(*OptionRunner)) { 808 DoLog( 3) && (Log() << Verbose(3) << "Adding option " << *OptionRunner << " with type " << TypeMap[*OptionRunner]->name() << " to CommandLineParser." << endl);825 DoLog(0) && (Log() << Verbose(0) << "Adding option " << *OptionRunner << " with type " << TypeMap[*OptionRunner]->name() << " to CommandLineParser." << endl); 809 826 switch(TypeEnumMap[TypeMap[*OptionRunner]]) { 810 827 default: … … 947 964 } 948 965 } 949 // add positional arguments950 for (set<string>::iterator OptionRunner = inputfile.begin(); OptionRunner != inputfile.end(); ++OptionRunner) {951 DoLog(3) && (Log() << Verbose(3) << "Adding option " << *OptionRunner << " to positional CommandLineParser." << endl);952 CommandLineParser::getInstance().inputfile.add((*OptionRunner).c_str(), -1);953 }954 cout << "Name for position 1: " << CommandLineParser::getInstance().inputfile.name_for_position(1) << endl;955 966 } 956 967
Note:
See TracChangeset
for help on using the changeset viewer.