![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
<agrum/BN/io/XDSL/XDSLBNReader.h> More...
#include <XDSLBNReader.h>
Public Member Functions | |
| XDSLBNReader (BayesNet< GUM_SCALAR > *bn, const std::string &filePath) | |
| Constructor A reader is created to reading a defined file. | |
| ~XDSLBNReader () | |
| Default destructor. | |
| Size | proceed () final |
| Reads the bayes net from the file referenced by filePath given at the creation of class. | |
Public Attributes | |
| gum::Signaler2< int, std::string > | onProceed |
| Signaler used to indicates how many percent of the Xml files have been parsed yet. | |
Private Member Functions | |
| Size | _parsingCpts_ (ticpp::Element *cptsNetwork) |
| Parsing xml element containing data on variables. | |
| void | _parsingExtension_ (ticpp::Element *nodesNetwork) |
| Parsing xml element containing extentions on variables. | |
Private Attributes | |
| BayesNet< GUM_SCALAR > * | _bn_ |
| An handle to the bayes net in which will be load the content of the xml filePath. | |
| std::string | _filePath_ |
| the path to the xml filePath | |
<agrum/BN/io/XDSL/XDSLBNReader.h>
Read an bayes net from an XML file with BIF format.
This class import an bayes net from an XML files using DSL format for information about this format.
Definition at line 119 of file XDSLBNReader.h.
| gum::XDSLBNReader< GUM_SCALAR >::XDSLBNReader | ( | BayesNet< GUM_SCALAR > * | bn, |
| const std::string & | filePath ) |
Constructor A reader is created to reading a defined file.
Note that an BN as to be created before and given in parameter.
| gum::XDSLBNReader< GUM_SCALAR >::~XDSLBNReader | ( | ) |
Default destructor.
|
private |
Parsing xml element containing data on variables.
References _parsingCpts_().
Referenced by _parsingCpts_().
|
private |
Parsing xml element containing extentions on variables.
References _parsingExtension_().
Referenced by _parsingExtension_().
|
final |
Reads the bayes net from the file referenced by filePath given at the creation of class.
|
private |
An handle to the bayes net in which will be load the content of the xml filePath.
Definition at line 165 of file XDSLBNReader.h.
|
private |
the path to the xml filePath
Definition at line 170 of file XDSLBNReader.h.
| gum::Signaler2< int, std::string > gum::XDSLBNReader< GUM_SCALAR >::onProceed |
Signaler used to indicates how many percent of the Xml files have been parsed yet.
Definition at line 146 of file XDSLBNReader.h.