1 #ifndef __JOSCPROB__JOSCPARAMETERSHELPER__
2 #define __JOSCPROB__JOSCPARAMETERSHELPER__
16 namespace JPP {
using namespace JOSCPROB; }
23 template<
class T =
double>
25 public std::shared_ptr<JOscParametersInterface<T> >
65 template<
class ...Args>
72 this->
set(name, value, args...);
105 if (static_cast<const JOscParametersHelper_t&>(*
this)) {
106 return *(this->
get());
133 template<
class ...Args>
136 const Args& ...
args)
const
138 this->
set(name, value);
155 for (JProperties::const_iterator
i = properties.cbegin();
i != properties.cend(); ++
i) {
Abstract base class for oscillation parameter.
JOscParameters_t::JParameter_t JParameter_t
JOscParameters_t & getParameters() const
Get reference to oscillation parameters interface.
JOscParameters_t::JOscParameter_t JOscParameter_t
JOscParametersHelper< T > JOscParametersHelper_t
JOscParametersHelper(const JOscParameters_t ¶meters, const std::string &name, argument_type value, const Args &...args)
Constructor.
JOscParametersHelper(const JOscParameters_t ¶meters)
Constructor.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
then echo Enter input within $TIMEOUT_S seconds echo n User name
Utility class to parse parameter values.
*fatal Wrong number of arguments esac JCookie sh typeset Z DETECTOR typeset Z SOURCE_RUN typeset Z TARGET_RUN set_variable PARAMETERS_FILE $WORKDIR parameters
bool is_valid() const
Check validity of oscillation parameters.
JOscParametersHelper()
Default constructor.
JParameter_t::argument_type argument_type
void set(const std::string &name, argument_type value, const Args &...args) const
Set value for given list of oscillation parameters.
virtual clone_type clone() const override
Get clone of this object.
virtual void set(const std::string &name, argument_type value) const
Set value for a given oscillation parameter.
Exception for null pointer operation.
Helper class for oscillation parameters.
bool is_valid() const
Check validity of oscillation parameters.
virtual void configure(const JOscParameters_t ¶meters)
Configure oscillation parameters.
void set(const JOscParameters_t ¶meters) const
Set oscillation parameters.
virtual JProperties getProperties(const JEquationParameters &equation=JOscParametersInterface_t::getEquationParameters())=0
Get properties of this class.
void set(const std::string &name, argument_type value)
Set value for a given oscillation parameter.
const T & getValue() const
Get value of parameter.
JOscParameters_t::argument_type argument_type
Interface class for sets of oscillation parameters.
JOscParametersInterface< T > JOscParameters_t
std::shared_ptr< JOscParameters_t > pointer_type