33 this->m_adapter.regAssertReporter(
this);
35 this->m_adapter.registerHook();
37 this->m_assertCount = 0;
42 void AssertFatalAdapterComponentImpl::AssertFatalAdapter::reportAssert(
FILE_NAME_ARG file,
52 m_compPtr->reportAssert(
file, lineNo, numArgs, arg1, arg2, arg3, arg4, arg5, arg6);
60 void AssertFatalAdapterComponentImpl::AssertFatalAdapter::regAssertReporter(AssertFatalAdapterComponentImpl* compPtr) {
61 this->m_compPtr = compPtr;
66 AssertFatalAdapterComponentImpl::AssertFatalAdapter::~AssertFatalAdapter() {}
68 void AssertFatalAdapterComponentImpl::AssertFatalAdapter::doAssert() {
82 #if FW_ASSERT_LEVEL == FW_FILEID_ASSERT 97 Fw::formatAssertMessage(
file, lineNo, numArgs, arg1, arg2, arg3, arg4, arg5, arg6, msg,
98 static_cast<FwSizeType>(
sizeof(msg)));
102 this->m_assertCount++;
109 this->m_assertCount--;
123 static_cast<U32>(arg2));
127 static_cast<U32>(arg2), static_cast<U32>(arg3));
131 static_cast<U32>(arg2), static_cast<U32>(arg3), static_cast<U32>(arg4));
135 static_cast<U32>(arg2), static_cast<U32>(arg3), static_cast<U32>(arg4),
136 static_cast<U32>(arg5));
140 static_cast<U32>(arg2), static_cast<U32>(arg3), static_cast<U32>(arg4),
141 static_cast<U32>(arg5), static_cast<U32>(arg6));
148 this->m_assertCount--;
void formatAssertMessage(FILE_NAME_ARG file, FwSizeType lineNo, FwSizeType numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6, CHAR *destBuffer, FwSizeType buffSize)
format an assert message
void log_FATAL_AF_UNEXPECTED_ASSERT(const Fw::StringBase &file, U32 line, U32 numArgs) const
void log_FATAL_AF_ASSERT_1(const Fw::StringBase &file, U32 line, U32 arg1) const
PlatformSizeType FwSizeType
void log_FATAL_AF_ASSERT_3(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3) const
static void log(const char *format,...)
log a formated string with supplied arguments
void log_FATAL_AF_ASSERT_2(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2) const
const char * string_last_n(const char *source, const FwSizeType n, const FwSizeType buffer_size)
get a pointer to the last N characters of a string
void log_FATAL_AF_ASSERT_5(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5) const
void log_FATAL_AF_ASSERT_4(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4) const
bool isConnected_Log_OutputPort(FwIndexType portNum) const
void log_FATAL_AF_ASSERT_0(const Fw::StringBase &file, U32 line) const
void reportAssert(FILE_NAME_ARG file, FwSizeType lineNo, FwSizeType numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6)
Report the assert as a FATAL.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
#define FW_ASSERT_TEXT_SIZE
Size of string used to store assert description // NO_CODESONAR LANG.PREPROC.MACROSTART/END.
AssertFatalAdapterComponentImpl(const char *const compName)
static U32 min(const U32 a, const U32 b)
~AssertFatalAdapterComponentImpl()
RateGroupDivider component implementation.
static constexpr SizeType BUFFER_SIZE(SizeType maxLength)
Get the size of a null-terminated string buffer.
AssertFatalAdapterComponentImpl AssertFatalAdapter
Auto-generated base for AssertFatalAdapter component.
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.
void log_FATAL_AF_ASSERT_6(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5, U32 arg6) const