Ignore:
Timestamp:
Jul 26, 2010, 4:47:07 PM (14 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:
4ff081
Parents:
1a8fbf6
Message:

All CmdActions contain now a ActionCall.hpp function.

  • to have the Action's NAME, the action call function has to be friend of the Action.
Location:
src/Actions/CmdAction
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/CmdAction/BondLengthTableAction.cpp

    r1a8fbf6 recbc9a  
    99
    1010#include "Actions/CmdAction/BondLengthTableAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112#include "bondgraph.hpp"
    1213#include "config.hpp"
     
    3233CommandLineBondLengthTableAction::~CommandLineBondLengthTableAction()
    3334{}
     35
     36void CommandBondLengthTable(std::string &BondGraphFileName) {
     37  ValueStorage::getInstance().setCurrentValue(CommandLineBondLengthTableAction::NAME, BondGraphFileName);
     38  ActionRegistry::getInstance().getActionByName(CommandLineBondLengthTableAction::NAME)->call(Action::NonInteractive);
     39};
    3440
    3541Dialog* CommandLineBondLengthTableAction::createDialog() {
  • src/Actions/CmdAction/BondLengthTableAction.hpp

    r1a8fbf6 recbc9a  
    1212
    1313class CommandLineBondLengthTableAction : public Action {
     14  friend void CommandBondLengthTable(std::string &BondGraphFileName);
     15
    1416public:
    1517  CommandLineBondLengthTableAction();
  • src/Actions/CmdAction/ElementDbAction.cpp

    r1a8fbf6 recbc9a  
    99
    1010#include "Actions/CmdAction/ElementDbAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112#include "config.hpp"
    1213#include "log.hpp"
     
    3233CommandLineElementDbAction::~CommandLineElementDbAction()
    3334{}
     35
     36void CommandElementDb(std::string &databasepath) {
     37  ValueStorage::getInstance().setCurrentValue(CommandLineElementDbAction::NAME, databasepath);
     38  ActionRegistry::getInstance().getActionByName(CommandLineElementDbAction::NAME)->call(Action::NonInteractive);
     39};
    3440
    3541Dialog* CommandLineElementDbAction::createDialog() {
  • src/Actions/CmdAction/ElementDbAction.hpp

    r1a8fbf6 recbc9a  
    1212
    1313class CommandLineElementDbAction : public Action {
     14  friend void CommandElementDb(std::string &databasepath);
     15
    1416public:
    1517  CommandLineElementDbAction();
  • src/Actions/CmdAction/FastParsingAction.cpp

    r1a8fbf6 recbc9a  
    99
    1010#include "Actions/CmdAction/FastParsingAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112#include "config.hpp"
    1213#include "log.hpp"
     
    4243CommandLineFastParsingAction::~CommandLineFastParsingAction()
    4344{}
     45
     46void CommandFastParsing(bool fastparsing) {
     47  ValueStorage::getInstance().setCurrentValue(CommandLineFastParsingAction::NAME, fastparsing);
     48  ActionRegistry::getInstance().getActionByName(CommandLineFastParsingAction::NAME)->call(Action::NonInteractive);
     49};
    4450
    4551Dialog* CommandLineFastParsingAction::createDialog() {
  • src/Actions/CmdAction/FastParsingAction.hpp

    r1a8fbf6 recbc9a  
    1212
    1313class CommandLineFastParsingAction : public Action {
     14  friend void CommandFastParsing(bool fastparsing);
     15
    1416public:
    1517  CommandLineFastParsingAction();
  • src/Actions/CmdAction/HelpAction.cpp

    r1a8fbf6 recbc9a  
    99
    1010#include "Actions/CmdAction/HelpAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112#include "CommandLineParser.hpp"
    1213
     
    2829CommandLineHelpAction::~CommandLineHelpAction()
    2930{}
     31
     32void CommandHelp() {
     33  ActionRegistry::getInstance().getActionByName(CommandLineHelpAction::NAME)->call(Action::NonInteractive);
     34};
    3035
    3136Dialog* CommandLineHelpAction::createDialog() {
  • src/Actions/CmdAction/HelpAction.hpp

    r1a8fbf6 recbc9a  
    1212
    1313class CommandLineHelpAction : public Action {
     14  friend void CommandHelp();
     15
    1416public:
    1517  CommandLineHelpAction();
  • src/Actions/CmdAction/VerboseAction.cpp

    r1a8fbf6 recbc9a  
    99
    1010#include "Actions/CmdAction/VerboseAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112#include "log.hpp"
    1213#include "verbose.hpp"
     
    4041CommandLineVerboseAction::~CommandLineVerboseAction()
    4142{}
     43
     44void CommandVerbose(int verbosity) {
     45  ValueStorage::getInstance().setCurrentValue(CommandLineVerboseAction::NAME, verbosity);
     46  ActionRegistry::getInstance().getActionByName(CommandLineVerboseAction::NAME)->call(Action::NonInteractive);
     47};
    4248
    4349Dialog* CommandLineVerboseAction::createDialog() {
  • src/Actions/CmdAction/VerboseAction.hpp

    r1a8fbf6 recbc9a  
    1212
    1313class CommandLineVerboseAction : public Action {
     14  friend void CommandVerbose(int verbosity);
     15
    1416public:
    1517  CommandLineVerboseAction();
  • src/Actions/CmdAction/VersionAction.cpp

    r1a8fbf6 recbc9a  
    99
    1010#include "Actions/CmdAction/VersionAction.hpp"
     11#include "Actions/ActionCalls.hpp"
    1112
    1213#include <iostream>
     
    2728CommandLineVersionAction::~CommandLineVersionAction()
    2829{}
     30
     31void CommandVersion() {
     32  ActionRegistry::getInstance().getActionByName(CommandLineVersionAction::NAME)->call(Action::NonInteractive);
     33};
    2934
    3035Dialog* CommandLineVersionAction::createDialog() {
  • src/Actions/CmdAction/VersionAction.hpp

    r1a8fbf6 recbc9a  
    1313
    1414class CommandLineVersionAction : public Action {
     15  friend void CommandVersion();
     16
    1517public:
    1618  CommandLineVersionAction();
Note: See TracChangeset for help on using the changeset viewer.