Go to the documentation of this file.
47 std::unique_ptr<std::string> logFileName;
48 std::unique_ptr<std::ofstream> logFile;
54 const char *msg,
const char *file,
int line)
61 const char *msg,
int verbosity,
const char *file,
94 current ? current->
name() :
nullptr, msgInfo.
id);
110 const char *file,
int line)
117 report(severity, msg_type.c_str(), msg, file, line);
158 int previous = info.
limit;
170 int previous = info.
limit;
284 if ((actions &
SC_LOG) && logFile) {
308 maxAction = maxAction << 1;
337 logFileName =
nullptr;
342 logFileName = std::unique_ptr<std::string>(
new std::string(new_name));
343 logFile = std::unique_ptr<std::ofstream>(
new std::ofstream(new_name));
354 return logFileName->c_str();
372 std::ostringstream str;
377 str << sevName <<
": ";
379 ccprintf(str,
"(%c%d) ", sevName[0],
id);
383 const char *msg = report.
get_msg();
407 logFileName =
nullptr;
static int get_count(sc_severity)
static sc_time from_value(sc_dt::uint64)
const char * reportSeverityNames[]
static sc_actions set_catch_actions(sc_actions)
const std::string sc_report_compose_message(const sc_report &)
static sc_actions set_actions(sc_severity, sc_actions=SC_UNSPECIFIED)
const char * get_process_name() const
static void default_handler(const sc_report &, const sc_actions &)
bool sc_report_close_default_log()
const sc_time & get_time() const
const char * get_msg() const
static sc_actions force()
static void clear_cached_report()
static sc_actions suppress()
sc_core::sc_actions actions
sc_core::sc_actions actions
void lastReport(::sc_core::sc_report *report)
const char SC_ID_UNKNOWN_ERROR_[]
static int stop_after(sc_severity, int limit=-1)
ReportSevInfo reportSevInfos[sc_core::SC_MAX_SEVERITY]
static sc_actions get_catch_actions()
sc_core::sc_report_handler_proc reportHandlerProc
void cprintf(const char *format, const Args &...args)
void checkLimit(sc_core::sc_actions &actions)
int sevLimits[sc_core::SC_MAX_SEVERITY]
std::unique_ptr< sc_core::sc_report > globalReportCache
static int set_verbosity_level(int)
static void report(sc_severity, const char *msg_type, const char *msg, const char *file, int line)
const char * get_file_name() const
std::map< std::string, ReportMsgInfo > & reportMsgInfoMap()
int sevCounts[sc_core::SC_MAX_SEVERITY]
sc_severity get_severity() const
const std::string & name()
bool reportWarningsAsErrors
sc_core::sc_actions sevActions[sc_core::SC_MAX_SEVERITY]
void sc_stop_here(const char *msg_type, sc_severity)
sc_core::sc_actions reportForcedActions
void checkLimits(sc_core::sc_severity severity, sc_core::sc_actions &actions)
void(* sc_report_handler_proc)(const sc_report &, const sc_actions &)
static sc_actions get_new_action_id()
std::map< int, std::string > & reportIdToMsgMap()
static void set_handler(sc_report_handler_proc)
const char * name() const
static int get_verbosity_level()
void sc_interrupt_here(const char *msg_type, sc_severity)
void ccprintf(cp::Print &print)
int get_line_number() const
BitfieldType< SegDescriptorLimit > limit
sc_core::sc_actions reportSuppressedActions
const char * get_msg_type() const
static sc_report * get_cached_report()
sc_core::sc_actions reportCatchActions
static const char * get_log_file_name()
static bool set_log_file_name(const char *)
const std::string to_string() const
Generated on Wed Sep 30 2020 14:02:18 for gem5 by doxygen 1.8.17