82#ifndef GUM_FMDP_DAT_READER_H
83#define GUM_FMDP_DAT_READER_H
94#ifndef DOXYGEN_SHOULD_SKIP_THIS
96# include <agrum/FMDP/io/dat/cocoR/Parser.h>
107 template <
typename GUM_ELEMENT >
172#ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
Definition of templatized reader of FMDPDat files for Factored Markov Decision Processes.
MDPDAT::Parser * _parser_
MDPDAT::Scanner * _scanner_
FMDP< GUM_ELEMENT > * _fmdp_
bool trace() const
accessor to trace function (just write the number of parser line)
FMDPFactory< GUM_ELEMENT > * _factory_
void showErrorCounts(std::ostream &o=std::cerr)
send on std::cerr the number of errors and the number of warnings
Size proceed() override
parse.
void showElegantErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings
~FMDPDatReader() override
FMDPDatReader(FMDP< GUM_ELEMENT > *fmdp, std::string_view filename)
Size errors()
publishing Errors API
const std::string & streamName() const
name of readen file
MDPDAT::Scanner & scanner()
Direct access to FMDPDat scanner (mandatory for listener connection).
void showElegantErrors(std::ostream &o=std::cerr)
send on std::cerr the list of errors
Idx errCol(Idx i)
col of ith error or warning
bool errIsError(Idx i)
type of ith error or warning
std::string errMsg(Idx i)
message of ith error or warning
Idx errLine(Idx i)
line of ith error or warning
A factory class to ease Factored Markov Decision Process construction.
FMDPReader(FMDP< GUM_ELEMENT > *fmdp, std::string_view filename)
Constructor A reader is defined for reading a defined file.
This class is used to implement factored decision process.
Definition of templatized reader of dat files for Factored Markov Decision Process.
Headers of the FMDPFactory class.
Definition of abstract classes for file input manipulation of Factored Markov Decision Process.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size Idx
Type for indexes.
gum is the global namespace for all aGrUM entities