Changeset c4c113


Ignore:
Timestamp:
Mar 17, 2017, 10:11:35 AM (8 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph_documentation, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
Children:
eca0d7
Parents:
917c46
git-author:
Frederik Heber <heber@…> (03/17/17 09:47:19)
git-committer:
Frederik Heber <heber@…> (03/17/17 10:11:35)
Message:

FIX: Value_elements was broken from copy&paste.

  • inclusion guard was still the one from Value_element.hpp.
  • specific typename was still the one from Value_element.hpp.
  • TEST: Added CodeCheck test such that specific implementations are always contained in Value.hpp
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • src/Parameters/Specifics/Value_elements.cpp

    r917c46 rc4c113  
    2222
    2323/*
    24  * Value_elementss.cpp
     24 * Value_elements.cpp
    2525 *
    2626 *  Created on: Jul 18, 2015
  • src/Parameters/Specifics/Value_elements.hpp

    r917c46 rc4c113  
    11/*
    2  * Value_element.hpp
     2 * Value_elements.hpp
    33 *
    44 *  Created on: Sep 10, 2014
     
    66 */
    77
    8 #ifndef VALUE_ELEMENT_HPP_
    9 #define VALUE_ELEMENT_HPP_
     8#ifndef VALUE_ELEMENTS_HPP_
     9#define VALUE_ELEMENTS_HPP_
    1010
    1111// include config.h
     
    1919#include "Parameters/Value.hpp"
    2020
    21 // This overrides string conversions for the type element which need a specific function call.
     21// This overrides string conversions for the type vector<element> which need a specific function call.
    2222
    2323template <>
    24 bool Value<const element *>::isValidAsString(const std::string &_value) const throw(ParameterValidatorException);
     24bool Value<std::vector<const element *> >::isValidAsString(const std::string &_value) const throw(ParameterValidatorException);
    2525
    2626template <>
    27 const std::string Value<const element *>::getAsString() const throw(ParameterValueException);
     27const std::string Value<std::vector<const element *> >::getAsString() const throw(ParameterValueException);
    2828
    2929template <>
    30 void Value<const element *>::setAsString(const std::string &_value) throw(ParameterException);
     30void Value<std::vector<const element *> >::setAsString(const std::string &_value) throw(ParameterException);
    3131
    3232
    33 #endif /* VALUE_ELEMENT_HPP_ */
     33#endif /* VALUE_ELEMENTS_HPP_ */
  • src/Parameters/Value.hpp

    r917c46 rc4c113  
    118118};
    119119
    120 #include "Value_impl.hpp"
    121 
    122120#include "Specifics/Value_atom.hpp"
    123121#include "Specifics/Value_element.hpp"
     122#include "Specifics/Value_elements.hpp"
    124123#include "Specifics/Value_molecule.hpp"
    125124#include "Specifics/Value_string.hpp"
    126125
     126#include "Value_impl.hpp"
     127
    127128#endif /* VALUE_HPP_ */
  • tests/CodeChecks/testsuite.at

    r917c46 rc4c113  
    4545
    4646m4_include(testsuite-action_present_in_userguide.at)
     47
     48m4_include(testsuite-specifics_present_in_value_header.at)
Note: See TracChangeset for help on using the changeset viewer.