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
"
2
#include "
storm/storage/jani/JaniLocationExpander.h
"
3
4
namespace
storm
{
5
namespace
api {
6
7
void
exportJaniModelAsDot
(
storm::jani::Model
const
& model, std::string
const
& filename) {
8
std::ofstream out;
9
storm::io::openFile
(filename, out);
10
model.
writeDotToStream
(out);
11
storm::io::closeFile
(out);
12
}
13
14
}
// namespace api
15
}
// namespace storm
JaniLocationExpander.h
storm::jani::Model
Definition
Model.h:35
storm::jani::Model::writeDotToStream
void writeDotToStream(std::ostream &outStream=std::cout) const
Definition
Model.cpp:1638
storm::api::exportJaniModelAsDot
void exportJaniModelAsDot(storm::jani::Model const &model, std::string const &filename)
Definition
export.cpp:7
storm::io::closeFile
void closeFile(std::ofstream &stream)
Close the given file after writing.
Definition
file.h:47
storm::io::openFile
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
storm
LabParser.cpp.
Definition
cli.cpp:18
export.h
src
storm
api
export.cpp
Generated by
1.9.8