42#ifndef GUM_DSL_READER_H
43#define GUM_DSL_READER_H
52#ifndef DOXYGEN_SHOULD_SKIP_THIS
55# include <agrum/BN/io/DSL/cocoR/Parser.h>
71 template < GUM_Numeric GUM_SCALAR >
83 DSLReader(BayesNet< GUM_SCALAR >* bn, std::string_view filename);
152#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
Definition of abstract classes for file input manipulation of Bayesian networks.
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.
Class representing a Bayesian network.
const std::string & streamName() const
name of readen file
DSL::Scanner & scanner()
Direct access to DSL scanner (mandatory for listener connection).
bool errIsError(Idx i)
type of ith error or warning
Idx errCol(Idx i)
col of ith error or warning
DSLReader(BayesNet< GUM_SCALAR > *bn, std::string_view filename)
Constructor A reader is defined for reading a defined file.
bool trace() const
accessor to trace function (just write the number of parser line)
void showElegantErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings with contents
void showElegantErrors(std::ostream &o=std::cerr)
send on std::cerr the list of errorswith contents
void showErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings
Size errors()
publishing Errors API
Size proceed() final
parse.
~DSLReader() override
Default destructor.
Idx errLine(Idx i)
line of ith error or warning
BayesNet< GUM_SCALAR > * _bn_
BayesNetFactory< GUM_SCALAR > * _factory_
std::string errMsg(Idx i)
message of ith error or warning
void showErrorCounts(std::ostream &o=std::cerr)
send on std::cerr the number of errors and the number of warnings
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