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