<agrum/BN/io/BIFXML/BIFXMLBNWriter.h>
More...
#include <BIFXMLBNWriter.h>
template<typename GUM_SCALAR>
class gum::BIFXMLBNWriter< GUM_SCALAR >
<agrum/BN/io/BIFXML/BIFXMLBNWriter.h>
Writes an bayes net in a XML file with BIF format
This class export a bayes net into an XML files, using BIF format See http://www-2.cs.cmu.edu/afs/cs/user/fgcozman/www/Research/InterchangeFormat/ for information about this format.
Definition at line 60 of file BIFXMLBNWriter.h.
◆ BIFXMLBNWriter()
template<typename GUM_SCALAR >
◆ ~BIFXMLBNWriter()
template<typename GUM_SCALAR >
◆ _documentend_()
template<typename GUM_SCALAR >
Returns the end of the BIF file.
◆ _heading_()
template<typename GUM_SCALAR >
Returns the header of the BIF file.
◆ _variableBloc_()
template<typename GUM_SCALAR >
Returns a bloc defining a variable in the BIF format.
◆ _variableDefinition_()
template<typename GUM_SCALAR >
Returns a bloc defining a variable's table (if she has) in the BIF format.
◆ write() [1/2]
template<typename GUM_SCALAR >
Writes an bayes net in the given ouput stream.
- Parameters
-
output | The output stream. |
infdiag | The bayes net writen in the stream. |
- Exceptions
-
IOError | Raised if an I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.
◆ write() [2/2]
template<typename GUM_SCALAR >
Writes an bayes net 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.
- Parameters
-
filePath | The path to the file used to write the bayes net. |
infdiag | The bayes net writen in the file. |
- Exceptions
-
IOError | Raised if an I/O error occurs. |
Implements gum::BNWriter< GUM_SCALAR >.
The documentation for this class was generated from the following file: