Changeset ce7fdc for src/UIElements/CommandLineUI
- Timestamp:
- Oct 13, 2011, 1:03:40 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:
- 61ff05, db67ea
- Parents:
- e0f8c8
- git-author:
- Frederik Heber <heber@…> (09/09/11 18:42:38)
- git-committer:
- Frederik Heber <heber@…> (10/13/11 13:03:40)
- Location:
- src/UIElements/CommandLineUI
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/CommandLineParser.cpp
re0f8c8 rce7fdc 39 39 40 40 #include "CodePatterns/Singleton_impl.hpp" 41 42 using namespace MoleCuilder; 41 43 42 44 class element; -
src/UIElements/CommandLineUI/CommandLineParser.hpp
re0f8c8 rce7fdc 24 24 #include <map> 25 25 26 class Action; 27 class CommandLineParser_ActionRegistry_ConsistencyTest; 28 class OptionTrait; 26 namespace MoleCuilder { 27 class Action; 28 class OptionTrait; 29 } 30 class CommandLineParser_ActionRegistry_ConsistenyTest; 29 31 30 32 /** This class is a wrapper for boost::program_options. … … 151 153 152 154 // adds options to the parser 153 void AddOptionToParser(const OptionTrait * const currentOption, po::options_description* OptionList);155 void AddOptionToParser(const MoleCuilder::OptionTrait * const currentOption, po::options_description* OptionList); 154 156 155 157 // creates a map from short forms to action tokens needed to parse command line -
src/UIElements/CommandLineUI/CommandLineStatusIndicator.cpp
re0f8c8 rce7fdc 26 26 #include "Actions/Process.hpp" 27 27 28 using namespace std;28 using namespace MoleCuilder; 29 29 30 30 CommandLineStatusIndicator::CommandLineStatusIndicator() : … … 46 46 if(proc->getMaxSteps()>0){ 47 47 if(!proc->doesStop()){ 48 cout << "Busy (" << proc->getName() << ") ";48 std::cout << "Busy (" << proc->getName() << ") "; 49 49 // we can show a percentage done 50 cout << (int)proc->getDoneRatio() << "% done" <<endl;50 std::cout << (int)proc->getDoneRatio() << "% done" << std::endl; 51 51 } 52 52 } … … 54 54 // we only show some kind of busy animation 55 55 if(proc->doesStart()){ 56 cout << "Busy (" << proc->getName() << ")";56 std::cout << "Busy (" << proc->getName() << ")"; 57 57 } 58 58 if(!proc->doesStop()){ 59 cout << ".";59 std::cout << "."; 60 60 } 61 61 else { 62 cout <<endl;62 std::cout << std::endl; 63 63 } 64 64 } -
src/UIElements/CommandLineUI/CommandLineWindow.cpp
re0f8c8 rce7fdc 35 35 #include <iostream> 36 36 37 using namespace std;37 using namespace MoleCuilder; 38 38 39 39 // TODO: see what code can be moved to a base class for Graphic and CommandLine Windows -
src/UIElements/CommandLineUI/unittests/CommandLineParser_ActionRegistry_ConsistencyUnitTest.cpp
re0f8c8 rce7fdc 30 30 31 31 #include "CommandLineParser_ActionRegistry_ConsistencyUnitTest.hpp" 32 33 using namespace MoleCuilder; 32 34 33 35 #ifdef HAVE_TESTRUNNER -
src/UIElements/CommandLineUI/unittests/CommandLineParser_ActionRegistry_ConsistencyUnitTest.hpp
re0f8c8 rce7fdc 17 17 #include <cppunit/extensions/HelperMacros.h> 18 18 19 class CommandLineParser; 19 20 20 class ActionRegistry; 21 class CommandLineParser; 21 namespace MoleCuilder { 22 class ActionRegistry; 23 } 22 24 23 25 /********************************************** Test classes **************************************/ … … 35 37 36 38 private: 37 ActionRegistry *AR;39 MoleCuilder::ActionRegistry *AR; 38 40 CommandLineParser *CLP; 39 41 };
Note:
See TracChangeset
for help on using the changeset viewer.