aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
gum::BIFXMLIDReader< GUM_SCALAR > Class Template Reference

Read an influence diagram from an XML file with BIF format. More...

#include <BIFXMLIDReader.h>

+ Inheritance diagram for gum::BIFXMLIDReader< GUM_SCALAR >:
+ Collaboration diagram for gum::BIFXMLIDReader< GUM_SCALAR >:

Public Attributes

gum::Signaler2< int, std::string > onProceed
 Signaler used to indicates how many percent of the Xml files have been parsed yet. More...
 

Public Member Functions

 BIFXMLIDReader (InfluenceDiagram< GUM_SCALAR > *infdiag, const std::string &filePath)
 Constructor A reader is created to reading a defined file. More...
 
 ~BIFXMLIDReader ()
 Default destructor. More...
 
virtual void proceed ()
 Reads the influence diagram from the file referenced by filePath given at the creation of class. More...
 

Detailed Description

template<typename GUM_SCALAR>
class gum::BIFXMLIDReader< GUM_SCALAR >

Read an influence diagram from an XML file with BIF format.

This class import an influence diagram from an XML files using BIF format See http://www-2.cs.cmu.edu/afs/cs/user/fgcozman/www/Research/InterchangeFormat/ for information about this format.

Definition at line 102 of file BIFXMLIDReader.h.

Constructor & Destructor Documentation

◆ BIFXMLIDReader()

template<typename GUM_SCALAR>
gum::BIFXMLIDReader< GUM_SCALAR >::BIFXMLIDReader ( InfluenceDiagram< GUM_SCALAR > *  infdiag,
const std::string &  filePath 
)

Constructor A reader is created to reading a defined file.

Note that an ID as to be created before and given in parameter.

◆ ~BIFXMLIDReader()

template<typename GUM_SCALAR>
gum::BIFXMLIDReader< GUM_SCALAR >::~BIFXMLIDReader ( )

Default destructor.

Member Function Documentation

◆ _fillingDiagram_()

template<typename GUM_SCALAR>
void gum::BIFXMLIDReader< GUM_SCALAR >::_fillingDiagram_ ( ticpp::Element parentNetwork)
private

fill the diagram

◆ _parsingVariables_()

template<typename GUM_SCALAR>
void gum::BIFXMLIDReader< GUM_SCALAR >::_parsingVariables_ ( ticpp::Element parentNetwork)
private

Parsing xml element containing data on variables.

◆ proceed()

template<typename GUM_SCALAR>
virtual void gum::BIFXMLIDReader< GUM_SCALAR >::proceed ( )
virtual

Reads the influence diagram from the file referenced by filePath given at the creation of class.

Returns
Returns the number of error during the parsing (0 if none).

Implements gum::IDReader< GUM_SCALAR >.

Member Data Documentation

◆ _filePath_

template<typename GUM_SCALAR>
std::string gum::BIFXMLIDReader< GUM_SCALAR >::_filePath_
private

the path to the xml filePath

Definition at line 152 of file BIFXMLIDReader.h.

◆ _infdiag_

template<typename GUM_SCALAR>
InfluenceDiagram< GUM_SCALAR >* gum::BIFXMLIDReader< GUM_SCALAR >::_infdiag_
private

An handle to the influence diagram in which will be load the content of the xml filePath.

Definition at line 147 of file BIFXMLIDReader.h.

◆ onProceed

template<typename GUM_SCALAR>
gum::Signaler2< int, std::string > gum::BIFXMLIDReader< GUM_SCALAR >::onProceed

Signaler used to indicates how many percent of the Xml files have been parsed yet.

Definition at line 129 of file BIFXMLIDReader.h.


The documentation for this class was generated from the following file: