Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/AtomAction/SaveSelectedAtomsAction.cpp

    rbe21fa rf10b0c  
    3838/** =========== define the function ====================== */
    3939Action::state_ptr AtomSaveSelectedAtomsAction::performCall() {
    40   LOG(1, "Storing selected atoms to file " << params.filename << ".");
     40  LOG(1, "Storing selected atoms to file " << params.filename.get() << ".");
    4141
    4242  // extract suffix
    4343  std::string FilenameSuffix;
    4444  std::string FilenamePrefix;
    45   if (params.filename.has_filename()) {
     45  if (params.filename.get().has_filename()) {
    4646    // get suffix
    4747#if BOOST_VERSION >= 104600
    48       FilenameSuffix = params.filename.extension().string().substr(1); // remove the prefixed "."
    49       FilenamePrefix = params.filename.stem().string();
     48      FilenameSuffix = params.filename.get().extension().string().substr(1); // remove the prefixed "."
     49      FilenamePrefix = params.filename.get().stem().string();
    5050#else
    51       FilenameSuffix = params.filename.extension().substr(1); // remove the prefixed "."
    52       FilenamePrefix = params.filename.stem();
     51      FilenameSuffix = params.filename.get().extension().substr(1); // remove the prefixed "."
     52      FilenamePrefix = params.filename.get().stem();
    5353#endif
    5454  } else {
     
    6060  // parse the file
    6161  boost::filesystem::ofstream output;
    62   output.open(params.filename);
     62  output.open(params.filename.get());
    6363  if (!output.fail()) {
    6464    FormatParserStorage::getInstance().saveSelectedAtoms(output, FilenameSuffix);
    6565  } else {
    66     ELOG(1, "Could not open file " << params.filename << ".");
     66    ELOG(1, "Could not open file " << params.filename.get() << ".");
    6767  }
    6868  output.close();
Note: See TracChangeset for help on using the changeset viewer.