84#ifndef GUM_BIF_READER_H
85#define GUM_BIF_READER_H
93#ifndef DOXYGEN_SHOULD_SKIP_THIS
95# include <agrum/BN/io/BIF/cocoR/Parser.h>
142 template < GUM_Numeric GUM_SCALAR >
145 BIFReader(BayesNet< GUM_SCALAR >* bn, std::string_view filename);
208#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
Definition of templatized reader of BIF files for Bayesian networks.
Definition of abstract classes for file input manipulation of Bayesian networks.
Definition of templatized reader of BIF files for Bayesian networks.
BayesNet< GUM_SCALAR > * _bn_
Idx errCol(Idx i) const
col of ith error or warning
Size errors() const
publishing Errors API
void showErrorCounts(std::ostream &o=std::cerr) const
send on std::cerr the number of errors and the number of warnings
BIF::Scanner & scanner()
Direct access to BIF scanner (mandatory for listener connection).
BIFReader(BayesNet< GUM_SCALAR > *bn, std::string_view filename)
BayesNetFactory< GUM_SCALAR > * _factory_
Idx errLine(Idx i) const
line of ith error or warning
void showElegantErrors(std::ostream &o=std::cerr) const
send on std::cerr the list of errors
std::string errMsg(Idx i) const
message of ith error or warning
void showElegantErrorsAndWarnings(std::ostream &o=std::cerr) const
send on std::cerr the list of errors or warnings
const std::string & streamName() const
name of read file
Size proceed() override
parse.
bool errIsError(Idx i) const
type of ith error or warning
bool trace() const
accessor to trace function (just write the number of parser line)
BNReader(BayesNet< GUM_SCALAR > *bn, std::string_view filename)
Constructor A reader is defined for reading a defined file.
A factory class to ease BayesNet construction.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size Idx
Type for indexes.
gum is the global namespace for all aGrUM entities