93#ifndef DOXYGEN_SHOULD_SKIP_THIS
95# include <agrum/BN/io/BIF/cocoR/Parser.h>
142 template <
typename GUM_SCALAR >
145 BIFReader(BayesNet< GUM_SCALAR >* bn,
const std::string& 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_
bool errIsError(Idx i)
type of ith error or warning
void showElegantErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings
BIF::Scanner & scanner()
Direct access to BIF scanner (mandatory for listener connection).
BayesNetFactory< GUM_SCALAR > * _factory_
Idx errLine(Idx i)
line of ith error or warning
std::string errMsg(Idx i)
message of ith error or warning
Size errors()
publishing Errors API
Idx errCol(Idx i)
col of ith error or warning
const std::string & streamName() const
name of read file
void showErrorCounts(std::ostream &o=std::cerr)
send on std::cerr the number of errors and the number of warnings
bool trace() const
accessor to trace function (just write the number of parser line)
void showElegantErrors(std::ostream &o=std::cerr)
send on std::cerr the list of errors
BIFReader(BayesNet< GUM_SCALAR > *bn, const std::string &filename)
BNReader(BayesNet< GUM_SCALAR > *bn, const std::string &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