aGrUM  0.13.2
gum::BIFXMLIDWriter< GUM_SCALAR > Class Template Reference

Writes an influence diagram in a XML files with BIF formatThis class export an influence diagram into an XML files, using BIF format See http://www-2.cs.cmu.edu/afs/cs/user/fgcozman/www/Research/InterchangeFormat/ for information about this format. More...

#include <BIFXMLIDWriter.h>

+ Inheritance diagram for gum::BIFXMLIDWriter< GUM_SCALAR >:
+ Collaboration diagram for gum::BIFXMLIDWriter< GUM_SCALAR >:

Public Member Functions

virtual void write (std::ostream &output, const InfluenceDiagram< GUM_SCALAR > &infdiag)
 Writes an influence diagram in the given ouput stream. More...
 
virtual void write (std::string filePath, const InfluenceDiagram< GUM_SCALAR > &infdiag)
 Writes an Influence Diagram in the file referenced by filePath. More...
 
Constructor & destructor
 BIFXMLIDWriter ()
 Default constructor. More...
 
virtual ~BIFXMLIDWriter ()
 Destructor. More...
 

Detailed Description

template<typename GUM_SCALAR>
class gum::BIFXMLIDWriter< GUM_SCALAR >

Writes an influence diagram in a XML files with BIF format

This class export an influence diagram into an XML files, using BIF format See http://www-2.cs.cmu.edu/afs/cs/user/fgcozman/www/Research/InterchangeFormat/ for information about this format.

Definition at line 57 of file BIFXMLIDWriter.h.

Constructor & Destructor Documentation

template<typename GUM_SCALAR >
gum::BIFXMLIDWriter< GUM_SCALAR >::BIFXMLIDWriter ( )

Default constructor.

template<typename GUM_SCALAR >
virtual gum::BIFXMLIDWriter< GUM_SCALAR >::~BIFXMLIDWriter ( )
virtual

Destructor.

Member Function Documentation

template<typename GUM_SCALAR >
std::string gum::BIFXMLIDWriter< GUM_SCALAR >::__documentend ( )
private

Returns the end of the BIF file.

template<typename GUM_SCALAR >
std::string gum::BIFXMLIDWriter< GUM_SCALAR >::__heading ( )
private

Returns the header of the BIF file.

template<typename GUM_SCALAR >
std::string gum::BIFXMLIDWriter< GUM_SCALAR >::__variableBloc ( const DiscreteVariable var,
int  nodeType 
)
private

Returns a bloc defining a variable in the BIF format.

template<typename GUM_SCALAR >
std::string gum::BIFXMLIDWriter< GUM_SCALAR >::__variableDefinition ( const NodeId varNodeId,
const InfluenceDiagram< GUM_SCALAR > &  infdiag 
)
private

Returns a bloc defining a variable's table (if she has) in the BIF format.

template<typename GUM_SCALAR >
virtual void gum::BIFXMLIDWriter< GUM_SCALAR >::write ( std::ostream &  output,
const InfluenceDiagram< GUM_SCALAR > &  infdiag 
)
virtual

Writes an influence diagram in the given ouput stream.

Parameters
outputThe output stream.
infdiagThe influence diagram writen in the stream.
Exceptions
IOErrorRaised if an I/O error occurs.

Implements gum::IDWriter< GUM_SCALAR >.

template<typename GUM_SCALAR >
virtual void gum::BIFXMLIDWriter< GUM_SCALAR >::write ( std::string  filePath,
const InfluenceDiagram< GUM_SCALAR > &  infdiag 
)
virtual

Writes an Influence Diagram in the file referenced by filePath.

If the file doesn't exists, it is created. If the file exists, it's content will be erased.

Parameters
filePathThe path to the file used to write the Influence Diagram.
infdiagThe Influence Diagram writen in the file.
Exceptions
IOErrorRaised if an I/O error occurs.

Implements gum::IDWriter< GUM_SCALAR >.


The documentation for this class was generated from the following file: