91#ifndef GUM_BIF_XML_BN_READER_H
92#define GUM_BIF_XML_BN_READER_H
94#define TIXML_USE_TICPP
120 template <
typename GUM_SCALAR >
174#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
Definition of abstract classes for file input manipulation of Bayesian networks.
void _fillingBN_(ticpp::Element *parentNetwork)
fill the diagram
std::string _filePath_
the path to the xml filePath
BIFXMLBNReader(BayesNet< GUM_SCALAR > *bn, const std::string &filePath)
Constructor A reader is created to reading a defined file.
gum::Signaler2< int, std::string > onProceed
Signaler used to indicates how many percent of the Xml files have been parsed yet.
BayesNet< GUM_SCALAR > * _bn_
An handle to the bayes net in which will be load the content of the xml filePath.
~BIFXMLBNReader()
Default destructor.
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.
BNReader(BayesNet< GUM_SCALAR > *bn, const std::string &filename)
Constructor A reader is defined for reading a defined file.
Class representing a Bayesian network.
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.