aGrUM  0.16.0
BIFXMLIDReader.h File Reference

Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr. More...

#include <list>
#include <sstream>
#include <string>
#include <agrum/ID/io/IDReader.h>
#include <agrum/agrum.h>
#include <agrum/core/signal/signaler.h>
#include <agrum/core/signal/signaler2.h>
#include <agrum/external/tinyxml/ticpp/ticpp.h>
#include <agrum/variables/labelizedVariable.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

 gum
 Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
 

Macros

#define TIXML_USE_TICPP
 

Detailed Description

Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.

This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library. If not, see http://www.gnu.org/licenses/.

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;
Author
Jean-Christophe MAGNAN and Pierre-Henri WUILLEMIN

Definition in file BIFXMLIDReader.h.

Macro Definition Documentation

◆ TIXML_USE_TICPP

#define TIXML_USE_TICPP

Definition at line 76 of file BIFXMLIDReader.h.