![]() |
aGrUM
0.16.0
|
This class is used to represent parsing errors for the different parser implemented in aGrUM. More...
#include <agrum/core/errorsContainer.h>
Public Member Functions | |
Class constructors and destructors | |
ParseError (bool is_error, const std::string &msg, Idx line) | |
Class constructor. More... | |
ParseError (bool is_error, const std::string &msg, const std::string &filename, Idx line, Idx col=0) | |
Class constructor. More... | |
ParseError (bool is_error, const std::string &msg, const std::string &filename, const std::string &code, Idx line, Idx col=0) | |
Class constructor. More... | |
ParseError (const ParseError &cont) | |
Copy constructor. More... | |
Class operator | |
bool | is_error |
If false, this gum::ParseError is a warning. More... | |
Idx | line |
The line of this gum::ParseError. More... | |
Idx | column |
The column of this gum::ParseError, default is 0. More... | |
std::string | msg |
The gum::ParseError message. More... | |
std::string | filename |
The file of this gum::ParseError, default is "". More... | |
std::string | code |
The code of this gum::ParseError, default is "". More... | |
ParseError | operator= (const ParseError &cont) |
Copy operator. More... | |
std::string | toString () const |
Return a std::string representation of this gum::ParseError. More... | |
std::string | toElegantString () const |
Return an elegant std::string representation of this gum::ParseError. More... | |
This class is used to represent parsing errors for the different parser implemented in aGrUM.
Definition at line 50 of file errorsContainer.h.
Class constructor.
is_error | True if this is an error. |
msg | The parsing error message. |
line | The line where the parsing error occured. |
gum::ParseError::ParseError | ( | bool | is_error, |
const std::string & | msg, | ||
const std::string & | filename, | ||
Idx | line, | ||
Idx | col = 0 |
||
) |
Class constructor.
is_error | If false, then this ParseError is a warning. |
msg | The parsing error message. |
filename | The file where the parsing error occured. |
line | The line where the parsing error occured. |
col | The column where the parsing error occured. |
gum::ParseError::ParseError | ( | bool | is_error, |
const std::string & | msg, | ||
const std::string & | filename, | ||
const std::string & | code, | ||
Idx | line, | ||
Idx | col = 0 |
||
) |
Class constructor.
is_error | If false, then this ParseError is a warning. |
msg | The parsing error message. |
filename | The file where the parsing error occured. |
code | The code of the parsing error. |
line | The line where the parsing error occured. |
col | The column where the parsing error occured. |
gum::ParseError::ParseError | ( | const ParseError & | cont | ) |
Copy constructor.
cont | The gum::ParseError to copy. |
ParseError gum::ParseError::operator= | ( | const ParseError & | cont | ) |
std::string gum::ParseError::toElegantString | ( | ) | const |
Return an elegant std::string representation of this gum::ParseError.
std::string gum::ParseError::toString | ( | ) | const |
Return a std::string representation of this gum::ParseError.
Referenced by gum::prm::o3prmr::O3prmrInterpreter::addError(), and gum::prm::o3prmr::O3prmrInterpreter::addWarning().
|
mutable |
The code of this gum::ParseError, default is "".
Definition at line 136 of file errorsContainer.h.
Idx gum::ParseError::column |
The column of this gum::ParseError, default is 0.
Definition at line 127 of file errorsContainer.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::__print(), and gum::O3prmBNReader< GUM_SCALAR >::errCol().
std::string gum::ParseError::filename |
The file of this gum::ParseError, default is "".
Definition at line 133 of file errorsContainer.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::__print().
bool gum::ParseError::is_error |
If false, this gum::ParseError is a warning.
Definition at line 121 of file errorsContainer.h.
Referenced by gum::ErrorsContainer::add(), and gum::O3prmBNReader< GUM_SCALAR >::errIsError().
Idx gum::ParseError::line |
The line of this gum::ParseError.
Definition at line 124 of file errorsContainer.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::__print(), and gum::O3prmBNReader< GUM_SCALAR >::errLine().
std::string gum::ParseError::msg |
The gum::ParseError message.
Definition at line 130 of file errorsContainer.h.
Referenced by gum::prm::o3prm::O3prmReader< double >::__print(), and gum::O3prmBNReader< GUM_SCALAR >::errMsg().