sc_report.h File Reference

#include <exception>
#include <string>
#include "sysc/utils/sc_report_handler.h"

Include dependency graph for sc_report.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sc_core

Classes

class  sc_core::sc_report

Defines

#define SC_REPORT_H   1
#define SC_DEFAULT_INFO_ACTIONS   (SC_LOG | SC_DISPLAY)
#define SC_DEFAULT_WARNING_ACTIONS   (SC_LOG | SC_DISPLAY)
#define SC_DEFAULT_ERROR_ACTIONS   (SC_LOG | SC_CACHE_REPORT | SC_THROW)
#define SC_DEFAULT_FATAL_ACTIONS   (SC_LOG | SC_DISPLAY | SC_CACHE_REPORT | SC_ABORT)
#define SC_REPORT_INFO(id, msg)
#define SC_REPORT_WARNING(id, msg)
#define SC_REPORT_ERROR(id, msg)
#define SC_REPORT_FATAL(id, msg)
#define sc_assert(expr)   ((void) ((expr) ? 0 : (SC_REPORT_FATAL( SC_ID_ASSERTION_FAILED_ , #expr ), 0)))

Typedefs

typedef unsigned sc_core::sc_actions
typedef std::exception sc_core::sc_exception

Enumerations

enum  sc_core::sc_severity {
  sc_core::SC_INFO = 0, sc_core::SC_WARNING, sc_core::SC_ERROR, sc_core::SC_FATAL,
  sc_core::SC_MAX_SEVERITY
}
enum  {
  sc_core::SC_UNSPECIFIED = 0x0000, sc_core::SC_DO_NOTHING = 0x0001, sc_core::SC_THROW = 0x0002, sc_core::SC_LOG = 0x0004,
  sc_core::SC_DISPLAY = 0x0008, sc_core::SC_CACHE_REPORT = 0x0010, sc_core::SC_INTERRUPT = 0x0020, sc_core::SC_STOP = 0x0040,
  sc_core::SC_ABORT = 0x0080
}

Functions

const std::string sc_core::sc_report_compose_message (const sc_report &)

Variables

const char sc_core::SC_ID_UNKNOWN_ERROR_ [] = "unknown error"
const char sc_core::SC_ID_WITHOUT_MESSAGE_ [] = ""
const char sc_core::SC_ID_NOT_IMPLEMENTED_ [] = "not implemented"
const char sc_core::SC_ID_INTERNAL_ERROR_ [] = "internal error"
const char sc_core::SC_ID_ASSERTION_FAILED_ [] = "assertion failed"
const char sc_core::SC_ID_OUT_OF_BOUNDS_ [] = "out of bounds"


Define Documentation

#define sc_assert ( expr   )     ((void) ((expr) ? 0 : (SC_REPORT_FATAL( SC_ID_ASSERTION_FAILED_ , #expr ), 0)))

Definition at line 224 of file sc_report.h.

#define SC_DEFAULT_ERROR_ACTIONS   (SC_LOG | SC_CACHE_REPORT | SC_THROW)

Definition at line 183 of file sc_report.h.

#define SC_DEFAULT_FATAL_ACTIONS   (SC_LOG | SC_DISPLAY | SC_CACHE_REPORT | SC_ABORT)

Definition at line 184 of file sc_report.h.

#define SC_DEFAULT_INFO_ACTIONS   (SC_LOG | SC_DISPLAY)

Definition at line 181 of file sc_report.h.

#define SC_DEFAULT_WARNING_ACTIONS   (SC_LOG | SC_DISPLAY)

Definition at line 182 of file sc_report.h.

#define SC_REPORT_ERROR ( id,
msg   ) 

Value:

sc_core::sc_report_handler::report( \
        sc_core::SC_ERROR, id, msg, __FILE__, __LINE__ )

Definition at line 202 of file sc_report.h.

#define SC_REPORT_FATAL ( id,
msg   ) 

Value:

sc_core::sc_report_handler::report( \
        sc_core::SC_FATAL, id, msg, __FILE__, __LINE__ )

Definition at line 206 of file sc_report.h.

#define SC_REPORT_H   1

Definition at line 2 of file sc_report.h.

#define SC_REPORT_INFO ( id,
msg   ) 

Value:

sc_core::sc_report_handler::report( \
        sc_core::SC_INFO, id, msg, __FILE__, __LINE__ )

Definition at line 194 of file sc_report.h.

#define SC_REPORT_WARNING ( id,
msg   ) 

Value:

Definition at line 198 of file sc_report.h.


Generated on Wed Jan 21 15:32:11 2009 for SystemC by  doxygen 1.5.5