aGrUM  0.16.0
BNReader.h
Go to the documentation of this file.
1 
33 #ifndef GUM_BN_READER_H
34 #define GUM_BN_READER_H
35 
36 #include <agrum/BN/BayesNet.h>
37 #include <agrum/agrum.h>
38 #include <iostream>
39 #include <string>
40 
41 namespace gum {
42  /* =========================================================================*/
43  /* === READERS === */
44  /* =========================================================================*/
54  template < typename GUM_SCALAR >
55  class BNReader {
56  public:
64  BNReader(BayesNet< GUM_SCALAR >* bn, const std::string& filename);
65 
69  virtual ~BNReader();
70 
76  virtual Size proceed() = 0;
77  };
78 
79 
80 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
81  extern template class BNReader< double >;
82 #endif
83 
84 } /* namespace gum */
85 
87 
88 #endif // GUM_BN_READER_H
virtual Size proceed()=0
Reads a Bayesian Network from the file referenced by filePath into` parameter bayesNet.
Class representing a Bayesian Network.
Definition: BayesNet.h:78
BNReader(BayesNet< GUM_SCALAR > *bn, const std::string &filename)
Constructor A reader is defined for reading a defined file.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
Pure virtual class for reading a BN from a file.
Definition: BNReader.h:55
virtual ~BNReader()
Default destructor.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Definition: types.h:48
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.