31 #ifndef DOXYGEN_SHOULD_SKIP_THIS 37 template <
typename GUM_SCALAR >
39 const std::string& filename) :
40 FMDPReader< GUM_SCALAR >(fmdp, filename) {
54 __parser->setFactory((AbstractFMDPFactory*)
__factory);
55 }
catch (IOError e) { __ioerror =
true; }
58 template <
typename GUM_SCALAR >
72 template <
typename GUM_SCALAR >
79 template <
typename GUM_SCALAR >
84 template <
typename GUM_SCALAR >
89 template <
typename GUM_SCALAR >
95 template <
typename GUM_SCALAR >
105 return 1 + __parser->errors().error_count;
109 return (__parser->errors().error_count);
114 template <
typename GUM_SCALAR >
117 return __parser->errors().error(i).line;
119 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
122 template <
typename GUM_SCALAR >
125 return __parser->errors().error(i).column;
127 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
130 template <
typename GUM_SCALAR >
133 return __parser->errors().error(i).is_error;
135 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
138 template <
typename GUM_SCALAR >
141 return __parser->errors().error(i).msg;
143 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
146 template <
typename GUM_SCALAR >
149 __parser->errors().elegantErrors(o);
151 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
154 template <
typename GUM_SCALAR >
158 __parser->errors().elegantErrorsAndWarnings(o);
160 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
163 template <
typename GUM_SCALAR >
166 __parser->errors().syntheticResults(o);
168 GUM_ERROR(OperationNotAllowed,
"FMDPDat file not parsed yet");
171 template <
typename GUM_SCALAR >
176 template <
typename GUM_SCALAR >
184 #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
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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)
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Idx errLine(Idx i)
line of ith error or warning
#define GUM_ERROR(type, msg)