Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/FormatParser_Parameters.cpp

    r0aa122 r118f1e  
    2929#include "CodePatterns/Log.hpp"
    3030
    31 #include "Parameters/Parameter.hpp"
     31#include "Parameters/ParameterAsString.hpp"
    3232#include "FormatParser_Parameters.hpp"
    3333
     
    8787 * @param instance parameter to add
    8888 */
    89 void FormatParser_Parameters::appendParameter(Parameter *instance)
     89void FormatParser_Parameters::appendParameter(ParameterAsString *instance)
    9090{
    9191  storage->registerInstance(instance);
     
    109109 * @return pointer to instance with this \a _name
    110110 */
    111 Parameter *FormatParser_Parameters::getParameter(const std::string &_name) const
     111ParameterAsString *FormatParser_Parameters::getParameter(const std::string &_name) const
    112112{
    113113  return storage->getByName(_name);
     
    129129      iter != params.storage->getEndIter();
    130130      ++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() << ";";
    133133  ost << output.str();
    134134  return ost;
     
    187187          +key+"' with value "+valuestream.str()+"!");
    188188      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());
    191191      }
    192192    } else {
Note: See TracChangeset for help on using the changeset viewer.