Writes a IBayesNet in the DSL format.
More...
#include <agrum/BN/io/DSL/DSLWriter.h>
|
| void | _doWrite (std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) final |
| | Writes a Bayesian network in the output stream using the DSL format.
|
| void | _doWrite (const std::string &filePath, const IBayesNet< GUM_SCALAR > &bn) final |
| | Writes a Bayesian network in the referenced file using the DSL format.
|
| void | _syntacticalCheck (const IBayesNet< GUM_SCALAR > &bn) final |
| | Check whether the BN is syntactically correct for BIF format.
|
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 69 of file DSLWriter.h.
◆ DSLWriter() [1/3]
template<typename GUM_SCALAR>
◆ ~DSLWriter()
template<typename GUM_SCALAR>
◆ DSLWriter() [2/3]
template<typename GUM_SCALAR>
| gum::DSLWriter< GUM_SCALAR >::DSLWriter |
( |
const DSLWriter< GUM_SCALAR > & | | ) |
|
|
default |
◆ DSLWriter() [3/3]
template<typename GUM_SCALAR>
| gum::DSLWriter< GUM_SCALAR >::DSLWriter |
( |
DSLWriter< GUM_SCALAR > && | | ) |
|
|
defaultnoexcept |
◆ _buildNameWithOnlyValidChars()
template<typename GUM_SCALAR>
| std::string gum::BNWriter< GUM_SCALAR >::_buildNameWithOnlyValidChars |
( |
const std::string & | name | ) |
|
|
protectedinherited |
◆ _doWrite() [1/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 >.
References _doWrite().
◆ _doWrite() [2/2]
template<typename GUM_SCALAR>
◆ _onlyValidCharsInName()
template<typename GUM_SCALAR>
| std::string gum::BNWriter< GUM_SCALAR >::_onlyValidCharsInName |
( |
const std::string & | name | ) |
|
|
protectedinherited |
◆ _syntacticalCheck()
template<typename GUM_SCALAR>
◆ _validCharInNamesCheck()
template<typename GUM_SCALAR>
◆ _variableBloc_()
template<typename GUM_SCALAR>
◆ isModificationAllowed()
template<typename GUM_SCALAR>
◆ operator=() [1/2]
template<typename GUM_SCALAR>
◆ operator=() [2/2]
template<typename GUM_SCALAR>
◆ setAllowModification()
template<typename GUM_SCALAR>
◆ write() [1/2]
template<typename GUM_SCALAR>
Writes a Bayesian network in the file referenced by filePath.
- If the file doesn't exists, it is created.
- If the file exists, it's content will be erased.
- If the bn can not be written for syntactical reasons, throw an error or try to correct it (conditioned by the value of allowModification
- Parameters
-
| filePath | The path to the file used to write the Bayesian network. |
| bn | The Bayesian network writen in the file. |
- Exceptions
-
| IOError | Raised if an I/O error occurs. |
References write().
◆ write() [2/2]
template<typename GUM_SCALAR>
Writes a Bayesian network in the output stream.
- If the bn can not be written for syntactical reasons, throw an error or try to correct it (conditioned by the value of allowModification
- Parameters
-
| output | The output stream. |
| bn | The Bayesian network written in output. |
- Exceptions
-
References write().
Referenced by gum::credal::CredalNet< GUM_SCALAR >::saveBNsMinMax(), write(), and write().
◆ _allowModification_
template<typename GUM_SCALAR>
The documentation for this class was generated from the following file: