Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/WorldAction/OutputAction.cpp

    rbe21fa rf10b0c  
    3939/** =========== define the function ====================== */
    4040Action::state_ptr WorldOutputAction::performCall() {
    41   LOG(1, "Storing world to file " << params.filename << ".");
     41  LOG(1, "Storing world to file " << params.filename.get() << ".");
    4242
    4343  // extract suffix
    4444  std::string FilenameSuffix;
    4545  std::string FilenamePrefix;
    46   if (params.filename.has_filename()) {
     46  if (params.filename.get().has_filename()) {
    4747    // get suffix
    4848#if BOOST_VERSION >= 104600
    49     FilenameSuffix = params.filename.extension().string().substr(1); // remove the prefixed "."
    50     FilenamePrefix = params.filename.stem().string();
     49    FilenameSuffix = params.filename.get().extension().string().substr(1); // remove the prefixed "."
     50    FilenamePrefix = params.filename.get().stem().string();
    5151#else
    52     FilenameSuffix = params.filename.extension().substr(1); // remove the prefixed "."
    53     FilenamePrefix = params.filename.stem();
     52    FilenameSuffix = params.filename.get().extension().substr(1); // remove the prefixed "."
     53    FilenamePrefix = params.filename.get().stem();
    5454#endif
    5555  } else {
     
    6161  // parse the file
    6262  boost::filesystem::ofstream output;
    63   output.open(params.filename);
     63  output.open(params.filename.get());
    6464  if (!output.fail()) {
    6565    FormatParserStorage::getInstance().saveWorld(output, FilenameSuffix);
    6666  } else {
    67     ELOG(1, "Could not open file " << params.filename << ".");
     67    ELOG(1, "Could not open file " << params.filename.get() << ".");
    6868  }
    6969  output.close();
Note: See TracChangeset for help on using the changeset viewer.