1#ifndef __JOSCPROB__JOSCPARAMETERSHELPER__
2#define __JOSCPROB__JOSCPARAMETERSHELPER__
27 public std::unique_ptr<JOscParametersInterface<T> >
79 template<
class ...Args>
81 const std::string& name,
86 this->
set(name, value, args...);
97 if (p) { this->reset(p->clone()); }
131 return *(this->
get());
145 return pointer_type::get();
168 void set(
const std::string& name,
182 template<
class ...Args>
183 void set(
const std::string& name,
185 const Args& ...args)
const
187 this->
set(name, value);
204 for (JProperties::const_iterator i = properties.cbegin(); i != properties.cend(); ++i) {
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Utility class to parse parameter values.
Utility class to parse parameter values.
Simple data structure to support I/O of equations (see class JLANG::JEquation).
Exception for null pointer operation.
const value_type getValue() const
Get value of parameter.
Interface class for sets of oscillation parameters.
JParameter_t::value_type value_type
virtual JProperties getProperties(const JEquationParameters &equation=JOscParametersInterface_t::getEquationParameters())=0
Get properties of this class.
const JOscParameter_t & get(const std::string &name) const
Get oscillation parameter.
static JEquationParameters & getEquationParameters()
Get equation parameters.
void set(const std::string &name, const value_type &value)
Set value for a given oscillation parameter.
JParameter_t::argument_type argument_type
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
virtual clone_type clone() const override
Get clone of this object.
Abstract base class for oscillation parameter.
Helper class for oscillation parameters.
virtual JProperties getProperties(const JEquationParameters &equation=JOscParameters_t::getEquationParameters()) const
Get properties of this class.
JOscParametersInterface< T > JOscParameters_t
void configure(const pointer_type &p)
Configure oscillation parameters.
JOscParametersHelper< T > JOscParametersHelper_t
std::unique_ptr< JOscParameters_t > pointer_type
JOscParameters_t * get() const
Get pointer to oscillation parameters interface.
JOscParametersHelper(const JOscParameters_t ¶meters)
Constructor.
void configure(const JOscParameters_t ¶meters)
Configure oscillation parameters.
JOscParameters_t::JParameter_t JParameter_t
JOscParametersHelper(const JOscParameters_t ¶meters, const std::string &name, argument_type value, const Args &...args)
Constructor.
JOscParameters_t & getParameters() const
Get reference to oscillation parameters interface.
JOscParameters_t::argument_type argument_type
JOscParameters_t::JOscParameter_t JOscParameter_t
void set(const std::string &name, const value_type &value, const Args &...args) const
Set value for given list of oscillation parameters.
JOscParametersHelper(const pointer_type &p)
Copy constructor.
void set(const JOscParametersInterface< value_type > ¶meters) const
Set oscillation parameters.
JOscParameter_t & get(const std::string &name) const
Get oscillation parameter.
JOscParametersHelper()
Default constructor.
virtual JProperties getProperties(const JEquationParameters &equation=JOscParameters_t::getEquationParameters())
Get properties of this class.
void set(const std::string &name, const value_type &value) const
Set value for a given oscillation parameter.
JOscParameters_t::value_type value_type