![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Definition of templatized reader of BIF files for Bayesian networks. More...
#include <agrum/BN/io/BIF/BIFReader.h>
Public Member Functions | |
| BIFReader (BayesNet< GUM_SCALAR > *bn, const std::string &filename) | |
| ~BIFReader () | |
| BIF::Scanner & | scanner () |
| Direct access to BIF scanner (mandatory for listener connection). | |
| const std::string & | streamName () const |
| name of read file | |
| bool | trace () const |
| accessor to trace function (just write the number of parser line) | |
| void | trace (bool b) |
| Size | proceed () |
| parse. | |
| Size | errors () |
| publishing Errors API | |
| Size | warnings () |
| Idx | errLine (Idx i) |
| line of ith error or warning | |
| Idx | errCol (Idx i) |
| col of ith error or warning | |
| bool | errIsError (Idx i) |
| type of ith error or warning | |
| std::string | errMsg (Idx i) |
| message of ith error or warning | |
| void | showElegantErrors (std::ostream &o=std::cerr) |
| send on std::cerr the list of errors | |
| void | showElegantErrorsAndWarnings (std::ostream &o=std::cerr) |
| send on std::cerr the list of errors or warnings | |
| void | showErrorCounts (std::ostream &o=std::cerr) |
| send on std::cerr the number of errors and the number of warnings | |
Private Attributes | |
| BayesNet< GUM_SCALAR > * | _bn_ |
| BayesNetFactory< GUM_SCALAR > * | _factory_ |
| BIF::Scanner * | _scanner_ |
| BIF::Parser * | _parser_ |
| std::string | _streamName_ |
| bool | _traceScanning_ |
| bool | _parseDone_ |
| bool | _ioerror_ |
Definition of templatized reader of BIF files for Bayesian networks.
how to use it :
Definition at line 143 of file BIFReader.h.
| gum::BIFReader< GUM_SCALAR >::BIFReader | ( | BayesNet< GUM_SCALAR > * | bn, |
| const std::string & | filename ) |
| gum::BIFReader< GUM_SCALAR >::~BIFReader | ( | ) |
| Idx gum::BIFReader< GUM_SCALAR >::errCol | ( | Idx | i | ) |
col of ith error or warning
| bool gum::BIFReader< GUM_SCALAR >::errIsError | ( | Idx | i | ) |
type of ith error or warning
| Idx gum::BIFReader< GUM_SCALAR >::errLine | ( | Idx | i | ) |
line of ith error or warning
| std::string gum::BIFReader< GUM_SCALAR >::errMsg | ( | Idx | i | ) |
message of ith error or warning
| Size gum::BIFReader< GUM_SCALAR >::errors | ( | ) |
publishing Errors API
| Size gum::BIFReader< GUM_SCALAR >::proceed | ( | ) |
parse.
| IOError | if file not exists |
Referenced by gum::credal::CredalNet< GUM_SCALAR >::_initCNNets_().
| BIF::Scanner & gum::BIFReader< GUM_SCALAR >::scanner | ( | ) |
Direct access to BIF scanner (mandatory for listener connection).
| IOError | if file not exists |
| void gum::BIFReader< GUM_SCALAR >::showElegantErrors | ( | std::ostream & | o = std::cerr | ) |
send on std::cerr the list of errors
| void gum::BIFReader< GUM_SCALAR >::showElegantErrorsAndWarnings | ( | std::ostream & | o = std::cerr | ) |
send on std::cerr the list of errors or warnings
| void gum::BIFReader< GUM_SCALAR >::showErrorCounts | ( | std::ostream & | o = std::cerr | ) |
send on std::cerr the number of errors and the number of warnings
| const std::string & gum::BIFReader< GUM_SCALAR >::streamName | ( | ) | const |
name of read file
| bool gum::BIFReader< GUM_SCALAR >::trace | ( | ) | const |
accessor to trace function (just write the number of parser line)
| void gum::BIFReader< GUM_SCALAR >::trace | ( | bool | b | ) |
| Size gum::BIFReader< GUM_SCALAR >::warnings | ( | ) |
|
private |
Definition at line 193 of file BIFReader.h.
|
private |
Definition at line 194 of file BIFReader.h.
|
private |
Definition at line 204 of file BIFReader.h.
|
private |
Definition at line 200 of file BIFReader.h.
|
private |
Definition at line 196 of file BIFReader.h.
|
private |
Definition at line 195 of file BIFReader.h.
|
private |
Definition at line 198 of file BIFReader.h.
|
private |
Definition at line 199 of file BIFReader.h.