Writes an influence diagram in a XML files with BIF format.
More...
#include <BIFXMLIDWriter.h>
|
| virtual void | write (std::ostream &output, const InfluenceDiagram< GUM_SCALAR > &infdiag) |
| | Writes an influence diagram in the given ouput stream.
|
| virtual void | write (std::string filePath, const InfluenceDiagram< GUM_SCALAR > &infdiag) |
| | Writes an Influence Diagram in the file referenced by filePath.
|
| | BIFXMLIDWriter () |
| | Default constructor.
|
| virtual | ~BIFXMLIDWriter () |
| | Destructor.
|
template<typename GUM_SCALAR>
class gum::BIFXMLIDWriter< GUM_SCALAR >
Writes an influence diagram in a XML files with BIF format.
This class export an influence diagram 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 81 of file BIFXMLIDWriter.h.
◆ BIFXMLIDWriter()
template<typename GUM_SCALAR>
◆ ~BIFXMLIDWriter()
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 influence diagram in the given ouput stream.
- Parameters
-
| output | The output stream. |
| infdiag | The influence diagram writen in the stream. |
- Exceptions
-
| IOError | Raised if an I/O error occurs. |
Implements gum::IDWriter< GUM_SCALAR >.
◆ write() [2/2]
template<typename GUM_SCALAR>
Writes an Influence Diagram 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 Influence Diagram. |
| infdiag | The Influence Diagram writen in the file. |
- Exceptions
-
| IOError | Raised if an I/O error occurs. |
Implements gum::IDWriter< GUM_SCALAR >.
The documentation for this class was generated from the following file: