aGrUM  0.16.0
BNWriter.h
Go to the documentation of this file.
1 
33 #ifndef GUM_BN_WRITER_H
34 #define GUM_BN_WRITER_H
35 
36 #include <agrum/BN/IBayesNet.h>
37 #include <agrum/agrum.h>
38 #include <iostream>
39 #include <string>
40 
41 namespace gum {
42 
43  /* =========================================================================*/
44  /* === WRITTERS === */
45  /* =========================================================================*/
55  template < typename GUM_SCALAR >
56 
57  class BNWriter {
58  public:
62  BNWriter();
63 
67  virtual ~BNWriter();
68 
76  virtual void write(std::ostream& output,
77  const IBayesNet< GUM_SCALAR >& bn) = 0;
78 
88  virtual void write(const std::string& filePath,
89  const IBayesNet< GUM_SCALAR >& bn) = 0;
90  };
91 
92 
93 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
94  extern template class BNWriter< double >;
95 #endif
96 } /* namespace gum */
97 
99 
100 #endif // GUM_BN_WRITER_H
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.
virtual void write(std::ostream &output, const IBayesNet< GUM_SCALAR > &bn)=0
Writes a Bayesian Network in the ouput stream.
Class representing the minimal interface for Bayesian Network.
Definition: IBayesNet.h:62
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
virtual ~BNWriter()
Default destructor.
BNWriter()
Default constructor.
Pure virtual class for writting a BN to a file.
Definition: BNWriter.h:57