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,
const IBayesNet< GUM_SCALAR >& bn) final;
99 std::string _header_(
const IBayesNet< GUM_SCALAR >& bn);
102 std::string _variableBloc_(
const DiscreteVariable& var);
105 std::string _variableCPT_(
const Potential< GUM_SCALAR >& cpt);
111 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 112 extern template class NetWriter<
double >;
117 #include <agrum/BN/io/net/netWriter_tpl.h>