- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ParserAction/SetParserParametersAction.cpp
rbe21fa r770ec6 27 27 #include "Actions/ValueStorage.hpp" 28 28 29 #include <algorithm> 29 30 #include <iostream> 30 31 #include <string> … … 40 41 Action::state_ptr ParserSetParserParametersAction::performCall() { 41 42 // get parser 42 ParserTypes type = FormatParserStorage::getInstance().getTypeFromName(params.parsername );43 ParserTypes type = FormatParserStorage::getInstance().getTypeFromName(params.parsername.get()); 43 44 FormatParser_Parameters *parameters = FormatParserStorage::getInstance().get(type).parameters; 44 45 ASSERT(parameters != NULL, … … 50 51 51 52 // 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 << ";"); 53 56 newparamstream >> *parameters; 54 57 … … 59 62 ParserSetParserParametersState *state = assert_cast<ParserSetParserParametersState*>(_state.get()); 60 63 61 ParserTypes type = FormatParserStorage::getInstance().getTypeFromName(state->params.parsername );64 ParserTypes type = FormatParserStorage::getInstance().getTypeFromName(state->params.parsername.get()); 62 65 FormatParser_Parameters *parser = FormatParserStorage::getInstance().get(type).parameters; 63 66 std::stringstream oldparamstream(state->oldparams); … … 70 73 ParserSetParserParametersState *state = assert_cast<ParserSetParserParametersState*>(_state.get()); 71 74 72 ParserTypes type = FormatParserStorage::getInstance().getTypeFromName(state->params.parsername );75 ParserTypes type = FormatParserStorage::getInstance().getTypeFromName(state->params.parsername.get()); 73 76 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 << ";"); 75 80 newparamstream >> *parser; 76 81
Note:
See TracChangeset
for help on using the changeset viewer.