28 #ifndef DOXYGEN_SHOULD_SKIP_THIS 34 template <
typename GUM_SCALAR >
36 const std::string& filename) :
37 FMDPReader< GUM_SCALAR >(fmdp, filename) {
51 __parser->setFactory((AbstractFMDPFactory*)
__factory);
52 }
catch (IOError e) { __ioerror =
true; }
55 template <
typename GUM_SCALAR >
69 template <
typename GUM_SCALAR >
76 template <
typename GUM_SCALAR >
81 template <
typename GUM_SCALAR >
86 template <
typename GUM_SCALAR >
92 template <
typename GUM_SCALAR >
102 return 1 + __parser->errors().error_count;
106 return (__parser->errors().error_count);
111 template <
typename GUM_SCALAR >
114 return __parser->errors().error(i).line;
116 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
119 template <
typename GUM_SCALAR >
122 return __parser->errors().error(i).column;
124 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
127 template <
typename GUM_SCALAR >
130 return __parser->errors().error(i).is_error;
132 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
135 template <
typename GUM_SCALAR >
138 return __parser->errors().error(i).msg;
140 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
143 template <
typename GUM_SCALAR >
146 __parser->errors().elegantErrors(o);
148 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
151 template <
typename GUM_SCALAR >
155 __parser->errors().elegantErrorsAndWarnings(o);
157 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
160 template <
typename GUM_SCALAR >
163 __parser->errors().syntheticResults(o);
165 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
168 template <
typename GUM_SCALAR >
173 template <
typename GUM_SCALAR >
181 #endif // DOXYGEN_SHOULD_SKIP_THIS bool errIsError(Idx i)
type of ith error or warning
FMDPDatReader(FMDP< GUM_SCALAR > *fmdp, const std::string &filename)
const std::string & streamName() const
name of readen file
Size errors()
publishing Errors API
FMDPFactory< GUM_SCALAR > * __factory
FMDP< GUM_SCALAR > * __fmdp
MDPDAT::Parser * __parser
Idx errCol(Idx i)
col of ith error or warning
gum is the global namespace for all aGrUM entities
void showElegantErrorsAndWarnings(std::ostream &o=std::cerr)
send on std::cerr the list of errors or warnings
MDPDAT::Scanner & scanner()
Direct access to FMDPDat scanner (mandatory for listener connection)
Base class for all aGrUM's exceptions.
void showElegantErrors(std::ostream &o=std::cerr)
send on std::cerr the list of errors
MDPDAT::Scanner * __scanner
void showErrorCounts(std::ostream &o=std::cerr)
send on std::cerr the number of errors and the number of warnings
std::string errMsg(Idx i)
message of ith error or warning
std::size_t Size
In aGrUM, hashed values are unsigned long int.
bool trace() const
accessor to trace function (just write the number of parser line)
Definition of templatized reader of dat files for Factored Markov Decision Process.
Idx errLine(Idx i)
line of ith error or warning
#define GUM_ERROR(type, msg)