71 #include <agrum/BN/BayesNetFactory.h> 72 #include <agrum/BN/IBayesNet.h> 73 #include <agrum/BN/io/BNReader.h> 75 #ifndef DOXYGEN_SHOULD_SKIP_THIS 77 # include <agrum/BN/io/BIF/cocoR/Parser.h> 124 template <
typename GUM_SCALAR >
125 class BIFReader:
public BNReader< GUM_SCALAR > {
127 BIFReader(BayesNet< GUM_SCALAR >* bn,
const std::string& filename);
133 BIF::Scanner& scanner();
136 const std::string& streamName()
const;
145 Size proceed() final;
160 bool errIsError(Idx i);
162 std::string errMsg(Idx i);
165 void showElegantErrors(std::ostream& o = std::cerr);
168 void showElegantErrorsAndWarnings(std::ostream& o = std::cerr);
171 void showErrorCounts(std::ostream& o = std::cerr);
175 BayesNet< GUM_SCALAR >* _bn_;
176 BayesNetFactory< GUM_SCALAR >* _factory_;
177 BIF::Scanner* _scanner_;
178 BIF::Parser* _parser_;
180 std::string _streamName_;
181 bool _traceScanning_;
190 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 191 extern template class BIFReader<
double >;
196 #include <agrum/BN/io/BIF/BIFReader_tpl.h>