![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Pure virtual class for reading a BN from a file. More...
#include <agrum/BN/io/BNReader.h>
Public Member Functions | |
BNReader (BayesNet< GUM_SCALAR > *bn, const std::string &filename) | |
Constructor A reader is defined for reading a defined file. More... | |
virtual | ~BNReader () |
Default destructor. More... | |
virtual Size | proceed ()=0 |
Reads a Bayesian network from the file referenced by filePath into` parameter bayesNet. More... | |
Pure virtual class for reading a BN from a file.
Every class used to read the content of a Bayesian network from a stream, or a file must be a subclass of BNReader.
Definition at line 54 of file BNReader.h.
gum::BNReader< GUM_SCALAR >::BNReader | ( | BayesNet< GUM_SCALAR > * | bn, |
const std::string & | filename | ||
) |
Constructor A reader is defined for reading a defined file.
Hence the 2 args of the constructor. Note that the BN has to be built outside the reader. There is no delegation to create/destroy the BN from inside the reader.
|
virtual |
Default destructor.
|
pure virtual |
Reads a Bayesian network from the file referenced by filePath into` parameter bayesNet.
Implemented in gum::BIFReader< GUM_SCALAR >, gum::BIFXMLBNReader< GUM_SCALAR >, gum::UAIBNReader< GUM_SCALAR >, gum::NetReader< GUM_SCALAR >, gum::DSLReader< GUM_SCALAR >, and gum::O3prmBNReader< GUM_SCALAR >.