91#ifndef GUM_BIF_XML_BN_READER_H
92#define GUM_BIF_XML_BN_READER_H
94#define TIXML_USE_TICPP
122 template < GUM_Numeric GUM_SCALAR >
194#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
195 extern template class BIFXMLBNReader< double >;
Definition of abstract classes for file input manipulation of Bayesian networks.
std::string _xmlContent_
XML content when constructed from a stream (empty otherwise).
BIFXMLBNReader(BayesNet< GUM_SCALAR > *bn, std::istream &stream)
Constructor from an input stream.
void _fillingBN_(ticpp::Element *parentNetwork)
fill the diagram
bool _isFromStream_
True when the XML was provided via a stream rather than a file path.
std::string _filePath_
the path to the xml filePath
gum::Signaler< int, std::string > onProceed
Signaler used to indicates how many percent of the Xml files have been parsed yet.
BIFXMLBNReader(BayesNet< GUM_SCALAR > *bn, std::string_view filePath)
Constructor A reader is created to reading a defined file.
BayesNet< GUM_SCALAR > * _bn_
An handle to the bayes net in which will be load the content of the xml filePath.
void _parsingVariables_(ticpp::Element *parentNetwork)
Parsing xml element containing data on variables.
Size proceed() final
Reads the bayes net from the file referenced by filePath given at the creation of class.
~BIFXMLBNReader() override
Default destructor.
BNReader(BayesNet< GUM_SCALAR > *bn, std::string_view filename)
Constructor A reader is defined for reading a defined file.
Class representing a Bayesian network.
Variadic template signaler for any number of arguments.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Base class for labelized discrete random variables.
gum is the global namespace for all aGrUM entities
ticpp is a TinyXML wrapper that uses a lot more C++ ideals.
ticpp is a TinyXML wrapper that uses a lot more C++ ideals.