36 #ifndef PARAMETERINSTANCE_HPP_ 37 #define PARAMETERINSTANCE_HPP_ 39 #include "ChasteSerialization.hpp" 40 #include <boost/serialization/base_object.hpp> 41 #include "SmartPointers.hpp" 42 #include "UnitCollection.hpp" 43 #include "BaseParameterInstance.hpp" 65 template<
class Archive>
66 void serialize(Archive & ar,
const unsigned int version)
68 ar & boost::serialization::base_object<BaseParameterInstance>(*this);
93 const std::string& rName,
94 const std::string& rShortDescription,
95 const std::string& rSymbol,
96 const std::string& rBibliographicInfromation);
107 static boost::shared_ptr<ParameterInstance<UNIT> >
Create();
118 static boost::shared_ptr<ParameterInstance<UNIT> >
Create(units::quantity<UNIT> value,
119 const std::string& rName,
120 const std::string& rShortDescription,
121 const std::string& rSymbol,
122 const std::string& rBibliographicInfromation);
140 units::quantity<UNIT>
GetValue(
const std::string& rCallingClass =
"User",
bool addToCollection =
true);
146 void SetValue(units::quantity<UNIT> value);
150 #include "SerializationExportWrapper.hpp" 153 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::rate)
154 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::length)
155 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::per_length)
156 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::area)
157 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::volume)
158 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::mass)
159 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::mass_flux)
160 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::mass_flow_rate)
161 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::amount)
162 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::molar_flux)
163 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::molar_flow_rate)
164 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::molar_mass)
165 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::number_density)
166 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::rate_per_concentration)
167 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::concentration)
168 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::concentration_flow_rate)
169 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::concentration_gradient)
170 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::flow_rate)
171 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::flow_impedance)
172 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::pressure)
173 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::dynamic_viscosity)
174 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::diffusivity)
175 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::solubility)
176 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::membrane_permeability)
177 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::diffusivity_per_concentration)
178 EXPORT_TEMPLATE_CLASS1(ParameterInstance,
unit::volumetric_solubility)
void serialize(Archive &ar, const unsigned int version)
void SetValue(units::quantity< UNIT > value)
units::quantity< UNIT > GetValue(const std::string &rCallingClass="User", bool addToCollection=true)
friend class boost::serialization::access
virtual ~ParameterInstance()
units::quantity< UNIT > mValue
static boost::shared_ptr< ParameterInstance< UNIT > > Create()
virtual std::string GetValueAsString()