29 #ifndef DOXYGEN_SHOULD_SKIP_THIS 32 # include <agrum/BN/io/DSL/cocoR/Parser.h> 33 #endif // DOXYGEN_SHOULD_SKIP_THIS 48 template <
typename GUM_SCALAR >
129 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 137 #endif // DSLREADER_H Class representing a Bayesian Network.
Size errors()
publishing Errors API
void showErrorCounts(std::ostream &o=std::cerr)
send on std::cerr the number of errors and the number of warnings
bool errIsError(Idx i)
type of ith error or warning
Class representing Bayesian networks.
gum is the global namespace for all aGrUM entities
Idx errLine(Idx i)
line of ith error or warning
Pure virtual class for reading a BN from a file.
Pure virtual class for reading a BN from a file.
Definition of abstract classes for file input manipulation of Bayesian Networks.
const std::string & streamName() const
name of readen file
std::string errMsg(Idx i)
message of ith error or warning
bool trace() const
accessor to trace function (just write the number of parser line)
~DSLReader() final
Default destructor.
void showErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings
DSL::Scanner & scanner()
Direct access to DSL scanner (mandatory for listener connection)
Idx errCol(Idx i)
col of ith error or warning
Size proceed() final
parse.
void showElegantErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings with contents
Size Idx
Type for indexes.
BayesNet< GUM_SCALAR > * __bn
std::size_t Size
In aGrUM, hashed values are unsigned long int.
DSLReader(BayesNet< GUM_SCALAR > *bn, const std::string &filename)
Constructor A reader is defined for reading a defined file.
void showElegantErrors(std::ostream &o=std::cerr)
send on std::cerr the list of errorswith contents
A factory class to ease BayesNet construction.
BayesNetFactory< GUM_SCALAR > * __factory