63#ifndef DOXYGEN_SHOULD_SKIP_THIS
65# undef _COCO_PARSER_H_
66# undef _COCO_SCANNER_H_
67# include <agrum/BN/io/UAI/cocoR/Parser.h>
83 template <
typename GUM_SCALAR >
95 UAIBNReader(BayesNet< GUM_SCALAR >* bn,
const std::string& filename);
165 const
std::
string& s);
171#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
Definition of abstract classes for file input manipulation of Bayesian networks.
Headers of the BayesNetFactory class.
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.
Class representing a Bayesian network.
BayesNetFactory< GUM_SCALAR > * _factory_
bool errIsError(Idx i)
type of ith error or warning
Size errors()
publishing Errors API
void _addFatalError_(Idx lig, Idx col, const std::string &s)
void showErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings
void _addError_(Idx lig, Idx col, const std::string &s)
Idx errLine(Idx i)
line of ith error or warning
const std::string & streamName() const
name of readen file
UAIBNReader(BayesNet< GUM_SCALAR > *bn, const std::string &filename)
Constructor A reader is defined for reading a defined file.
void showErrorCounts(std::ostream &o=std::cerr)
send on std::cerr the number of errors and the number of warnings
Idx errCol(Idx i)
col of ith error or warning
UAIBN::Scanner & scanner()
Direct access to DSL scanner (mandatory for listener connection).
void buildFromQuartets(std::vector< std::tuple< float, int, int, int > > quartets)
void showElegantErrors(std::ostream &o=std::cerr)
send on std::cerr the list of errorswith contents
Size proceed() final
parse.
std::string errMsg(Idx i)
message of ith error or warning
void showElegantErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings with contents
bool trace() const
accessor to trace function (just write the number of parser line)
~UAIBNReader()
Default destructor.
void _addWarning_(Idx lig, Idx col, const std::string &s)
BayesNet< GUM_SCALAR > * _bn_
UAIBN::Scanner * _scanner_
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