91#ifndef GUM_XDSL_BN_READER_H
92#define GUM_XDSL_BN_READER_H
94#define TIXML_USE_TICPP
106#include <string_view>
120 template < GUM_Numeric GUM_SCALAR >
176#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
Definition of abstract classes for file input manipulation of Bayesian networks.
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.
void _parsingExtension_(ticpp::Element *nodesNetwork)
Parsing xml element containing extentions on variables.
std::string _filePath_
the path to the xml filePath
XDSLBNReader(BayesNet< GUM_SCALAR > *bn, std::string_view filePath)
Constructor A reader is created to reading a defined file.
Size _parsingCpts_(ticpp::Element *cptsNetwork)
Parsing xml element containing data on variables.
BayesNet< GUM_SCALAR > * _bn_
An handle to the bayes net in which will be load the content of the xml filePath.
Size proceed() final
Reads the bayes net from the file referenced by filePath given at the creation of class.
~XDSLBNReader() override
Default destructor.
gum::Signaler< int, std::string > onProceed
Signaler used to indicates how many percent of the Xml files have been parsed yet.
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.