![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Pure virtual class for exporting an ID. More...
#include <IDWriter.h>
Public Member Functions | |
IDWriter () | |
Default constructor. More... | |
virtual | ~IDWriter () |
Default destructor. More... | |
virtual void | write (std::ostream &output, const InfluenceDiagram< GUM_SCALAR > &infdiag)=0 |
Writes an influence diagram in the given ouput stream. More... | |
virtual void | write (std::string filePath, const InfluenceDiagram< GUM_SCALAR > &infdiag)=0 |
Writes an Influence Diagram in the file referenced by filePath. More... | |
Pure virtual class for exporting an ID.
All classes used to write an influence diagram in a stream or a file must inherit from this class
Definition at line 51 of file IDWriter.h.
gum::IDWriter< GUM_SCALAR >::IDWriter | ( | ) |
Default constructor.
|
virtual |
Default destructor.
|
pure virtual |
Writes an influence diagram in the given ouput stream.
output | The output stream. |
infdiag | The influence diagram writen in the stream. |
IOError | Raised if an I/O error occurs. |
Implemented in gum::BIFXMLIDWriter< GUM_SCALAR >.
|
pure virtual |
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.
filePath | The path to the file used to write the Influence Diagram. |
infdiag | The Influence Diagram writen in the file. |
IOError | Raised if an I/O error occurs. |
Implemented in gum::BIFXMLIDWriter< GUM_SCALAR >.