Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
export.cpp
Go to the documentation of this file.
1#include "storm/api/export.h"
3
4namespace storm {
5namespace api {
6
7void exportJaniModelAsDot(storm::jani::Model const& model, std::string const& filename) {
8 std::ofstream out;
9 storm::io::openFile(filename, out);
10 model.writeDotToStream(out);
12}
13
14} // namespace api
15} // namespace storm
void writeDotToStream(std::ostream &outStream=std::cout) const
Definition Model.cpp:1638
void exportJaniModelAsDot(storm::jani::Model const &model, std::string const &filename)
Definition export.cpp:7
void closeFile(std::ofstream &stream)
Close the given file after writing.
Definition file.h:47
void openFile(std::string const &filepath, std::ofstream &filestream, bool append=false, bool silent=false)
Open the given file for writing.
Definition file.h:18
LabParser.cpp.
Definition cli.cpp:18