32 #ifndef GUM_CNF_GEN_WRITER_H 33 #define GUM_CNF_GEN_WRITER_H 40 #include <agrum/BN/io/cnf/CNFWriter.h> 41 #include <agrum/agrum.h> 42 #include <agrum/tools/core/approximations/approximationPolicy.h> 43 #include <agrum/tools/core/hashTable.h> 57 template <
typename GUM_SCALAR,
58 template <
typename >
class IApproximationPolicy = ExactPolicy >
59 class GeneralizedCNFWriter:
60 public CNFWriter< GUM_SCALAR, IApproximationPolicy > {
68 GeneralizedCNFWriter();
73 ~GeneralizedCNFWriter() final;
84 void write(std::ostream& output,
const IBayesNet< GUM_SCALAR >& bn) final;
94 void write(
const std::string& filePath,
95 const IBayesNet< GUM_SCALAR >& bn) final;
99 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 100 extern template class GeneralizedCNFWriter<
double >;
105 #include <agrum/BN/io/cnf/GeneralizedCNFWriter_tpl.h>