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 >;