![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Writes a IBayesNet in the DSL format. More...
#include <agrum/BN/io/DSL/DSLWriter.h>
Public Member Functions | |
void | write (std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) final |
Writes a Bayesian network in the output stream using the DSL format. More... | |
void | write (const std::string &filePath, const IBayesNet< GUM_SCALAR > &bn) final |
Writes a Bayesian network in the referenced file using the DSL format. More... | |
Constructor & destructor | |
DSLWriter () | |
Default constructor. More... | |
~DSLWriter () final | |
Destructor. More... | |
Writes a IBayesNet in the DSL format.
This class servers to write the content of a Bayesian network in the DSL format. See http://www.cs.cmu.edu/~fgcozman/Research/InterchangeFormat/Old/xmlDSL02.html for information on this format.
Definition at line 48 of file DSLWriter.h.
gum::DSLWriter< GUM_SCALAR >::DSLWriter | ( | ) |
Default constructor.
|
final |
Destructor.
|
private |
|
finalvirtual |
Writes a Bayesian network in the output stream using the DSL format.
output | The output stream. |
bn | The Bayesian network writen in output. |
IOError | Raised if and I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.
|
finalvirtual |
Writes a Bayesian network in the referenced file using the DSL format.
If the files doesn't exists, it is created.
filePath | The path to the file used to write the Bayesian network. |
bn | The Bayesian network writed in the file. |
IOError | Raised if and I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.