52#ifndef GUM_BN_WRITER_H
53#define GUM_BN_WRITER_H
76 template <
typename GUM_SCALAR >
167#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
Templates implementation of bns/io/gumBNWriter.h classes.
Class representing the minimal interface for Bayesian network with no numerical data.
BNWriter(BNWriter &&) noexcept=default
void _validCharInNamesCheck(const IBayesNet< GUM_SCALAR > &bn)
}
std::string _onlyValidCharsInName(const std::string &name)
}
void write(std::ostream &output, const IBayesNet< GUM_SCALAR > &bn)
Writes a Bayesian network in the output stream.
BNWriter()
Default constructor.
bool _allowModification_
}
GUM_NODISCARD bool isModificationAllowed() const
virtual ~BNWriter()
Default destructor.
virtual void _doWrite(std::ostream &output, const IBayesNet< GUM_SCALAR > &bn)=0
Writes a Bayesian network in the output stream.
void setAllowModification(bool am)
virtual void _syntacticalCheck(const IBayesNet< GUM_SCALAR > &bn)
Check whether the BN is syntactically correct for BIF format.
std::string _buildNameWithOnlyValidChars(const std::string &name)
}
BNWriter(const BNWriter &)=default
Class representing the minimal interface for Bayesian network with no numerical data.
gum is the global namespace for all aGrUM entities