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,
template <
typename >
class IApproximationPolicy = ExactPolicy >
58 class GeneralizedCNFWriter:
public CNFWriter< GUM_SCALAR, IApproximationPolicy > {
66 GeneralizedCNFWriter();
71 ~GeneralizedCNFWriter() final;
82 void write(std::ostream& output,
const IBayesNet< GUM_SCALAR >& bn) final;
92 void write(
const std::string& filePath,
const IBayesNet< GUM_SCALAR >& bn) final;
96 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 97 extern template class GeneralizedCNFWriter<
double >;
102 #include <agrum/BN/io/cnf/GeneralizedCNFWriter_tpl.h>