18 std::ifstream inputFileStream;
24 std::string fileContent((std::istreambuf_iterator<char>(inputFileStream)), (std::istreambuf_iterator<char>()));
32 bool succeeded = qi::phrase_parse(
33 iter, last, grammar, storm::spirit_encoding::space_type() | qi::lit(
"//") >> *(qi::char_ - (qi::eol | qi::eoi)) >> (qi::eol | qi::eoi), components);
34 STORM_LOG_THROW(succeeded, storm::exceptions::WrongFormatException,
"Could not parse imca file.");
36 }
catch (qi::expectation_failure<PositionIteratorType>
const& e) {
37 STORM_LOG_THROW(
false, storm::exceptions::WrongFormatException, e.what_);
39 }
catch (std::exception& e) {
50 ->template as<storm::models::sparse::MarkovAutomaton<ValueType>>();
void openFile(std::string const &filepath, std::ofstream &filestream, bool append=false, bool silent=false)
Open the given file for writing.