25 #include <agrum/BN/BayesNet.h> 26 #include <agrum/BN/io/BNReader.h> 27 #include <agrum/agrum.h> 31 #ifndef DOXYGEN_SHOULD_SKIP_THIS 33 # undef _COCO_PARSER_H_ 34 # undef _COCO_SCANNER_H_ 35 # include <agrum/BN/io/net/cocoR/Parser.h> 51 template <
typename GUM_SCALAR >
52 class NetReader:
public BNReader< GUM_SCALAR > {
63 NetReader(BayesNet< GUM_SCALAR >* bn,
const std::string& filename);
72 net::Scanner& scanner();
75 const std::string& streamName()
const;
99 bool errIsError(Idx i);
101 std::string errMsg(Idx i);
104 void showElegantErrors(std::ostream& o = std::cerr);
107 void showElegantErrorsAndWarnings(std::ostream& o = std::cerr);
110 void showErrorsAndWarnings(std::ostream& o = std::cerr);
113 void showErrorCounts(std::ostream& o = std::cerr);
117 BayesNet< GUM_SCALAR >* _bn_;
118 BayesNetFactory< GUM_SCALAR >* _factory_;
119 net::Scanner* _scanner_;
120 net::Parser* _parser_;
122 std::string _streamName_;
123 bool _traceScanning_;
132 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 133 extern template class NetReader<
double >;