Ignore:
Timestamp:
Jul 18, 2012, 2:02:13 PM (13 years ago)
Author:
Michael Ankele <ankele@…>
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:
b3a54d
Parents:
30cd0d
git-author:
Michael Ankele <ankele@…> (07/04/12 13:49:18)
git-committer:
Michael Ankele <ankele@…> (07/18/12 14:02:13)
Message:

VectorQuery: removed obsolete _check parameter

Location:
src/UIElements/CommandLineUI/Query
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/CommandLineUI/Query/AtomCommandLineQuery.cpp

    r30cd0d r9d5531  
    3333using namespace std;
    3434
    35 CommandLineDialog::AtomCommandLineQuery::AtomCommandLineQuery(Parameter<const atom *> &param, std::string title, std::string _description) :
    36     Dialog::AtomQuery(param, title, _description)
     35CommandLineDialog::AtomCommandLineQuery::AtomCommandLineQuery(Parameter<const atom *> &_param, std::string title, std::string _description) :
     36    Dialog::AtomQuery(_param, title, _description)
    3737{}
    3838
     
    4343  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    4444    IdxOfAtom = CommandLineParser::getInstance().vm[getTitle()].as<int>();
    45     tmp.set(World::getInstance().getAtom(AtomById(IdxOfAtom)));
     45    param.set(World::getInstance().getAtom(AtomById(IdxOfAtom)));
    4646    return true;
    4747  } else {
  • src/UIElements/CommandLineUI/Query/AtomsCommandLineQuery.cpp

    r30cd0d r9d5531  
    2828#include "World.hpp"
    2929
    30 CommandLineDialog::AtomsCommandLineQuery::AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &param, std::string title, std::string _description) :
    31     Dialog::AtomsQuery(param, title, _description)
     30CommandLineDialog::AtomsCommandLineQuery::AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, std::string title, std::string _description) :
     31    Dialog::AtomsQuery(_param, title, _description)
    3232{}
    3333
     
    3838  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    3939    IdxOfAtom = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >();
    40     std::vector<const atom *> temp_atoms;
    4140    for (std::vector<int>::iterator iter = IdxOfAtom.begin(); iter != IdxOfAtom.end(); ++iter) {
    42       temp = World::getInstance().getAtom(AtomById(*iter));
    43       if (temp)
    44         temp_atoms.push_back(temp);
     41      temp_element = World::getInstance().getAtom(AtomById(*iter));
     42      if (temp_element)
     43        temp.push_back(temp_element);
    4544    }
    46     tmp.set(temp_atoms);
     45    param.set(temp);
    4746    return true;
    4847  } else {
  • src/UIElements/CommandLineUI/Query/BooleanCommandLineQuery.cpp

    r30cd0d r9d5531  
    2525#include "CodePatterns/Verbose.hpp"
    2626
    27 CommandLineDialog::BooleanCommandLineQuery::BooleanCommandLineQuery(Parameter<bool> &param, std::string title, std::string _description) :
    28     Dialog::BooleanQuery(param, title, _description)
     27CommandLineDialog::BooleanCommandLineQuery::BooleanCommandLineQuery(Parameter<bool> &_param, std::string title, std::string _description) :
     28    Dialog::BooleanQuery(_param, title, _description)
    2929{}
    3030
     
    3333bool CommandLineDialog::BooleanCommandLineQuery::handle() {
    3434  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    35     tmp.set(CommandLineParser::getInstance().vm[getTitle()].as<bool>());
     35    param.set(CommandLineParser::getInstance().vm[getTitle()].as<bool>());
    3636    return true;
    3737  } else {
  • src/UIElements/CommandLineUI/Query/CommandLineQuery.hpp

    r30cd0d r9d5531  
    2626class CommandLineDialog::IntCommandLineQuery : public Dialog::IntQuery {
    2727public:
    28   IntCommandLineQuery(Parameter<int> &param, std::string title, std::string _description = "");
     28  IntCommandLineQuery(Parameter<int> &_param, std::string title, std::string _description = "");
    2929  virtual ~IntCommandLineQuery();
    3030  virtual bool handle();
     
    3333class CommandLineDialog::IntsCommandLineQuery : public Dialog::IntsQuery {
    3434public:
    35   IntsCommandLineQuery(Parameter<std::vector<int> > &param, std::string title, std::string _description = "");
     35  IntsCommandLineQuery(Parameter<std::vector<int> > &_param, std::string title, std::string _description = "");
    3636  virtual ~IntsCommandLineQuery();
    3737  virtual bool handle();
     
    4040class CommandLineDialog::UnsignedIntCommandLineQuery : public Dialog::UnsignedIntQuery {
    4141public:
    42   UnsignedIntCommandLineQuery(Parameter<unsigned int> &param, std::string title, std::string _description = "");
     42  UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, std::string title, std::string _description = "");
    4343  virtual ~UnsignedIntCommandLineQuery();
    4444  virtual bool handle();
     
    4747class CommandLineDialog::UnsignedIntsCommandLineQuery : public Dialog::UnsignedIntsQuery {
    4848public:
    49   UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &param, std::string title, std::string _description = "");
     49  UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, std::string title, std::string _description = "");
    5050  virtual ~UnsignedIntsCommandLineQuery();
    5151  virtual bool handle();
     
    5454class CommandLineDialog::BooleanCommandLineQuery : public Dialog::BooleanQuery {
    5555public:
    56   BooleanCommandLineQuery(Parameter<bool> &param, std::string title, std::string _description = "");
     56  BooleanCommandLineQuery(Parameter<bool> &_param, std::string title, std::string _description = "");
    5757  virtual ~BooleanCommandLineQuery();
    5858  virtual bool handle();
     
    6161class CommandLineDialog::DoubleCommandLineQuery : public Dialog::DoubleQuery {
    6262public:
    63   DoubleCommandLineQuery(Parameter<double> &param, std::string title, std::string _description = "");
     63  DoubleCommandLineQuery(Parameter<double> &_param, std::string title, std::string _description = "");
    6464  virtual ~DoubleCommandLineQuery();
    6565  virtual bool handle();
     
    6868class CommandLineDialog::DoublesCommandLineQuery : public Dialog::DoublesQuery {
    6969public:
    70   DoublesCommandLineQuery(Parameter<std::vector<double> > &param, std::string title, std::string _description = "");
     70  DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, std::string title, std::string _description = "");
    7171  virtual ~DoublesCommandLineQuery();
    7272  virtual bool handle();
     
    7575class CommandLineDialog::StringCommandLineQuery : public Dialog::StringQuery {
    7676public:
    77   StringCommandLineQuery(Parameter<std::string> &param, std::string title, std::string _description = "");
     77  StringCommandLineQuery(Parameter<std::string> &_param, std::string title, std::string _description = "");
    7878  virtual ~StringCommandLineQuery();
    7979  virtual bool handle();
     
    8282class CommandLineDialog::StringsCommandLineQuery : public Dialog::StringsQuery {
    8383public:
    84   StringsCommandLineQuery(Parameter<std::vector<std::string> > &param, std::string title, std::string _description = "");
     84  StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, std::string title, std::string _description = "");
    8585  virtual ~StringsCommandLineQuery();
    8686  virtual bool handle();
     
    8989class CommandLineDialog::AtomCommandLineQuery : public Dialog::AtomQuery {
    9090public:
    91   AtomCommandLineQuery(Parameter<const atom *> &param, std::string title, std::string _description = "");
     91  AtomCommandLineQuery(Parameter<const atom *> &_param, std::string title, std::string _description = "");
    9292  virtual ~AtomCommandLineQuery();
    9393  virtual bool handle();
     
    9696class CommandLineDialog::AtomsCommandLineQuery : public Dialog::AtomsQuery {
    9797public:
    98   AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &param, std::string title, std::string _description = "");
     98  AtomsCommandLineQuery(Parameter<std::vector<const atom *> > &_param, std::string title, std::string _description = "");
    9999  virtual ~AtomsCommandLineQuery();
    100100  virtual bool handle();
     
    103103class CommandLineDialog::MoleculeCommandLineQuery : public Dialog::MoleculeQuery {
    104104public:
    105   MoleculeCommandLineQuery(Parameter<const molecule *> &param, std::string title, std::string _description = "");
     105  MoleculeCommandLineQuery(Parameter<const molecule *> &_param, std::string title, std::string _description = "");
    106106  virtual ~MoleculeCommandLineQuery();
    107107  virtual bool handle();
     
    110110class CommandLineDialog::MoleculesCommandLineQuery : public Dialog::MoleculesQuery {
    111111public:
    112   MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &param, std::string title, std::string _description = "");
     112  MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, std::string title, std::string _description = "");
    113113  virtual ~MoleculesCommandLineQuery();
    114114  virtual bool handle();
     
    117117class CommandLineDialog::VectorCommandLineQuery : public Dialog::VectorQuery {
    118118public:
    119   VectorCommandLineQuery(Parameter<Vector> &param, std::string title,bool _check, std::string _description = "");
     119  VectorCommandLineQuery(Parameter<Vector> &_param, std::string title, std::string _description = "");
    120120  virtual ~VectorCommandLineQuery();
    121121  virtual bool handle();
     
    124124class CommandLineDialog::VectorsCommandLineQuery : public Dialog::VectorsQuery {
    125125public:
    126   VectorsCommandLineQuery(Parameter<std::vector<Vector> > &param, std::string title,bool _check, std::string _description = "");
     126  VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, std::string title, std::string _description = "");
    127127  virtual ~VectorsCommandLineQuery();
    128128  virtual bool handle();
     
    131131class CommandLineDialog::RealSpaceMatrixCommandLineQuery : public Dialog::RealSpaceMatrixQuery {
    132132public:
    133   RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &param, std::string title, std::string _description = "");
     133  RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string _description = "");
    134134  virtual ~RealSpaceMatrixCommandLineQuery();
    135135  virtual bool handle();
     
    138138class CommandLineDialog::ElementCommandLineQuery : public Dialog::ElementQuery {
    139139public:
    140   ElementCommandLineQuery(Parameter<const element *> &param, std::string title, std::string _description = "");
     140  ElementCommandLineQuery(Parameter<const element *> &_param, std::string title, std::string _description = "");
    141141  virtual ~ElementCommandLineQuery();
    142142  virtual bool handle();
     
    145145class CommandLineDialog::ElementsCommandLineQuery : public Dialog::ElementsQuery {
    146146public:
    147   ElementsCommandLineQuery(Parameter<std::vector<const element *> > &param, std::string title, std::string _description = "");
     147  ElementsCommandLineQuery(Parameter<std::vector<const element *> > &_param, std::string title, std::string _description = "");
    148148  virtual ~ElementsCommandLineQuery();
    149149  virtual bool handle();
     
    152152class CommandLineDialog::FileCommandLineQuery : public Dialog::FileQuery {
    153153public:
    154   FileCommandLineQuery(Parameter<boost::filesystem::path> &param, std::string title, std::string _description = "");
     154  FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, std::string title, std::string _description = "");
    155155  virtual ~FileCommandLineQuery();
    156156  virtual bool handle();
     
    166166class CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery : public Dialog::RandomNumberDistribution_ParametersQuery {
    167167public:
    168   RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &param, std::string title, std::string _description = "");
     168  RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string title, std::string _description = "");
    169169  virtual ~RandomNumberDistribution_ParametersCommandLineQuery();
    170170  virtual bool handle();
  • src/UIElements/CommandLineUI/Query/DoubleCommandLineQuery.cpp

    r30cd0d r9d5531  
    2626
    2727
    28 CommandLineDialog::DoubleCommandLineQuery::DoubleCommandLineQuery(Parameter<double> &param, std::string title, std::string _description) :
    29     Dialog::DoubleQuery(param, title, _description)
     28CommandLineDialog::DoubleCommandLineQuery::DoubleCommandLineQuery(Parameter<double> &_param, std::string title, std::string _description) :
     29    Dialog::DoubleQuery(_param, title, _description)
    3030{}
    3131
     
    3434bool CommandLineDialog::DoubleCommandLineQuery::handle() {
    3535  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    36     tmp.set(CommandLineParser::getInstance().vm[getTitle()].as<double>());
     36    param.set(CommandLineParser::getInstance().vm[getTitle()].as<double>());
    3737    return true;
    3838  } else {
  • src/UIElements/CommandLineUI/Query/DoublesCommandLineQuery.cpp

    r30cd0d r9d5531  
    2525#include "CodePatterns/Verbose.hpp"
    2626
    27 CommandLineDialog::DoublesCommandLineQuery::DoublesCommandLineQuery(Parameter<std::vector<double> > &param, std::string title, std::string _description) :
    28     Dialog::DoublesQuery(param, title, _description)
     27CommandLineDialog::DoublesCommandLineQuery::DoublesCommandLineQuery(Parameter<std::vector<double> > &_param, std::string title, std::string _description) :
     28    Dialog::DoublesQuery(_param, title, _description)
    2929{}
    3030
     
    3333bool CommandLineDialog::DoublesCommandLineQuery::handle() {
    3434  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    35     tmp.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<double> >());
     35    param.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<double> >());
    3636    return true;
    3737  } else {
  • src/UIElements/CommandLineUI/Query/ElementCommandLineQuery.cpp

    r30cd0d r9d5531  
    2828#include "World.hpp"
    2929
    30 CommandLineDialog::ElementCommandLineQuery::ElementCommandLineQuery(Parameter<const element*> &param, std::string title, std::string _description) :
    31     Dialog::ElementQuery(param, title, _description)
     30CommandLineDialog::ElementCommandLineQuery::ElementCommandLineQuery(Parameter<const element*> &_param, std::string title, std::string _description) :
     31    Dialog::ElementQuery(_param, title, _description)
    3232{}
    3333
     
    4040  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    4141    int Z = CommandLineParser::getInstance().vm[getTitle()].as< int >();
    42     tmp.set(periode->FindElement(Z));
    43     ASSERT(tmp.get() != NULL, "Invalid element specified in ElementCommandLineQuery");
     42    param.set(periode->FindElement(Z));
     43    ASSERT(param.get() != NULL, "Invalid element specified in ElementCommandLineQuery");
    4444    return true;
    4545  } else {
  • src/UIElements/CommandLineUI/Query/ElementsCommandLineQuery.cpp

    r30cd0d r9d5531  
    2828#include "World.hpp"
    2929
    30 CommandLineDialog::ElementsCommandLineQuery::ElementsCommandLineQuery(Parameter<std::vector<const element*> > &param, std::string title, std::string _description) :
    31     Dialog::ElementsQuery(param, title, _description)
     30CommandLineDialog::ElementsCommandLineQuery::ElementsCommandLineQuery(Parameter<std::vector<const element*> > &_param, std::string title, std::string _description) :
     31    Dialog::ElementsQuery(_param, title, _description)
    3232{}
    3333
     
    4040  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    4141    vector<int> AllElements = CommandLineParser::getInstance().vm[getTitle()].as< vector<int> >();
    42     vector<const element *> temp_elements;
    4342    for (vector<int>::iterator ZRunner = AllElements.begin(); ZRunner != AllElements.end(); ++ZRunner) {
    44       temp = periode->FindElement(*ZRunner);
    45       ASSERT(temp != NULL, "Invalid element specified in ElementCommandLineQuery");
    46       temp_elements.push_back(temp);
     43      temp_element = periode->FindElement(*ZRunner);
     44      ASSERT(temp_element != NULL, "Invalid element specified in ElementCommandLineQuery");
     45      temp.push_back(temp_element);
    4746    }
    48     tmp.set(temp_elements);
     47    param.set(temp);
    4948    return true;
    5049  } else {
  • src/UIElements/CommandLineUI/Query/FileCommandLineQuery.cpp

    r30cd0d r9d5531  
    2525#include "CodePatterns/Verbose.hpp"
    2626
    27 CommandLineDialog::FileCommandLineQuery::FileCommandLineQuery(Parameter<boost::filesystem::path> &param, std::string title, std::string _description) :
    28     Dialog::FileQuery(param, title, _description)
     27CommandLineDialog::FileCommandLineQuery::FileCommandLineQuery(Parameter<boost::filesystem::path> &_param, std::string title, std::string _description) :
     28    Dialog::FileQuery(_param, title, _description)
    2929{}
    3030
     
    3333bool CommandLineDialog::FileCommandLineQuery::handle() {
    3434  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    35     tmp.set(CommandLineParser::getInstance().vm[getTitle()].as< boost::filesystem::path >());
     35    param.set(CommandLineParser::getInstance().vm[getTitle()].as< boost::filesystem::path >());
    3636    return true;
    3737  } else {
  • src/UIElements/CommandLineUI/Query/FilesCommandLineQuery.cpp

    r30cd0d r9d5531  
    2525#include "CodePatterns/Verbose.hpp"
    2626
    27 CommandLineDialog::FilesCommandLineQuery::FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &param, std::string title, std::string _description) :
    28     Dialog::FilesQuery(param, title, _description)
     27CommandLineDialog::FilesCommandLineQuery::FilesCommandLineQuery(Parameter<std::vector< boost::filesystem::path> > &_param, std::string title, std::string _description) :
     28    Dialog::FilesQuery(_param, title, _description)
    2929{}
    3030
     
    3333bool CommandLineDialog::FilesCommandLineQuery::handle() {
    3434  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    35     tmp.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<boost::filesystem::path> >());
     35    param.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<boost::filesystem::path> >());
    3636    return true;
    3737  } else {
  • src/UIElements/CommandLineUI/Query/IntCommandLineQuery.cpp

    r30cd0d r9d5531  
    2525#include "CodePatterns/Verbose.hpp"
    2626
    27 CommandLineDialog::IntCommandLineQuery::IntCommandLineQuery(Parameter<int> &param, std::string title, std::string _description) :
    28     Dialog::IntQuery(param, title, _description)
     27CommandLineDialog::IntCommandLineQuery::IntCommandLineQuery(Parameter<int> &_param, std::string title, std::string _description) :
     28    Dialog::IntQuery(_param, title, _description)
    2929{}
    3030
     
    3333bool CommandLineDialog::IntCommandLineQuery::handle() {
    3434  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    35     tmp.set(CommandLineParser::getInstance().vm[getTitle()].as<int>());
     35    param.set(CommandLineParser::getInstance().vm[getTitle()].as<int>());
    3636    return true;
    3737  } else {
  • src/UIElements/CommandLineUI/Query/IntsCommandLineQuery.cpp

    r30cd0d r9d5531  
    2525#include "CodePatterns/Verbose.hpp"
    2626
    27 CommandLineDialog::IntsCommandLineQuery::IntsCommandLineQuery(Parameter<std::vector<int> > &param, std::string title, std::string _description) :
    28     Dialog::IntsQuery(param, title, _description)
     27CommandLineDialog::IntsCommandLineQuery::IntsCommandLineQuery(Parameter<std::vector<int> > &_param, std::string title, std::string _description) :
     28    Dialog::IntsQuery(_param, title, _description)
    2929{}
    3030
     
    3333bool CommandLineDialog::IntsCommandLineQuery::handle() {
    3434  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    35     tmp.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >());
     35    param.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >());
    3636    return true;
    3737  } else {
  • src/UIElements/CommandLineUI/Query/MoleculeCommandLineQuery.cpp

    r30cd0d r9d5531  
    2828#include "CodePatterns/Verbose.hpp"
    2929
    30 CommandLineDialog::MoleculeCommandLineQuery::MoleculeCommandLineQuery(Parameter<const molecule *> &param, std::string title, std::string _description) :
    31     Dialog::MoleculeQuery(param, title, _description)
     30CommandLineDialog::MoleculeCommandLineQuery::MoleculeCommandLineQuery(Parameter<const molecule *> &_param, std::string title, std::string _description) :
     31    Dialog::MoleculeQuery(_param, title, _description)
    3232{}
    3333
     
    3838  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    3939    IdxOfMol = CommandLineParser::getInstance().vm[getTitle()].as<int>();
    40     tmp.set(World::getInstance().getMolecule(MoleculeById(IdxOfMol)));
     40    param.set(World::getInstance().getMolecule(MoleculeById(IdxOfMol)));
    4141    return true;
    4242  } else {
  • src/UIElements/CommandLineUI/Query/MoleculesCommandLineQuery.cpp

    r30cd0d r9d5531  
    2929#include "World.hpp"
    3030
    31 CommandLineDialog::MoleculesCommandLineQuery::MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &param, std::string title, std::string _description) :
    32     Dialog::MoleculesQuery(param, title, _description)
     31CommandLineDialog::MoleculesCommandLineQuery::MoleculesCommandLineQuery(Parameter<std::vector<const molecule *> > &_param, std::string title, std::string _description) :
     32    Dialog::MoleculesQuery(_param, title, _description)
    3333{}
    3434
     
    3939  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    4040    IdxOfMol = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >();
    41     std::vector<const molecule *> temp_molecules;
    4241    for (std::vector<int>::iterator iter = IdxOfMol.begin(); iter != IdxOfMol.end(); ++iter) {
    43       temp = World::getInstance().getMolecule(MoleculeById(*iter));
    44       if (temp)
    45         temp_molecules.push_back(temp);
     42      temp_element = World::getInstance().getMolecule(MoleculeById(*iter));
     43      if (temp_element)
     44        temp.push_back(temp_element);
    4645    }
    47     tmp.set(temp_molecules);
     46    param.set(temp);
    4847    return true;
    4948  } else {
  • src/UIElements/CommandLineUI/Query/RandomNumberDistribution_ParametersCommandLineQuery.cpp

    r30cd0d r9d5531  
    3131#include "RandomNumbers/RandomNumberDistribution_Parameters.hpp"
    3232
    33 CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery::RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &param, std::string title, std::string _description) :
    34     Dialog::RandomNumberDistribution_ParametersQuery(param, title, _description)
     33CommandLineDialog::RandomNumberDistribution_ParametersCommandLineQuery::RandomNumberDistribution_ParametersCommandLineQuery(Parameter<RandomNumberDistribution_Parameters> &_param, std::string title, std::string _description) :
     34    Dialog::RandomNumberDistribution_ParametersQuery(_param, title, _description)
    3535{}
    3636
     
    4242    std::stringstream text(stringtext);
    4343//    LOG(1, "INFO: Parameter set from CommandLine is '" << text.str() << "'");
    44     RandomNumberDistribution_Parameters temp_params;
    45     text >> temp_params;
    46     tmp.set(temp_params);
     44    text >> temp;
     45    param.set(temp);
    4746    return true;
    4847  } else {
  • src/UIElements/CommandLineUI/Query/RealSpaceMatrixCommandLineQuery.cpp

    r30cd0d r9d5531  
    2727#include "LinearAlgebra/RealSpaceMatrix.hpp"
    2828
    29 CommandLineDialog::RealSpaceMatrixCommandLineQuery::RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &param, std::string title, std::string _description) :
    30     Dialog::RealSpaceMatrixQuery(param, title, _description)
     29CommandLineDialog::RealSpaceMatrixCommandLineQuery::RealSpaceMatrixCommandLineQuery(Parameter<RealSpaceMatrix> &_param, std::string title, std::string _description) :
     30    Dialog::RealSpaceMatrixQuery(_param, title, _description)
    3131{}
    3232
     
    3535
    3636bool CommandLineDialog::RealSpaceMatrixCommandLineQuery::handle() {
    37   RealSpaceMatrixValue temp;
     37  RealSpaceMatrixValue _temp;
    3838  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    39     temp = CommandLineParser::getInstance().vm[getTitle()].as< RealSpaceMatrixValue >();
    40     tmp.set(temp.toRealSpaceMatrix());
     39    _temp = CommandLineParser::getInstance().vm[getTitle()].as< RealSpaceMatrixValue >();
     40    param.set(_temp.toRealSpaceMatrix());
    4141    return true;
    4242  } else {
  • src/UIElements/CommandLineUI/Query/StringCommandLineQuery.cpp

    r30cd0d r9d5531  
    2525#include "CodePatterns/Verbose.hpp"
    2626
    27 CommandLineDialog::StringCommandLineQuery::StringCommandLineQuery(Parameter<std::string> &param, std::string title, std::string _description) :
    28     Dialog::StringQuery(param, title, _description)
     27CommandLineDialog::StringCommandLineQuery::StringCommandLineQuery(Parameter<std::string> &_param, std::string title, std::string _description) :
     28    Dialog::StringQuery(_param, title, _description)
    2929{}
    3030
     
    3333bool CommandLineDialog::StringCommandLineQuery::handle() {
    3434  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    35     tmp.set(CommandLineParser::getInstance().vm[getTitle()].as<string>());
     35    param.set(CommandLineParser::getInstance().vm[getTitle()].as<string>());
    3636    return true;
    3737  } else {
  • src/UIElements/CommandLineUI/Query/StringsCommandLineQuery.cpp

    r30cd0d r9d5531  
    2525#include "CodePatterns/Verbose.hpp"
    2626
    27 CommandLineDialog::StringsCommandLineQuery::StringsCommandLineQuery(Parameter<std::vector<std::string> > &param, std::string title, std::string _description) :
    28     Dialog::StringsQuery(param, title, _description)
     27CommandLineDialog::StringsCommandLineQuery::StringsCommandLineQuery(Parameter<std::vector<std::string> > &_param, std::string title, std::string _description) :
     28    Dialog::StringsQuery(_param, title, _description)
    2929{}
    3030
     
    3333bool CommandLineDialog::StringsCommandLineQuery::handle() {
    3434  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    35     tmp.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<std::string> >());
     35    param.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<std::string> >());
    3636    return true;
    3737  } else {
  • src/UIElements/CommandLineUI/Query/UnsignedIntCommandLineQuery.cpp

    r30cd0d r9d5531  
    2525#include "CodePatterns/Verbose.hpp"
    2626
    27 CommandLineDialog::UnsignedIntCommandLineQuery::UnsignedIntCommandLineQuery(Parameter<unsigned int> &param, std::string title, std::string _description) :
    28     Dialog::UnsignedIntQuery(param, title, _description)
     27CommandLineDialog::UnsignedIntCommandLineQuery::UnsignedIntCommandLineQuery(Parameter<unsigned int> &_param, std::string title, std::string _description) :
     28    Dialog::UnsignedIntQuery(_param, title, _description)
    2929{}
    3030
     
    3333bool CommandLineDialog::UnsignedIntCommandLineQuery::handle() {
    3434  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    35     tmp.set(CommandLineParser::getInstance().vm[getTitle()].as<unsigned int>());
     35    param.set(CommandLineParser::getInstance().vm[getTitle()].as<unsigned int>());
    3636    return true;
    3737  } else {
  • src/UIElements/CommandLineUI/Query/UnsignedIntsCommandLineQuery.cpp

    r30cd0d r9d5531  
    2525#include "CodePatterns/Verbose.hpp"
    2626
    27 CommandLineDialog::UnsignedIntsCommandLineQuery::UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &param, std::string title, std::string _description) :
    28     Dialog::UnsignedIntsQuery(param, title, _description)
     27CommandLineDialog::UnsignedIntsCommandLineQuery::UnsignedIntsCommandLineQuery(Parameter<std::vector<unsigned int> > &_param, std::string title, std::string _description) :
     28    Dialog::UnsignedIntsQuery(_param, title, _description)
    2929{}
    3030
     
    3333bool CommandLineDialog::UnsignedIntsCommandLineQuery::handle() {
    3434  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    35     tmp.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<unsigned int> >());
     35    param.set(CommandLineParser::getInstance().vm[getTitle()].as< std::vector<unsigned int> >());
    3636    return true;
    3737  } else {
  • src/UIElements/CommandLineUI/Query/VectorCommandLineQuery.cpp

    r30cd0d r9d5531  
    2929#include "World.hpp"
    3030
    31 CommandLineDialog::VectorCommandLineQuery::VectorCommandLineQuery(Parameter<Vector> &param, std::string title, bool _check, std::string _description) :
    32     Dialog::VectorQuery(param, title,_check, _description)
     31CommandLineDialog::VectorCommandLineQuery::VectorCommandLineQuery(Parameter<Vector> &_param, std::string title, std::string _description) :
     32    Dialog::VectorQuery(_param, title, _description)
    3333{}
    3434
     
    3737
    3838bool CommandLineDialog::VectorCommandLineQuery::handle() {
    39   VectorValue temp;
     39  VectorValue _temp;
    4040  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    41     temp = CommandLineParser::getInstance().vm[getTitle()].as< VectorValue >();
    42     Vector temp_vector = temp.toVector();
    43     if ((check) && (!World::getInstance().getDomain().isValid(temp_vector))) {
    44       ELOG(1, "Vector " << temp_vector << " would be outside of box domain.");
    45       return false;
    46     }
    47     tmp.set(temp_vector);
     41    _temp = CommandLineParser::getInstance().vm[getTitle()].as< VectorValue >();
     42    temp = _temp.toVector();
     43    param.set(temp);
    4844    return true;
    4945  } else {
  • src/UIElements/CommandLineUI/Query/VectorsCommandLineQuery.cpp

    r30cd0d r9d5531  
    2929#include "World.hpp"
    3030
    31 CommandLineDialog::VectorsCommandLineQuery::VectorsCommandLineQuery(Parameter<std::vector<Vector> > &param, std::string title, bool _check, std::string _description) :
    32     Dialog::VectorsQuery(param, title,_check, _description)
     31CommandLineDialog::VectorsCommandLineQuery::VectorsCommandLineQuery(Parameter<std::vector<Vector> > &_param, std::string title, std::string _description) :
     32    Dialog::VectorsQuery(_param, title, _description)
    3333{}
    3434
     
    4040  if (CommandLineParser::getInstance().vm.count(getTitle())) {
    4141    temporary = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<VectorValue> >();
    42     std::vector<Vector> temp_vectors;
    4342    for(std::vector<VectorValue>::iterator iter = temporary.begin(); iter != temporary.end(); ++iter) {
    44       temp = (*iter).toVector();
    45       if ((!check) || (World::getInstance().getDomain().isValid(temp)))
    46         temp_vectors.push_back(temp);
    47       else
    48         ELOG(1, "Vector " << temp << " would be outside of box domain.");
     43      temp_element = (*iter).toVector();
     44      temp.push_back(temp_element);
    4945    }
    50     tmp.set(temp_vectors);
     46    param.set(temp);
    5147    return true;
    5248  } else {
Note: See TracChangeset for help on using the changeset viewer.