Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ParserAction/SetParserParametersAction.cpp

    rbe21fa r770ec6  
    2727#include "Actions/ValueStorage.hpp"
    2828
     29#include <algorithm>
    2930#include <iostream>
    3031#include <string>
     
    4041Action::state_ptr ParserSetParserParametersAction::performCall() {
    4142  // get parser
    42   ParserTypes type = FormatParserStorage::getInstance().getTypeFromName(params.parsername);
     43  ParserTypes type = FormatParserStorage::getInstance().getTypeFromName(params.parsername.get());
    4344  FormatParser_Parameters *parameters = FormatParserStorage::getInstance().get(type).parameters;
    4445  ASSERT(parameters != NULL,
     
    5051
    5152  // obtain information
    52   std::stringstream newparamstream(params.newparams);
     53  std::stringstream newparamstream;
     54  const std::vector< std::string > keyvalues = params.newparams.get();
     55  std::for_each(keyvalues.begin(), keyvalues.end(), newparamstream << boost::lambda::_1 << ";");
    5356  newparamstream >> *parameters;
    5457
     
    5962  ParserSetParserParametersState *state = assert_cast<ParserSetParserParametersState*>(_state.get());
    6063
    61   ParserTypes type = FormatParserStorage::getInstance().getTypeFromName(state->params.parsername);
     64  ParserTypes type = FormatParserStorage::getInstance().getTypeFromName(state->params.parsername.get());
    6265  FormatParser_Parameters *parser = FormatParserStorage::getInstance().get(type).parameters;
    6366  std::stringstream oldparamstream(state->oldparams);
     
    7073  ParserSetParserParametersState *state = assert_cast<ParserSetParserParametersState*>(_state.get());
    7174
    72   ParserTypes type = FormatParserStorage::getInstance().getTypeFromName(state->params.parsername);
     75  ParserTypes type = FormatParserStorage::getInstance().getTypeFromName(state->params.parsername.get());
    7376  FormatParser_Parameters *parser = FormatParserStorage::getInstance().get(type).parameters;
    74   std::stringstream newparamstream(state->params.newparams);
     77  std::stringstream newparamstream;
     78  const std::vector< std::string > keyvalues = state->params.newparams.get();
     79  std::for_each(keyvalues.begin(), keyvalues.end(), newparamstream << boost::lambda::_1 << ";");
    7580  newparamstream >> *parser;
    7681
Note: See TracChangeset for help on using the changeset viewer.