|
MicroModelicaCCompiler
4.5.3
|
#include <error.hpp>
Public Member Functions | |
| ~Error ()=default | |
| void | add (int pos, unsigned int code, ER_Type t, const std::string message,...) |
| void | show () |
| void | setClassName (std::string class_name) |
| std::string | className () |
| void | setFile (std::string s) |
| std::string | file () |
| int | errors () |
Static Public Member Functions | |
| static Error & | instance () |
Private Member Functions | |
| Error () | |
| std::string | typeString (ER_Type t) |
| std::string | printCode (int code) |
Private Attributes | |
| std::map< unsigned int, std::string > | _errors |
| std::map< unsigned int, std::string > | _warnings |
| int | _num_errors |
| int | _num_warnings |
| std::string | _std_def |
| std::string | _class_name |
|
default |
| void MicroModelica::Util::Error::add | ( | int | pos, |
| unsigned int | code, | ||
| ER_Type | t, | ||
| const std::string | message, | ||
| ... | |||
| ) |
Definition at line 42 of file error.cpp.
References _class_name, _errors, _num_errors, _num_warnings, _warnings, MicroModelica::Util::ER_Error, MicroModelica::Util::ER_Fatal, printCode(), show(), and typeString().
Referenced by MicroModelica::IR::ModelChecker::_lValue(), MicroModelica::IR::ModelAnnotation::expComment(), MicroModelica::IR::Range::getExp(), MicroModelica::IR::UserDefMatrix< Config, N >::printMatrix(), MicroModelica::IR::Range::updateRangeDefinition(), and MicroModelica::IR::ModelChecker::visit().

| string MicroModelica::Util::Error::className | ( | ) |
Definition at line 40 of file error.cpp.
References _class_name.
| int MicroModelica::Util::Error::errors | ( | ) |
Definition at line 257 of file error.cpp.
References _num_errors.
Referenced by MicroModelica::IR::ModelChecker::apply().
| string MicroModelica::Util::Error::file | ( | ) |
|
inlinestatic |
Definition at line 128 of file error.hpp.
Referenced by MicroModelica::IR::ModelChecker::_lValue(), MicroModelica::IR::ModelChecker::apply(), MicroModelica::IR::ModelAnnotation::expComment(), MicroModelica::IR::Range::getExp(), MicroModelica::IR::ModelChecker::leave(), MicroModelica::IR::UserDefMatrix< Config, N >::printMatrix(), MicroModelica::IR::Range::updateRangeDefinition(), and MicroModelica::IR::ModelChecker::visit().
|
private |
Definition at line 93 of file error.cpp.
References EM_ALG_INDEX, EM_ALG_INIT, EM_ANNOTATION_NOT_FOUND, EM_ARGUMENTS, EM_ARRAY_CTE, EM_ARRAY_INIT, EM_ARRAY_INIT_VAL, EM_ARRAY_SIZE, EM_AST, EM_CALL_EXP, EM_CANT_OPEN_FILE, EM_CG, EM_CLASS_DEFINITION, EM_CONSTANT_FOR, EM_DEFINITION_NOT_ALLOWED, EM_EQ_DEF, EM_ERROR, EM_EVENT_DEF, EM_EVENT_FOUND, EM_FOR_DEF, EM_FOR_VAR, EM_FUNCTION_NOT_FOUND, EM_GEN_DEF, EM_GRM, EM_HANDLER, EM_INDEX_RANGE, EM_IR, EM_MESSAGE, EM_MODULE, EM_NO_EQ, EM_OUTPUT_DEF, EM_OUTPUT_INIT, EM_PARSE_FILE, EM_PP, EM_RANGE_EXP, EM_SAMPLED_DEF, EM_SAMPLED_OUT, EM_SIZE_ZERO, EM_SYM_DER, EM_SYMBOL, EM_UNKNOWN_ERROR, EM_UNKNOWN_EXP, EM_UNKNOWN_ODE, EM_UNKNOWN_OPER, EM_UNKNOWN_OPERATION, EM_UNKNOWN_TYPE, EM_VARIABLE_NOT_DEFINED, EM_VARIABLE_NOT_FOUND, EM_WRONG_EXP, EM_WRONG_SCANNER, EM_WRONG_TYPE, and EM_WRONG_VARIABLE_TYPE.
Referenced by add().
| void MicroModelica::Util::Error::setClassName | ( | std::string | class_name | ) |
Definition at line 38 of file error.cpp.
References _class_name.
Referenced by MicroModelica::IR::ModelChecker::visit().
| void MicroModelica::Util::Error::setFile | ( | std::string | s | ) |
| void MicroModelica::Util::Error::show | ( | ) |
|
private |
Definition at line 80 of file error.cpp.
References MicroModelica::Util::ER_Error, MicroModelica::Util::ER_Fatal, and MicroModelica::Util::ER_Warning.
Referenced by add().
|
private |
Definition at line 152 of file error.hpp.
Referenced by add(), className(), and setClassName().
|
private |
|
private |
|
private |
|
private |
|
private |