- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/MoleculeAction/LoadAction.cpp
rf10b0c rbe21fa 44 44 Action::state_ptr MoleculeLoadAction::performCall() { 45 45 // parsing file if present 46 if (!boost::filesystem::exists(params.filename .get())) {47 LOG(1, "Specified input file " << params.filename .get()<< " not found.");46 if (!boost::filesystem::exists(params.filename)) { 47 LOG(1, "Specified input file " << params.filename << " not found."); 48 48 return Action::failure; 49 49 } else { … … 53 53 std::string FilenameSuffix; 54 54 std::string FilenamePrefix; 55 if (params.filename. get().has_filename()) {55 if (params.filename.has_filename()) { 56 56 // get suffix 57 57 #if BOOST_VERSION >= 104600 58 FilenameSuffix = params.filename. get().extension().string().substr(1); // remove the prefixed "."59 FilenamePrefix = params.filename. get().stem().string();58 FilenameSuffix = params.filename.extension().string().substr(1); // remove the prefixed "." 59 FilenamePrefix = params.filename.stem().string(); 60 60 #else 61 FilenameSuffix = params.filename. get().extension().substr(1); // remove the prefixed "."62 FilenamePrefix = params.filename. get().stem();61 FilenameSuffix = params.filename.extension().substr(1); // remove the prefixed "." 62 FilenamePrefix = params.filename.stem(); 63 63 #endif 64 64 } else { … … 79 79 // parse the file 80 80 boost::filesystem::ifstream input; 81 input.open(params.filename .get());81 input.open(params.filename); 82 82 FormatParserStorage::getInstance().load(input, FilenameSuffix); 83 83 input.close(); … … 125 125 // parse the file 126 126 boost::filesystem::ifstream input; 127 input.open(state->params.filename .get());127 input.open(state->params.filename); 128 128 FormatParserStorage::getInstance().load(input, state->FilenameSuffix); 129 129 input.close();
Note:
See TracChangeset
for help on using the changeset viewer.