![]() |
F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for AssertFatalAdapter component. More...
#include <Svc/AssertFatalAdapter/AssertFatalAdapterComponentAc.hpp>
Public Member Functions | |
void | init (NATIVE_INT_TYPE instance=0) |
Initialize AssertFatalAdapterComponentBase object. More... | |
void | set_Log_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputLogPort *port) |
Connect port to Log[portNum]. More... | |
void | set_Time_OutputPort (NATIVE_INT_TYPE portNum, Fw::InputTimePort *port) |
Connect port to Time[portNum]. More... | |
![]() | |
void | setIdBase (const U32) |
Set the ID base. More... | |
U32 | getIdBase () const |
Protected Types | |
enum | { NUM_LOG_OUTPUT_PORTS = 1 , NUM_LOGTEXT_OUTPUT_PORTS = 1 , NUM_TIME_OUTPUT_PORTS = 1 } |
Enumerations for numbers of special output ports. More... | |
enum | { EVENTID_AF_ASSERT_0 = 0x0 , EVENTID_AF_ASSERT_1 = 0x1 , EVENTID_AF_ASSERT_2 = 0x2 , EVENTID_AF_ASSERT_3 = 0x3 , EVENTID_AF_ASSERT_4 = 0x4 , EVENTID_AF_ASSERT_5 = 0x5 , EVENTID_AF_ASSERT_6 = 0x6 , EVENTID_AF_UNEXPECTED_ASSERT = 0x7 } |
Event IDs. More... | |
Protected Member Functions | |
AssertFatalAdapterComponentBase (const char *compName="") | |
Construct AssertFatalAdapterComponentBase object. More... | |
virtual | ~AssertFatalAdapterComponentBase () |
Destroy AssertFatalAdapterComponentBase object. More... | |
NATIVE_INT_TYPE | getNum_Log_OutputPorts () const |
NATIVE_INT_TYPE | getNum_Time_OutputPorts () const |
bool | isConnected_Log_OutputPort (NATIVE_INT_TYPE portNum) |
bool | isConnected_Time_OutputPort (NATIVE_INT_TYPE portNum) |
void | log_FATAL_AF_ASSERT_0 (const Fw::LogStringArg &file, U32 line) |
void | log_FATAL_AF_ASSERT_1 (const Fw::LogStringArg &file, U32 line, U32 arg1) |
void | log_FATAL_AF_ASSERT_2 (const Fw::LogStringArg &file, U32 line, U32 arg1, U32 arg2) |
void | log_FATAL_AF_ASSERT_3 (const Fw::LogStringArg &file, U32 line, U32 arg1, U32 arg2, U32 arg3) |
void | log_FATAL_AF_ASSERT_4 (const Fw::LogStringArg &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4) |
void | log_FATAL_AF_ASSERT_5 (const Fw::LogStringArg &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5) |
void | log_FATAL_AF_ASSERT_6 (const Fw::LogStringArg &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5, U32 arg6) |
void | log_FATAL_AF_UNEXPECTED_ASSERT (const Fw::LogStringArg &file, U32 line, U32 numArgs) |
Fw::Time | getTime () |
![]() | |
PassiveComponentBase (const char *name) | |
Named constructor. More... | |
virtual | ~PassiveComponentBase () |
Destructor. More... | |
void | init (NATIVE_INT_TYPE instance) |
Initialization function. More... | |
NATIVE_INT_TYPE | getInstance () const |
![]() | |
ObjBase (const char *name) | |
ObjBase constructor. More... | |
virtual | ~ObjBase () |
Destructor. More... | |
void | init () |
Object initializer. More... | |
Friends | |
class | AssertFatalAdapterComponentBaseFriend |
Friend class for white-box testing. More... | |
Auto-generated base for AssertFatalAdapter component.
A component for turning FW_ASSERTs into FATALs
Definition at line 27 of file AssertFatalAdapterComponentAc.hpp.
|
protected |
Enumerations for numbers of special output ports.
Enumerator | |
---|---|
NUM_LOG_OUTPUT_PORTS | |
NUM_LOGTEXT_OUTPUT_PORTS | |
NUM_TIME_OUTPUT_PORTS |
Definition at line 45 of file AssertFatalAdapterComponentAc.hpp.
|
protected |
Event IDs.
Definition at line 52 of file AssertFatalAdapterComponentAc.hpp.
|
protected |
Construct AssertFatalAdapterComponentBase object.
compName | The component name |
Definition at line 219 of file AssertFatalAdapterComponentAc.cpp.
|
protectedvirtual |
Destroy AssertFatalAdapterComponentBase object.
Definition at line 226 of file AssertFatalAdapterComponentAc.cpp.
|
protected |
Get the number of Log output ports
Definition at line 236 of file AssertFatalAdapterComponentAc.cpp.
|
protected |
Get the number of Time output ports
Definition at line 252 of file AssertFatalAdapterComponentAc.cpp.
|
protected |
Get the time
\return The current time
Definition at line 1591 of file AssertFatalAdapterComponentAc.cpp.
void Svc::AssertFatalAdapterComponentBase::init | ( | NATIVE_INT_TYPE | instance = 0 | ) |
Initialize AssertFatalAdapterComponentBase object.
instance | The instance number |
Definition at line 21 of file AssertFatalAdapterComponentAc.cpp.
|
protected |
Check whether port Log is connected
portNum | The port number |
Definition at line 262 of file AssertFatalAdapterComponentAc.cpp.
|
protected |
Check whether port Time is connected
portNum | The port number |
Definition at line 288 of file AssertFatalAdapterComponentAc.cpp.
|
protected |
Log event AF_ASSERT_0
An assert happened
file | The source file of the assert |
line | Line number of the assert |
Definition at line 303 of file AssertFatalAdapterComponentAc.cpp.
|
protected |
Log event AF_ASSERT_1
An assert happened
file | The source file of the assert |
line | Line number of the assert |
arg1 | First assert argument |
Definition at line 414 of file AssertFatalAdapterComponentAc.cpp.
|
protected |
Log event AF_ASSERT_2
An assert happened
file | The source file of the assert |
line | Line number of the assert |
arg1 | First assert argument |
arg2 | Second assert argument |
Definition at line 543 of file AssertFatalAdapterComponentAc.cpp.
|
protected |
Log event AF_ASSERT_3
An assert happened
file | The source file of the assert |
line | Line number of the assert |
arg1 | First assert argument |
arg2 | Second assert argument |
arg3 | Third assert argument |
Definition at line 690 of file AssertFatalAdapterComponentAc.cpp.
|
protected |
Log event AF_ASSERT_4
An assert happened
file | The source file of the assert |
line | Line number of the assert |
arg1 | First assert argument |
arg2 | Second assert argument |
arg3 | Third assert argument |
arg4 | Fourth assert argument |
Definition at line 855 of file AssertFatalAdapterComponentAc.cpp.
|
protected |
Log event AF_ASSERT_5
An assert happened
file | The source file of the assert |
line | Line number of the assert |
arg1 | First assert argument |
arg2 | Second assert argument |
arg3 | Third assert argument |
arg4 | Fourth assert argument |
arg5 | Fifth assert argument |
Definition at line 1038 of file AssertFatalAdapterComponentAc.cpp.
|
protected |
Log event AF_ASSERT_6
An assert happened
file | The source file of the assert |
line | Line number of the assert |
arg1 | First assert argument |
arg2 | Second assert argument |
arg3 | Third assert argument |
arg4 | Fourth assert argument |
arg5 | Fifth assert argument |
arg6 | Sixth assert argument |
Definition at line 1239 of file AssertFatalAdapterComponentAc.cpp.
|
protected |
Log event AF_UNEXPECTED_ASSERT
An unexpected assert happened
file | The source file of the assert |
line | Line number of the assert |
numArgs | Number of unexpected arguments |
Definition at line 1458 of file AssertFatalAdapterComponentAc.cpp.
void Svc::AssertFatalAdapterComponentBase::set_Log_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Fw::InputLogPort * | port | ||
) |
Connect port to Log[portNum].
portNum | The port number |
port | The input port |
Definition at line 115 of file AssertFatalAdapterComponentAc.cpp.
void Svc::AssertFatalAdapterComponentBase::set_Time_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
Fw::InputTimePort * | port | ||
) |
Connect port to Time[portNum].
portNum | The port number |
port | The input port |
Definition at line 147 of file AssertFatalAdapterComponentAc.cpp.
|
friend |
Friend class for white-box testing.
Definition at line 36 of file AssertFatalAdapterComponentAc.hpp.