29 #ifndef GUM_ERRORS_CONTAINERS_H 30 #define GUM_ERRORS_CONTAINERS_H 38 #include <agrum/core/cocoR/common.h> 74 const std::string& msg,
89 const std::string& msg,
90 const std::string& filename,
91 const std::string&
code,
163 mutable std::vector< ParseError >
errors;
222 void addError(
const std::string&
msg,
234 void addWarning(
const std::string&
msg,
244 void addException(
const std::string&
msg,
const std::string&
filename);
256 void syntheticResults(std::ostream& o)
const;
262 void simpleErrors(std::ostream& o)
const;
268 void simpleErrorsAndWarnings(std::ostream& o)
const;
274 void elegantErrors(std::ostream& o)
const;
280 void elegantErrorsAndWarnings(std::ostream& o)
const;
305 void Warning(
const std::wstring&
filename,
352 #ifndef GUM_NO_INLINE 356 #endif // GUM_ERRORS_CONTAINERS_H std::string msg
The gum::ParseError message.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Formula operator+(const Formula &a, const Formula &b)
Size error_count
Number of errors detected.
std::string filename
The file of this gum::ParseError, default is "".
std::string code
The code of this gum::ParseError, default is "".
std::vector< ParseError > errors
The list of gum::ParseError contained in this gum::ErrorsContainer.
This class is used to represent parsing errors for the different parser implemented in aGrUM...
ParseError(bool is_error, const std::string &msg, Idx line)
Class constructor.
This class is used contain and manipulate gum::ParseError.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
std::string toString() const
Return a std::string representation of this gum::ParseError.
std::string toElegantString() const
Return an elegant std::string representation of this gum::ParseError.
bool is_error
If false, this gum::ParseError is a warning.
Idx line
The line of this gum::ParseError.
ParseError operator=(const ParseError &cont)
Copy operator.
Base class for all aGrUM's exceptions.
Size Idx
Type for indexes.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Idx column
The column of this gum::ParseError, default is 0.