aGrUM  0.13.2
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 99 of file BIFXMLIDReader.h.

Constructor & Destructor Documentation

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.

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

Default destructor.

Member Function Documentation

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

fill the diagram

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

Parsing xml element containing data on variables.

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

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

the path to the xml filePath

Definition at line 150 of file BIFXMLIDReader.h.

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 145 of file BIFXMLIDReader.h.

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 127 of file BIFXMLIDReader.h.


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