Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MoleculeAction/LoadAction.cpp

    rbe21fa rf10b0c  
    4444Action::state_ptr MoleculeLoadAction::performCall() {
    4545  // parsing file if present
    46   if (!boost::filesystem::exists(params.filename)) {
    47     LOG(1, "Specified input file " << params.filename << " not found.");
     46  if (!boost::filesystem::exists(params.filename.get())) {
     47    LOG(1, "Specified input file " << params.filename.get() << " not found.");
    4848    return Action::failure;
    4949  } else {
     
    5353    std::string FilenameSuffix;
    5454    std::string FilenamePrefix;
    55     if (params.filename.has_filename()) {
     55    if (params.filename.get().has_filename()) {
    5656      // get suffix
    5757#if BOOST_VERSION >= 104600
    58       FilenameSuffix = params.filename.extension().string().substr(1); // remove the prefixed "."
    59       FilenamePrefix = params.filename.stem().string();
     58      FilenameSuffix = params.filename.get().extension().string().substr(1); // remove the prefixed "."
     59      FilenamePrefix = params.filename.get().stem().string();
    6060#else
    61       FilenameSuffix = params.filename.extension().substr(1); // remove the prefixed "."
    62       FilenamePrefix = params.filename.stem();
     61      FilenameSuffix = params.filename.get().extension().substr(1); // remove the prefixed "."
     62      FilenamePrefix = params.filename.get().stem();
    6363#endif
    6464    } else {
     
    7979    // parse the file
    8080    boost::filesystem::ifstream input;
    81     input.open(params.filename);
     81    input.open(params.filename.get());
    8282    FormatParserStorage::getInstance().load(input, FilenameSuffix);
    8383    input.close();
     
    125125  // parse the file
    126126  boost::filesystem::ifstream input;
    127   input.open(state->params.filename);
     127  input.open(state->params.filename.get());
    128128  FormatParserStorage::getInstance().load(input, state->FilenameSuffix);
    129129  input.close();
Note: See TracChangeset for help on using the changeset viewer.