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));
139 static_cast<U32>(arg1));
145 static_cast<U32>(arg1),
146 static_cast<U32>(arg2));
152 static_cast<U32>(arg1),
153 static_cast<U32>(arg2),
154 static_cast<U32>(arg3));
160 static_cast<U32>(arg1),
161 static_cast<U32>(arg2),
162 static_cast<U32>(arg3),
163 static_cast<U32>(arg4));
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));
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));
PlatformUIntType NATIVE_UINT_TYPE
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
PlatformAssertArgType FwAssertArgType
void log_FATAL_AF_ASSERT_3(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3) const
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.
PlatformIntType NATIVE_INT_TYPE
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
#define FW_ASSERT_TEXT_SIZE
Size of string used to store assert description.
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
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
C++-compatible configuration header for fprime configuration.
AssertFatalAdapterComponentImpl(const char *const compName)
static constexpr SizeType BUFFER_SIZE(SizeType maxLength)
Get the size of a null-terminated string buffer.
~AssertFatalAdapterComponentImpl()
AssertFatalAdapterComponentImpl AssertFatalAdapter
Auto-generated base for AssertFatalAdapter component.
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)
bool isConnected_Log_OutputPort(FwIndexType portNum)
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