29 #ifndef GUM_BIF_XML_BN_WRITER_H 30 #define GUM_BIF_XML_BN_WRITER_H 32 #define TIXML_USE_TICPP 56 template <
typename GUM_SCALAR >
94 void write(
const std::string& filePath,
122 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 129 #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.
gum is the global namespace for all aGrUM entities
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>
Definition of abstract classes for file output manipulation of Bayesian Networks. ...
Pure virtual class for writting a BN to a file.
Size NodeId
Type for node ids.