SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_core::sc_report Class Reference

Exception reporting. More...

#include <sysc/utils/sc_report.h>

Inheritance diagram for sc_core::sc_report:
Collaboration diagram for sc_core::sc_report:

Public Member Functions

 sc_report (const sc_report &)
 
sc_reportoperator= (const sc_report &)
 
virtual ~sc_report () throw ()
 
const char * get_msg_type () const
 
const char * get_msg () const
 
sc_severity get_severity () const
 
const char * get_file_name () const
 
int get_line_number () const
 
const sc_timeget_time () const
 
const char * get_process_name () const
 
int get_verbosity () const
 
bool valid () const
 
virtual const char * what () const throw ()
 
void swap (sc_report &)
 
int get_id () const
 

Static Public Member Functions

static const char * get_message (int id)
 
static bool is_suppressed (int id)
 
static void make_warnings_errors (bool)
 
static void register_id (int id, const char *msg)
 
static void suppress_id (int id, bool)
 
static void suppress_infos (bool)
 
static void suppress_warnings (bool)
 

Protected Member Functions

 sc_report (sc_severity, const sc_msg_def *, const char *msg, const char *file, int line, int verbosity_level=SC_MEDIUM)
 

Protected Attributes

sc_severity severity
 
const sc_msg_defmd
 
char * msg
 
char * file
 
int line
 
sc_timetimestamp
 
char * process_name
 
int m_verbosity_level
 
char * m_what
 

Friends

class sc_report_handler
 
SC_API sc_reportsc_handle_exception ()
 

Detailed Description

Exception reporting.

Definition at line 121 of file sc_report.h.

Constructor & Destructor Documentation

◆ sc_report() [1/2]

sc_core::sc_report::sc_report ( const sc_report )

◆ ~sc_report()

virtual sc_core::sc_report::~sc_report ( )
throw (
)
virtual

◆ sc_report() [2/2]

sc_core::sc_report::sc_report ( sc_severity  ,
const sc_msg_def ,
const char *  msg,
const char *  file,
int  line,
int  verbosity_level = SC_MEDIUM 
)
protected

Member Function Documentation

◆ get_file_name()

const char* sc_core::sc_report::get_file_name ( ) const
inline

Definition at line 144 of file sc_report.h.

◆ get_id()

int sc_core::sc_report::get_id ( ) const

◆ get_line_number()

int sc_core::sc_report::get_line_number ( ) const
inline

Definition at line 147 of file sc_report.h.

◆ get_message()

static const char* sc_core::sc_report::get_message ( int  id)
static

◆ get_msg()

const char* sc_core::sc_report::get_msg ( ) const
inline

Definition at line 138 of file sc_report.h.

◆ get_msg_type()

const char* sc_core::sc_report::get_msg_type ( ) const

◆ get_process_name()

const char* sc_core::sc_report::get_process_name ( ) const

◆ get_severity()

sc_severity sc_core::sc_report::get_severity ( ) const
inline

Definition at line 141 of file sc_report.h.

◆ get_time()

const sc_time& sc_core::sc_report::get_time ( ) const
inline

Definition at line 150 of file sc_report.h.

◆ get_verbosity()

int sc_core::sc_report::get_verbosity ( ) const
inline

Definition at line 155 of file sc_report.h.

◆ is_suppressed()

static bool sc_core::sc_report::is_suppressed ( int  id)
static

◆ make_warnings_errors()

static void sc_core::sc_report::make_warnings_errors ( bool  )
static

◆ operator=()

sc_report& sc_core::sc_report::operator= ( const sc_report )

◆ register_id()

static void sc_core::sc_report::register_id ( int  id,
const char *  msg 
)
static

◆ suppress_id()

static void sc_core::sc_report::suppress_id ( int  id,
bool   
)
static

◆ suppress_infos()

static void sc_core::sc_report::suppress_infos ( bool  )
static

◆ suppress_warnings()

static void sc_core::sc_report::suppress_warnings ( bool  )
static

◆ swap()

void sc_core::sc_report::swap ( sc_report )

◆ valid()

bool sc_core::sc_report::valid ( ) const

◆ what()

virtual const char* sc_core::sc_report::what ( ) const
throw (
)
inlinevirtual

Definition at line 159 of file sc_report.h.

Friends And Related Function Documentation

◆ sc_handle_exception

SC_API sc_report* sc_handle_exception ( )
friend

◆ sc_report_handler

friend class sc_report_handler
friend

Definition at line 123 of file sc_report.h.

Member Data Documentation

◆ file

char* sc_core::sc_report::file
protected

Definition at line 178 of file sc_report.h.

◆ line

int sc_core::sc_report::line
protected

Definition at line 179 of file sc_report.h.

◆ m_verbosity_level

int sc_core::sc_report::m_verbosity_level
protected

Definition at line 182 of file sc_report.h.

◆ m_what

char* sc_core::sc_report::m_what
protected

Definition at line 183 of file sc_report.h.

◆ md

const sc_msg_def* sc_core::sc_report::md
protected

Definition at line 176 of file sc_report.h.

◆ msg

char* sc_core::sc_report::msg
protected

Definition at line 177 of file sc_report.h.

◆ process_name

char* sc_core::sc_report::process_name
protected

Definition at line 181 of file sc_report.h.

◆ severity

sc_severity sc_core::sc_report::severity
protected

Definition at line 175 of file sc_report.h.

◆ timestamp

sc_time* sc_core::sc_report::timestamp
protected

Definition at line 180 of file sc_report.h.


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