aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
BIFXMLIDReader.h File Reference

classe for import of Influence Diagram from a XML file written with BIF Format More...

#include <list>
#include <sstream>
#include <string>
#include <agrum/agrum.h>
#include <agrum/base/external/tinyxml/ticpp/ticpp.h>
#include <agrum/base/variables/labelizedVariable.h>
#include <agrum/ID/io/IDReader.h>
#include <agrum/ID/io/BIFXML/BIFXMLIDReader_tpl.h>
Include dependency graph for BIFXMLIDReader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gum::BIFXMLIDReader< GUM_SCALAR >
 Read an influence diagram from an XML file with BIF format. More...

Namespaces

namespace  gum
 gum is the global namespace for all aGrUM entities

Macros

#define TIXML_USE_TICPP

Detailed Description

classe for import of Influence Diagram from a XML file written with BIF Format

Read an influence diagram from a XML file with BIF format

how to use it :

// OPTIONAL LISTENER CLASS
class aSimpleListener : public gum::Listener {
public:
void whenProceeding(const void *buffer,int percent, std::string status) {
// percent goes from 0 to 100 (whenLoading is called at most once for each
integer
between 0 and 100
// percent=200 recieved when End Of File.
}
};
// END OF OPTIONAL LISTENER
try {
gum::BIFXMLIDReader<double> reader(&id,std::string(args[1]));
// OPTIONAL SECTION
aSimpleListener asl;
GUM_CONNECT( reader, onProceed, asl, aSimpleListener::whenProceing );
// END OF OPTIONNAL SECTION
// Not implemented yet section
//if (reader.proceed()==0) {
//std::cerr<<"Well done !"<<std::endl;
//} else {
//reader.showElegantErrorsAndWarnings();
//reader.showErrorCounts();
//}
// End not implemented section
} catch (gum::IOError& e) {GUM_SHOWERROR(e);}
return 0;
Read an influence diagram from an XML file with BIF format.
Class representing an Influence Diagram.
Every class who would catch signal from signaler should derive from Listener.
Definition listener.h:93
#define GUM_SHOWERROR(e)
Definition exceptions.h:85
#define GUM_CONNECT(sender, signal, receiver, target)
Definition listener.h:117
Author
Pierre-Henri WUILLEMIN(_at_LIP6) and Jean-Christophe MAGNAN and Christophe GONZALES(_at_AMU)

Definition in file BIFXMLIDReader.h.

Macro Definition Documentation

◆ TIXML_USE_TICPP

#define TIXML_USE_TICPP

Definition at line 96 of file BIFXMLIDReader.h.