32 #ifndef GUM_NET_WRITER_H 33 #define GUM_NET_WRITER_H 40 #include <agrum/BN/io/BNWriter.h> 42 #include <agrum/agrum.h> 58 template <
typename GUM_SCALAR >
59 class NetWriter:
public BNWriter< GUM_SCALAR > {
85 void write(std::ostream& output,
const IBayesNet< GUM_SCALAR >& bn) final;
95 void write(
const std::string& filePath,
96 const IBayesNet< GUM_SCALAR >& bn) final;
100 std::string header__(
const IBayesNet< GUM_SCALAR >& bn);
103 std::string variableBloc__(
const DiscreteVariable& var);
106 std::string variableCPT__(
const Potential< GUM_SCALAR >& cpt);
112 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 113 extern template class NetWriter<
double >;
118 #include <agrum/BN/io/net/netWriter_tpl.h>