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,lineNo,numArgs,arg1,arg2,arg3,arg4,arg5,arg6,msg,
sizeof(msg));
141 static_cast<U32
>(arg1));
147 static_cast<U32
>(arg1),
148 static_cast<U32
>(arg2));
154 static_cast<U32
>(arg1),
155 static_cast<U32
>(arg2),
156 static_cast<U32
>(arg3));
162 static_cast<U32
>(arg1),
163 static_cast<U32
>(arg2),
164 static_cast<U32
>(arg3),
165 static_cast<U32
>(arg4));
171 static_cast<U32
>(arg1),
172 static_cast<U32
>(arg2),
173 static_cast<U32
>(arg3),
174 static_cast<U32
>(arg4),
175 static_cast<U32
>(arg5));
181 static_cast<U32
>(arg1),
182 static_cast<U32
>(arg2),
183 static_cast<U32
>(arg3),
184 static_cast<U32
>(arg4),
185 static_cast<U32
>(arg5),
186 static_cast<U32
>(arg6));
PlatformIntType NATIVE_INT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
PlatformAssertArgType FwAssertArgType
C++-compatible configuration header for fprime configuration.
#define FW_ASSERT_TEXT_SIZE
Size of string used to store assert description.
static void log(const char *format,...)
log a formated string with supplied arguments
void format(const CHAR *formatString,...)
write formatted string to buffer
static constexpr SizeType BUFFER_SIZE(SizeType maxLength)
Get the size of a null-terminated string buffer.
Auto-generated base for AssertFatalAdapter component.
void log_FATAL_AF_ASSERT_2(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2)
void log_FATAL_AF_ASSERT_1(const Fw::StringBase &file, U32 line, U32 arg1)
void log_FATAL_AF_ASSERT_3(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3)
void log_FATAL_AF_ASSERT_0(const Fw::StringBase &file, U32 line)
bool isConnected_Log_OutputPort(FwIndexType portNum)
void log_FATAL_AF_UNEXPECTED_ASSERT(const Fw::StringBase &file, U32 line, U32 numArgs)
void log_FATAL_AF_ASSERT_5(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5)
void log_FATAL_AF_ASSERT_6(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5, U32 arg6)
void log_FATAL_AF_ASSERT_4(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4)
~AssertFatalAdapterComponentImpl()
void reportAssert(FILE_NAME_ARG file, NATIVE_UINT_TYPE lineNo, NATIVE_UINT_TYPE numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6)
Report the assert as a FATAL.
AssertFatalAdapterComponentImpl(const char *const compName)
void defaultReportAssert(FILE_NAME_ARG file, NATIVE_UINT_TYPE lineNo, NATIVE_UINT_TYPE numArgs, FwAssertArgType arg1, FwAssertArgType arg2, FwAssertArgType arg3, FwAssertArgType arg4, FwAssertArgType arg5, FwAssertArgType arg6, CHAR *destBuffer, NATIVE_INT_TYPE buffSize)
AssertFatalAdapterComponentImpl AssertFatalAdapter