47 const char *
const compName
51 this->m_adapter.regAssertReporter(
this);
53 this->m_adapter.registerHook();
63 void AssertFatalAdapterComponentImpl::AssertFatalAdapter::reportAssert(
76 m_compPtr->reportAssert(file,lineNo,numArgs,
77 arg1,arg2,arg3,arg4,arg5,arg6);
85 void AssertFatalAdapterComponentImpl::AssertFatalAdapter::regAssertReporter(AssertFatalAdapterComponentImpl* compPtr) {
86 this->m_compPtr = compPtr;
92 AssertFatalAdapterComponentImpl::AssertFatalAdapter::~AssertFatalAdapter() {
95 void AssertFatalAdapterComponentImpl::AssertFatalAdapter::doAssert() {
112 #if FW_ASSERT_LEVEL == FW_FILEID_ASSERT 114 fileArg.
format(
"0x%08" PRIX32,file);
120 Fw::defaultReportAssert(file,static_cast<U32>(lineNo),numArgs,arg1,arg2,arg3,arg4,arg5,arg6,msg,
sizeof(msg));
133 static_cast<U32>(lineNo));
138 static_cast<U32>(lineNo),
139 static_cast<U32>(arg1));
144 static_cast<U32>(lineNo),
145 static_cast<U32>(arg1),
146 static_cast<U32>(arg2));
151 static_cast<U32>(lineNo),
152 static_cast<U32>(arg1),
153 static_cast<U32>(arg2),
154 static_cast<U32>(arg3));
159 static_cast<U32>(lineNo),
160 static_cast<U32>(arg1),
161 static_cast<U32>(arg2),
162 static_cast<U32>(arg3),
163 static_cast<U32>(arg4));
168 static_cast<U32>(lineNo),
169 static_cast<U32>(arg1),
170 static_cast<U32>(arg2),
171 static_cast<U32>(arg3),
172 static_cast<U32>(arg4),
173 static_cast<U32>(arg5));
178 static_cast<U32>(lineNo),
179 static_cast<U32>(arg1),
180 static_cast<U32>(arg2),
181 static_cast<U32>(arg3),
182 static_cast<U32>(arg4),
183 static_cast<U32>(arg5),
184 static_cast<U32>(arg6));
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
void defaultReportAssert(FILE_NAME_ARG file, FwSizeType lineNo, FwSizeType numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6, CHAR *destBuffer, FwSizeType buffSize)
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
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.
AssertFatalAdapterComponentImpl(const char *const compName)
static constexpr SizeType BUFFER_SIZE(SizeType maxLength)
Get the size of a null-terminated string buffer.
~AssertFatalAdapterComponentImpl()
RateGroupDivider component implementation.
AssertFatalAdapterComponentImpl AssertFatalAdapter
Auto-generated base for AssertFatalAdapter component.
bool isConnected_Log_OutputPort(FwIndexType portNum)
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