aGrUM  0.20.2
a C++ library for (probabilistic) graphical models
gum::FMDPDatReader< GUM_SCALAR > Class Template Reference

Definition of templatized reader of FMDPDat files for Factored Markov Decision Processes. More...

#include <fmdpDatReader.h>

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

Public Member Functions

 FMDPDatReader (FMDP< GUM_SCALAR > *fmdp, const std::string &filename)
 
 ~FMDPDatReader ()
 
MDPDAT::Scanner & scanner ()
 Direct access to FMDPDat scanner (mandatory for listener connection) More...
 
const std::string & streamName () const
 name of readen file More...
 
bool trace () const
 accessor to trace function (just write the number of parser line) More...
 
void trace (bool b)
 
Size proceed ()
 parse. More...
 
Size errors ()
 publishing Errors API More...
 
Size warnings ()
 

of errors

More...
 
Idx errLine (Idx i)
 line of ith error or warning More...
 
Idx errCol (Idx i)
 col of ith error or warning More...
 
bool errIsError (Idx i)
 type of ith error or warning More...
 
std::string errMsg (Idx i)
 message of ith error or warning More...
 
void showElegantErrors (std::ostream &o=std::cerr)
 send on std::cerr the list of errors More...
 
void showElegantErrorsAndWarnings (std::ostream &o=std::cerr)
 send on std::cerr the list of errors or warnings More...
 
void showErrorCounts (std::ostream &o=std::cerr)
 send on std::cerr the number of errors and the number of warnings More...
 

Protected Attributes

FMDP< GUM_SCALAR > * fmdp__
 
FMDPFactory< GUM_SCALAR > * factory__
 
MDPDAT::Scanner * scanner__
 
MDPDAT::Parser * parser__
 
std::string streamName__
 
bool traceScanning__
 
bool parseDone__
 
bool ioerror__
 

Detailed Description

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

Definition of templatized reader of FMDPDat files for Factored Markov Decision Processes.

Author
Pierre-Henri WUILLEMIN() and Jean-Christophe MAGNAN and Christophe GONZALES()

Definition at line 94 of file fmdpDatReader.h.

Constructor & Destructor Documentation

◆ FMDPDatReader()

template<typename GUM_SCALAR>
gum::FMDPDatReader< GUM_SCALAR >::FMDPDatReader ( FMDP< GUM_SCALAR > *  fmdp,
const std::string &  filename 
)

◆ ~FMDPDatReader()

template<typename GUM_SCALAR>
gum::FMDPDatReader< GUM_SCALAR >::~FMDPDatReader ( )

Member Function Documentation

◆ errCol()

template<typename GUM_SCALAR>
Idx gum::FMDPDatReader< GUM_SCALAR >::errCol ( Idx  i)

col of ith error or warning

◆ errIsError()

template<typename GUM_SCALAR>
bool gum::FMDPDatReader< GUM_SCALAR >::errIsError ( Idx  i)

type of ith error or warning

◆ errLine()

template<typename GUM_SCALAR>
Idx gum::FMDPDatReader< GUM_SCALAR >::errLine ( Idx  i)

line of ith error or warning

◆ errMsg()

template<typename GUM_SCALAR>
std::string gum::FMDPDatReader< GUM_SCALAR >::errMsg ( Idx  i)

message of ith error or warning

◆ errors()

template<typename GUM_SCALAR>
Size gum::FMDPDatReader< GUM_SCALAR >::errors ( )

publishing Errors API

of errors

◆ proceed()

template<typename GUM_SCALAR>
Size gum::FMDPDatReader< GUM_SCALAR >::proceed ( )
virtual

parse.

Returns
the number of detected errors
Exceptions
IOErrorif file not exists

Implements gum::FMDPReader< GUM_SCALAR >.

◆ scanner()

template<typename GUM_SCALAR>
MDPDAT::Scanner& gum::FMDPDatReader< GUM_SCALAR >::scanner ( )

Direct access to FMDPDat scanner (mandatory for listener connection)

Exceptions
IOErrorif file not exists

◆ showElegantErrors()

template<typename GUM_SCALAR>
void gum::FMDPDatReader< GUM_SCALAR >::showElegantErrors ( std::ostream &  o = std::cerr)

send on std::cerr the list of errors

◆ showElegantErrorsAndWarnings()

template<typename GUM_SCALAR>
void gum::FMDPDatReader< GUM_SCALAR >::showElegantErrorsAndWarnings ( std::ostream &  o = std::cerr)

send on std::cerr the list of errors or warnings

◆ showErrorCounts()

template<typename GUM_SCALAR>
void gum::FMDPDatReader< GUM_SCALAR >::showErrorCounts ( std::ostream &  o = std::cerr)

send on std::cerr the number of errors and the number of warnings

◆ streamName()

template<typename GUM_SCALAR>
const std::string& gum::FMDPDatReader< GUM_SCALAR >::streamName ( ) const

name of readen file

◆ trace() [1/2]

template<typename GUM_SCALAR>
bool gum::FMDPDatReader< GUM_SCALAR >::trace ( ) const

accessor to trace function (just write the number of parser line)

◆ trace() [2/2]

template<typename GUM_SCALAR>
void gum::FMDPDatReader< GUM_SCALAR >::trace ( bool  b)

◆ warnings()

template<typename GUM_SCALAR>
Size gum::FMDPDatReader< GUM_SCALAR >::warnings ( )

of errors

Member Data Documentation

◆ factory__

template<typename GUM_SCALAR>
FMDPFactory< GUM_SCALAR >* gum::FMDPDatReader< GUM_SCALAR >::factory__
protected

Definition at line 144 of file fmdpDatReader.h.

◆ fmdp__

template<typename GUM_SCALAR>
FMDP< GUM_SCALAR >* gum::FMDPDatReader< GUM_SCALAR >::fmdp__
protected

Definition at line 143 of file fmdpDatReader.h.

◆ ioerror__

template<typename GUM_SCALAR>
bool gum::FMDPDatReader< GUM_SCALAR >::ioerror__
protected

Definition at line 154 of file fmdpDatReader.h.

◆ parseDone__

template<typename GUM_SCALAR>
bool gum::FMDPDatReader< GUM_SCALAR >::parseDone__
protected

Definition at line 150 of file fmdpDatReader.h.

◆ parser__

template<typename GUM_SCALAR>
MDPDAT::Parser* gum::FMDPDatReader< GUM_SCALAR >::parser__
protected

Definition at line 146 of file fmdpDatReader.h.

◆ scanner__

template<typename GUM_SCALAR>
MDPDAT::Scanner* gum::FMDPDatReader< GUM_SCALAR >::scanner__
protected

Definition at line 145 of file fmdpDatReader.h.

◆ streamName__

template<typename GUM_SCALAR>
std::string gum::FMDPDatReader< GUM_SCALAR >::streamName__
protected

Definition at line 148 of file fmdpDatReader.h.

◆ traceScanning__

template<typename GUM_SCALAR>
bool gum::FMDPDatReader< GUM_SCALAR >::traceScanning__
protected

Definition at line 149 of file fmdpDatReader.h.


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