33 #ifndef DOXYGEN_SHOULD_SKIP_THIS 37 template <
typename GUM_SCALAR >
39 const std::string& filename) :
40 BNReader< GUM_SCALAR >(bn, filename) {
53 __parser->setFactory((IBayesNetFactory*)
__factory);
54 }
catch (IOError&) { __ioerror =
true; }
57 template <
typename GUM_SCALAR >
71 template <
typename GUM_SCALAR >
78 template <
typename GUM_SCALAR >
83 template <
typename GUM_SCALAR >
88 template <
typename GUM_SCALAR >
94 template <
typename GUM_SCALAR >
104 return 1 + __parser->errors().error_count;
108 return (__parser->errors().error_count);
113 template <
typename GUM_SCALAR >
116 return __parser->errors().error(i).line;
118 GUM_ERROR(OperationNotAllowed,
"BIF file not parsed yet");
122 template <
typename GUM_SCALAR >
125 return __parser->errors().error(i).column;
127 GUM_ERROR(OperationNotAllowed,
"BIF file not parsed yet");
131 template <
typename GUM_SCALAR >
134 return __parser->errors().error(i).is_error;
136 GUM_ERROR(OperationNotAllowed,
"BIF file not parsed yet");
140 template <
typename GUM_SCALAR >
143 return __parser->errors().error(i).msg;
145 GUM_ERROR(OperationNotAllowed,
"BIF file not parsed yet");
149 template <
typename GUM_SCALAR >
152 __parser->errors().elegantErrors(o);
154 GUM_ERROR(OperationNotAllowed,
"BIF file not parsed yet");
158 template <
typename GUM_SCALAR >
162 __parser->errors().elegantErrorsAndWarnings(o);
164 GUM_ERROR(OperationNotAllowed,
"BIF file not parsed yet");
168 template <
typename GUM_SCALAR >
171 __parser->errors().syntheticResults(o);
173 GUM_ERROR(OperationNotAllowed,
"BIF file not parsed yet");
177 template <
typename GUM_SCALAR >
182 template <
typename GUM_SCALAR >
190 #endif // DOXYGEN_SHOULD_SKIP_THIS BayesNet< GUM_SCALAR > * __bn
const std::string & streamName() const
name of readen file
bool errIsError(Idx i)
type of ith error or warning
std::string errMsg(Idx i)
message of ith error or warning
BayesNetFactory< GUM_SCALAR > * __factory
void showErrorCounts(std::ostream &o=std::cerr)
send on std::cerr the number of errors and the number of warnings
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void showElegantErrors(std::ostream &o=std::cerr)
send on std::cerr the list of errors
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Size proceed() final
parse.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Idx errCol(Idx i)
col of ith error or warning
Base class for all aGrUM's exceptions.
bool trace() const
accessor to trace function (just write the number of parser line)
Size errors()
publishing Errors API
BIF::Scanner & scanner()
Direct access to BIF scanner (mandatory for listener connection)
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Idx errLine(Idx i)
line of ith error or warning
#define GUM_ERROR(type, msg)
BIFReader(BayesNet< GUM_SCALAR > *bn, const std::string &filename)
void showElegantErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings