aGrUM  0.14.2
IDWriter.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005 by Pierre-Henri WUILLEMIN et Christophe GONZALES *
3  * {prenom.nom}_at_lip6.fr *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the *
17  * Free Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ***************************************************************************/
28 #ifndef GUM_ID_WRITER_H
29 #define GUM_ID_WRITER_H
30 
32 #include <agrum/agrum.h>
33 #include <iostream>
34 #include <string>
35 
36 namespace gum {
37 
46  template < typename GUM_SCALAR >
47 
48  class IDWriter {
49  public:
53  IDWriter();
54 
58  virtual ~IDWriter();
59 
67  virtual void write(std::ostream& output,
68  const InfluenceDiagram< GUM_SCALAR >& infdiag) = 0;
69 
79  virtual void write(std::string filePath,
80  const InfluenceDiagram< GUM_SCALAR >& infdiag) = 0;
81  };
82 } /* namespace gum */
83 
84 #include "IDWriter_tpl.h"
85 
86 #endif // GUM_ID_WRITER_H
IDWriter()
Default constructor.
Class representing Influence Diagrams.
gum is the global namespace for all aGrUM entities
Definition: agrum.h:25
Pure virtual class for exporting an ID.
Definition: IDWriter.h:48
Templates implementation of IDWriter.h classes.
virtual void write(std::ostream &output, const InfluenceDiagram< GUM_SCALAR > &infdiag)=0
Writes an influence diagram in the given ouput stream.
Class representing an Influence Diagram.
virtual ~IDWriter()
Default destructor.