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 output stream.
|
| virtual void | write (std::string_view filePath, const InfluenceDiagram< GUM_SCALAR > &infdiag) |
| | Writes an Influence Diagram in the file referenced by filePath.
|
| virtual void | write (std::string_view filePath, InfluenceDiagram< GUM_SCALAR > &infdiag) |
| | Writes an Influence Diagram in the file referenced by filePath, updating metadata (software, creation, lastModification) before writing.
|
| | BIFXMLIDWriter () |
| | Default constructor.
|
| virtual | ~BIFXMLIDWriter () |
| | Destructor.
|
template<GUM_Numeric 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<GUM_Numeric GUM_SCALAR>
◆ ~BIFXMLIDWriter()
template<GUM_Numeric GUM_SCALAR>
◆ _documentend_()
template<GUM_Numeric GUM_SCALAR>
Returns the end of the BIF file.
◆ _heading_()
template<GUM_Numeric GUM_SCALAR>
Returns the header of the BIF file.
◆ _variableBloc_()
template<GUM_Numeric GUM_SCALAR>
Returns a bloc defining a variable in the BIF format.
◆ _variableDefinition_()
template<GUM_Numeric GUM_SCALAR>
Returns a bloc defining a variable's table (if she has) in the BIF format.
◆ write() [1/3]
template<GUM_Numeric GUM_SCALAR>
Writes an influence diagram in the given output stream.
- Parameters
-
| output | The output stream. |
| infdiag | The influence diagram written to the stream. |
- Exceptions
-
| IOError | Raised if an I/O error occurs. |
Implements gum::IDWriter< GUM_SCALAR >.
◆ write() [2/3]
template<GUM_Numeric 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 written to the file. |
- Exceptions
-
| IOError | Raised if an I/O error occurs. |
Implements gum::IDWriter< GUM_SCALAR >.
◆ write() [3/3]
template<GUM_Numeric GUM_SCALAR>
Writes an Influence Diagram in the file referenced by filePath, updating metadata (software, creation, lastModification) before writing.
If the file doesn't exists, it is created. If the file exists, it's content will be erased.
Default implementation delegates to the const overload.
- Parameters
-
| filePath | The path to the file used to write the Influence Diagram. |
| infdiag | The Influence Diagram written to the file (non-const to allow metadata update). |
- Exceptions
-
| IOError | Raised if an I/O error occurs. |
Reimplemented in gum::GumIDWriter< GUM_SCALAR >.
The documentation for this class was generated from the following file: