36 #include "BaseParameterInstance.hpp" 37 #include "ParameterCollection.hpp" 40 : mName(
"DefaultParameter"),
41 mShortDescription(
"A short description of the parameter"),
42 mSourceInformation(
"WARNING: No source information given for parameter."),
50 const std::string& rShortDescription,
51 const std::string& rSymbol,
52 const std::string& rBibliographicInfromation)
125 std::ostream& operator <<(std::ostream& stream, const boost::shared_ptr<BaseParameterInstance>& rParameter)
127 stream<<
"<name>" << rParameter->GetName() <<
"</name>\n";
128 stream<<
"<value>" << rParameter->GetValueAsString() <<
"</value>\n";
129 stream<<
"<description>" << rParameter->GetShortDescription() <<
"</description>\n";
130 stream<<
"<symbol>" << rParameter->GetSymbol() <<
"</symbol>\n";
131 stream<<
"<source>" <<
"\"" <<rParameter->GetBibliographicInformation() <<
"\"" <<
"</source>\n";
void SetBibliographicInformation(const std::string &rSourceInformation)
units::quantity< unit::dimensionless > mBaseValue
std::string GetBibliographicInformation()
void SetSymbol(const std::string &rSymbol)
void AddParameter(boost::shared_ptr< BaseParameterInstance > pParameter, const std::string &rFirstInstantiated)
virtual ~BaseParameterInstance()
std::string GetShortDescription()
static boost::shared_ptr< BaseParameterInstance > Create()
void SetName(const std::string &rName)
static ParameterCollection * Instance()
void RegisterWithCollection(const std::string &rCallingClass)
virtual std::string GetValueAsString()
void SetShortDescription(const std::string &rShortDescription)
std::string mSourceInformation
std::string mShortDescription