- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/FormatParser_Parameters.cpp
r0aa122 r118f1e 29 29 #include "CodePatterns/Log.hpp" 30 30 31 #include "Parameters/Parameter .hpp"31 #include "Parameters/ParameterAsString.hpp" 32 32 #include "FormatParser_Parameters.hpp" 33 33 … … 87 87 * @param instance parameter to add 88 88 */ 89 void FormatParser_Parameters::appendParameter(Parameter *instance)89 void FormatParser_Parameters::appendParameter(ParameterAsString *instance) 90 90 { 91 91 storage->registerInstance(instance); … … 109 109 * @return pointer to instance with this \a _name 110 110 */ 111 Parameter *FormatParser_Parameters::getParameter(const std::string &_name) const111 ParameterAsString *FormatParser_Parameters::getParameter(const std::string &_name) const 112 112 { 113 113 return storage->getByName(_name); … … 129 129 iter != params.storage->getEndIter(); 130 130 ++iter) 131 if (!iter->second->get ().empty())132 output << iter->first << "=" << iter->second->get () << ";";131 if (!iter->second->getAsString().empty()) 132 output << iter->first << "=" << iter->second->getAsString() << ";"; 133 133 ost << output.str(); 134 134 return ost; … … 187 187 +key+"' with value "+valuestream.str()+"!"); 188 188 if (params.haveParameter(key)) { 189 Parameter *instance = params.getParameter(key);190 instance->set (valuestream.str());189 ParameterAsString *instance = params.getParameter(key); 190 instance->setAsString(valuestream.str()); 191 191 } 192 192 } else {
Note:
See TracChangeset
for help on using the changeset viewer.