Ignore:
Timestamp:
Aug 28, 2010, 12:57:56 AM (15 years ago)
Author:
Frederik Heber <heber@…>
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:
1fd675
Parents:
8bb05e
git-author:
Frederik Heber <heber@…> (08/26/10 18:59:34)
git-committer:
Frederik Heber <heber@…> (08/28/10 00:57:56)
Message:

Renamed dir Actions/CmdAction -> Actions/CommandAction, renamed class CommandLine... -> Command...

  • this is necessary to get the naming scheme consistent.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/Actions/CommandAction/FastParsingAction.cpp

    r8bb05e r53d01c  
    2020#include "Helpers/MemDebug.hpp"
    2121
    22 #include "Actions/CmdAction/FastParsingAction.hpp"
     22#include "Actions/CommandAction/FastParsingAction.hpp"
    2323#include "Actions/ActionRegistry.hpp"
    2424#include "config.hpp"
     
    3838// memento to remember the state when undoing
    3939
    40 class CommandLineFastParsingState : public ActionState {
     40class CommandFastParsingState : public ActionState {
    4141public:
    42   CommandLineFastParsingState(const bool _oldvalue, const bool _newvalue) :
     42  CommandFastParsingState(const bool _oldvalue, const bool _newvalue) :
    4343    oldvalue(_oldvalue),
    4444    newvalue(_newvalue)
     
    4949
    5050
    51 const char CommandLineFastParsingAction::NAME[] = "fastparsing";
     51const char CommandFastParsingAction::NAME[] = "fastparsing";
    5252
    53 CommandLineFastParsingAction::CommandLineFastParsingAction() :
     53CommandFastParsingAction::CommandFastParsingAction() :
    5454  Action(NAME)
    5555{}
    5656
    57 CommandLineFastParsingAction::~CommandLineFastParsingAction()
     57CommandFastParsingAction::~CommandFastParsingAction()
    5858{}
    5959
    6060void CommandFastParsing(bool fastparsing) {
    61   ValueStorage::getInstance().setCurrentValue(CommandLineFastParsingAction::NAME, fastparsing);
    62   ActionRegistry::getInstance().getActionByName(CommandLineFastParsingAction::NAME)->call(Action::NonInteractive);
     61  ValueStorage::getInstance().setCurrentValue(CommandFastParsingAction::NAME, fastparsing);
     62  ActionRegistry::getInstance().getActionByName(CommandFastParsingAction::NAME)->call(Action::NonInteractive);
    6363};
    6464
    65 void CommandLineFastParsingAction::getParametersfromValueStorage()
     65void CommandFastParsingAction::getParametersfromValueStorage()
    6666{};
    6767
    68 Dialog* CommandLineFastParsingAction::fillDialog(Dialog *dialog) {
     68Dialog* CommandFastParsingAction::fillDialog(Dialog *dialog) {
    6969  ASSERT(dialog,"No Dialog given when filling action dialog");
    7070
     
    7474}
    7575
    76 Action::state_ptr CommandLineFastParsingAction::performCall() {
     76Action::state_ptr CommandFastParsingAction::performCall() {
    7777  config *configuration = World::getInstance().getConfig();
    7878  bool oldvalue = configuration->FastParsing;
     
    8484  else
    8585    DoLog(0) && (Log() << Verbose(0) << "I will parse trajectories." << endl);
    86   return Action::state_ptr(new CommandLineFastParsingState(oldvalue, newvalue));
     86  return Action::state_ptr(new CommandFastParsingState(oldvalue, newvalue));
    8787}
    8888
    89 Action::state_ptr CommandLineFastParsingAction::performUndo(Action::state_ptr _state) {
    90   CommandLineFastParsingState *state = assert_cast<CommandLineFastParsingState*>(_state.get());
     89Action::state_ptr CommandFastParsingAction::performUndo(Action::state_ptr _state) {
     90  CommandFastParsingState *state = assert_cast<CommandFastParsingState*>(_state.get());
    9191
    9292  config *configuration = World::getInstance().getConfig();
     
    100100}
    101101
    102 Action::state_ptr CommandLineFastParsingAction::performRedo(Action::state_ptr _state){
    103   CommandLineFastParsingState *state = assert_cast<CommandLineFastParsingState*>(_state.get());
     102Action::state_ptr CommandFastParsingAction::performRedo(Action::state_ptr _state){
     103  CommandFastParsingState *state = assert_cast<CommandFastParsingState*>(_state.get());
    104104
    105105  config *configuration = World::getInstance().getConfig();
     
    113113}
    114114
    115 bool CommandLineFastParsingAction::canUndo() {
     115bool CommandFastParsingAction::canUndo() {
    116116  return true;
    117117}
    118118
    119 bool CommandLineFastParsingAction::shouldUndo() {
     119bool CommandFastParsingAction::shouldUndo() {
    120120  return true;
    121121}
    122122
    123 const string CommandLineFastParsingAction::getName() {
     123const string CommandFastParsingAction::getName() {
    124124  return NAME;
    125125}
Note: See TracChangeset for help on using the changeset viewer.