32 #ifndef GUM_BIF_XML_BN_WRITER_H 33 #define GUM_BIF_XML_BN_WRITER_H 35 #define TIXML_USE_TICPP 59 template <
typename GUM_SCALAR >
97 void write(
const std::string& filePath,
125 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 132 #endif // GUM_BIF_XML_BN_WRITER_H BIFXMLBNWriter()
Default constructor.
std::string __heading(const IBayesNet< GUM_SCALAR > &bn)
Returns the header of the BIF file.
Base class for discrete random variable.
Class representing the minimal interface for Bayesian Network.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
std::string __variableBloc(const DiscreteVariable &var)
Returns a bloc defining a variable in the BIF format.
std::string __documentend()
Returns the end of the BIF file.
std::string __variableDefinition(const NodeId &varNodeId, const IBayesNet< GUM_SCALAR > &bn)
Returns a bloc defining a variable's table (if she has) in the BIF format.
void write(std::ostream &output, const IBayesNet< GUM_SCALAR > &bn) final
Writes an bayes net in the given ouput stream.
~BIFXMLBNWriter() final
Destructor.
<agrum/BN/io/BIFXML/BIFXMLBNWriter.h>
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Pure virtual class for writting a BN to a file.
Size NodeId
Type for node ids.