30 #ifndef GUM_NET_WRITER_H 31 #define GUM_NET_WRITER_H 56 template <
typename GUM_SCALAR >
93 void write(
const std::string& filePath,
110 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 117 #endif // GUM_NET_WRITER_H aGrUM's Potential is a multi-dimensional array with tensor operators.
NetWriter()
Default constructor.
Base class for discrete random variable.
Class representing the minimal interface for Bayesian Network.
gum is the global namespace for all aGrUM entities
Writes a IBayesNet in the BN format.
std::string __header(const IBayesNet< GUM_SCALAR > &bn)
void write(std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) final
Writes a Bayesian Network in the output stream using the BN format.
~NetWriter() final
Destructor.
std::string __variableCPT(const Potential< GUM_SCALAR > &cpt)
std::string __variableBloc(const DiscreteVariable &var)
Definition of abstract classes for file output manipulation of Bayesian Networks. ...
Pure virtual class for writting a BN to a file.