MicroModelicaCCompiler  4.5.3
MicroModelica::Util::Error Class Reference

#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 Errorinstance ()
 

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
 

Detailed Description

Definition at line 126 of file error.hpp.

Constructor & Destructor Documentation

◆ ~Error()

MicroModelica::Util::Error::~Error ( )
default

◆ Error()

MicroModelica::Util::Error::Error ( )
private

Definition at line 32 of file error.cpp.

Member Function Documentation

◆ add()

◆ className()

string MicroModelica::Util::Error::className ( )

Definition at line 40 of file error.cpp.

References _class_name.

◆ errors()

int MicroModelica::Util::Error::errors ( )

Definition at line 257 of file error.cpp.

References _num_errors.

Referenced by MicroModelica::IR::ModelChecker::apply().

◆ file()

string MicroModelica::Util::Error::file ( )

Definition at line 36 of file error.cpp.

References _std_def.

◆ instance()

◆ printCode()

◆ setClassName()

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().

◆ setFile()

void MicroModelica::Util::Error::setFile ( std::string  s)

Definition at line 34 of file error.cpp.

References _std_def.

◆ show()

void MicroModelica::Util::Error::show ( )

Definition at line 66 of file error.cpp.

References _errors, _std_def, and _warnings.

Referenced by add(), and MicroModelica::IR::ModelChecker::leave().

◆ typeString()

string MicroModelica::Util::Error::typeString ( ER_Type  t)
private

Member Data Documentation

◆ _class_name

std::string MicroModelica::Util::Error::_class_name
private

Definition at line 152 of file error.hpp.

Referenced by add(), className(), and setClassName().

◆ _errors

std::map<unsigned int, std::string> MicroModelica::Util::Error::_errors
private

Definition at line 147 of file error.hpp.

Referenced by add(), and show().

◆ _num_errors

int MicroModelica::Util::Error::_num_errors
private

Definition at line 149 of file error.hpp.

Referenced by add(), and errors().

◆ _num_warnings

int MicroModelica::Util::Error::_num_warnings
private

Definition at line 150 of file error.hpp.

Referenced by add().

◆ _std_def

std::string MicroModelica::Util::Error::_std_def
private

Definition at line 151 of file error.hpp.

Referenced by file(), setFile(), and show().

◆ _warnings

std::map<unsigned int, std::string> MicroModelica::Util::Error::_warnings
private

Definition at line 148 of file error.hpp.

Referenced by add(), and show().


The documentation for this class was generated from the following files: