42#ifndef GUM_NET_READER_H
43#define GUM_NET_READER_H
52#ifndef DOXYGEN_SHOULD_SKIP_THIS
54# undef _COCO_PARSER_H_
55# undef _COCO_SCANNER_H_
56# include <agrum/BN/io/net/cocoR/Parser.h>
72 template < GUM_Numeric GUM_SCALAR >
84 NetReader(BayesNet< GUM_SCALAR >* bn, std::string_view filename);
153#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
bool trace() const
accessor to trace function (just write the number of parser line)
bool errIsError(Idx i)
type of ith error or warning
Size errors()
publishing Errors API
Size proceed() final
parse.
Idx errLine(Idx i)
line 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::string errMsg(Idx i)
message of ith error or warning
void showErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings
Idx errCol(Idx i)
col of ith error or warning
~NetReader() override
Default destructor.
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
BayesNetFactory< GUM_SCALAR > * _factory_
net::Scanner & scanner()
Direct access to DSL scanner (mandatory for listener connection).
NetReader(BayesNet< GUM_SCALAR > *bn, std::string_view filename)
Constructor A reader is defined for reading a defined file.
BayesNet< GUM_SCALAR > * _bn_
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