Writes a IBayesNet in the DSL format.
More...
#include <agrum/BN/io/DSL/DSLWriter.h>
|
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...
|
|
|
| DSLWriter () |
| Default constructor. More...
|
|
| ~DSLWriter () final |
| Destructor. More...
|
|
template<typename GUM_SCALAR>
class gum::DSLWriter< GUM_SCALAR >
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 49 of file DSLWriter.h.
◆ DSLWriter()
template<typename GUM_SCALAR >
◆ ~DSLWriter()
template<typename GUM_SCALAR >
◆ __variableBloc()
template<typename GUM_SCALAR >
◆ write() [1/2]
template<typename GUM_SCALAR >
Writes a Bayesian Network in the output stream using the DSL format.
- Parameters
-
output | The output stream. |
bn | The Bayesian Network writen in output. |
- Exceptions
-
IOError | Raised if and I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.
◆ write() [2/2]
template<typename GUM_SCALAR >
Writes a Bayesian Network in the referenced file using the DSL format.
If the files doesn't exists, it is created.
- Parameters
-
filePath | The path to the file used to write the Bayesian Network. |
bn | The Bayesian Network writed in the file. |
- Exceptions
-
IOError | Raised if and I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.
The documentation for this class was generated from the following file: