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,
const IBayesNet< GUM_SCALAR >& bn) final;
99 std::string _preambule_(
const IBayesNet< GUM_SCALAR >& bn);
101 std::string _cptBloc_(
const IBayesNet< GUM_SCALAR >& bn, NodeId node);
105 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 106 extern template class UAIBNWriter<
double >;
111 #include <agrum/BN/io/UAI/UAIBNWriter_tpl.h>