![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Pure virtual class for writting a MN to a file. More...
#include <agrum/MN/io/MNWriter.h>
Public Member Functions | |
MNWriter () | |
Default constructor. More... | |
virtual | ~MNWriter () |
Default destructor. More... | |
virtual void | write (std::ostream &output, const IMarkovNet< GUM_SCALAR > &MN)=0 |
Writes a Markov Network in the ouput stream. More... | |
virtual void | write (const std::string &filePath, const IMarkovNet< GUM_SCALAR > &MN)=0 |
Writes a Markov Network in the file referenced by filePath. More... | |
Pure virtual class for writting a MN to a file.
Every class used to write the content of a Markov Network in a stream, or a file must be a subclass of MNWriter.
Definition at line 56 of file MNWriter.h.
gum::MNWriter< GUM_SCALAR >::MNWriter | ( | ) |
Default constructor.
|
virtual |
Default destructor.
|
pure virtual |
Writes a Markov Network in the ouput stream.
output | The output stream. |
MN | The Markov Network writed in output. |
IOError | Raised if an I/O error occurs. |
Implemented in gum::UAIMNWriter< GUM_SCALAR >.
|
pure virtual |
Writes a Markov 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.
filePath | The path to the file used to write the Markov Network. |
MN | The Markov Network writen in the file. |
IOError | Raised if an I/O error occurs. |
Implemented in gum::UAIMNWriter< GUM_SCALAR >.