31 #ifndef UAI_BN_WRITER_H 32 #define UAI_BN_WRITER_H 40 #include <agrum/BN/io/BNWriter.h> 41 #include <agrum/agrum.h> 55 template <
typename GUM_SCALAR >
56 class UAIBNWriter:
public BNWriter< GUM_SCALAR > {
82 void write(std::ostream& output,
const IBayesNet< GUM_SCALAR >& bn) final;
93 void write(
const std::string& filePath,
94 const IBayesNet< GUM_SCALAR >& bn) final;
100 std::string preambule__(
const IBayesNet< GUM_SCALAR >& bn);
102 std::string cptBloc__(
const IBayesNet< GUM_SCALAR >& bn, NodeId node);
106 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 107 extern template class UAIBNWriter<
double >;
112 #include <agrum/BN/io/UAI/UAIBNWriter_tpl.h>