![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for BufferRepeater component. More...
#include <Svc/BufferRepeater/BufferRepeaterComponentAc.hpp>
Public Member Functions | |
| void | init (FwEnumStoreType instance=0) |
| Initialize BufferRepeaterComponentBase object. More... | |
| Fw::InputBufferSendPort * | get_portIn_InputPort (FwIndexType portNum) |
| void | set_Log_OutputPort (FwIndexType portNum, Fw::InputLogPort *port) |
| Connect port to Log[portNum]. More... | |
| void | set_Time_OutputPort (FwIndexType portNum, Fw::InputTimePort *port) |
| Connect port to Time[portNum]. More... | |
| void | set_allocate_OutputPort (FwIndexType portNum, Fw::InputBufferGetPort *port) |
| Connect port to allocate[portNum]. More... | |
| void | set_deallocate_OutputPort (FwIndexType portNum, Fw::InputBufferSendPort *port) |
| Connect port to deallocate[portNum]. More... | |
| void | set_portOut_OutputPort (FwIndexType portNum, Fw::InputBufferSendPort *port) |
| Connect port to portOut[portNum]. More... | |
Public Member Functions inherited from Fw::PassiveComponentBase | |
| void | setIdBase (const FwIdType) |
| Set the ID base. More... | |
| FwIdType | getIdBase () const |
Protected Types | |
| enum | { NUM_PORTIN_INPUT_PORTS = 1 } |
| Enumerations for numbers of typed input ports. More... | |
| 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 | { NUM_ALLOCATE_OUTPUT_PORTS = 1, NUM_DEALLOCATE_OUTPUT_PORTS = 1, NUM_PORTOUT_OUTPUT_PORTS = 10 } |
| Enumerations for numbers of typed output ports. More... | |
| enum | { EVENTID_ALLOCATIONSOFTFAILURE = 0x0, EVENTID_ALLOCATIONHARDFAILURE = 0x1 } |
| Event IDs. More... | |
Protected Member Functions | |
| BufferRepeaterComponentBase (const char *compName="") | |
| Construct BufferRepeaterComponentBase object. More... | |
| virtual | ~BufferRepeaterComponentBase () |
| Destroy BufferRepeaterComponentBase object. More... | |
| bool | isConnected_Log_OutputPort (FwIndexType portNum) |
| bool | isConnected_Time_OutputPort (FwIndexType portNum) |
| bool | isConnected_allocate_OutputPort (FwIndexType portNum) |
| bool | isConnected_deallocate_OutputPort (FwIndexType portNum) |
| bool | isConnected_portOut_OutputPort (FwIndexType portNum) |
| virtual void | portIn_handler (FwIndexType portNum, Fw::Buffer &fwBuffer)=0 |
| Handler for input port portIn. More... | |
| void | portIn_handlerBase (FwIndexType portNum, Fw::Buffer &fwBuffer) |
| Handler base-class function for input port portIn. More... | |
| Fw::Buffer | allocate_out (FwIndexType portNum, FwSizeType size) |
| Invoke output port allocate. More... | |
| void | deallocate_out (FwIndexType portNum, Fw::Buffer &fwBuffer) |
| Invoke output port deallocate. More... | |
| void | portOut_out (FwIndexType portNum, Fw::Buffer &fwBuffer) |
| Invoke output port portOut. More... | |
| void | log_WARNING_HI_AllocationSoftFailure (I32 port, FwSizeType size) const |
| void | log_FATAL_AllocationHardFailure (I32 port, FwSizeType size) const |
| Fw::Time | getTime () const |
Protected Member Functions inherited from Fw::PassiveComponentBase | |
| PassiveComponentBase (const char *name) | |
| Named constructor. More... | |
| virtual | ~PassiveComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType instance) |
| Initialization function. More... | |
| FwEnumStoreType | getInstance () const |
Protected Member Functions inherited from Fw::ObjBase | |
| ObjBase (const char *name) | |
| ObjBase constructor. More... | |
| virtual | ~ObjBase () |
| Destructor. More... | |
| void | init () |
| Object initializer. More... | |
Static Protected Member Functions | |
| static constexpr FwIndexType | getNum_portIn_InputPorts () |
| static constexpr FwIndexType | getNum_Log_OutputPorts () |
| static constexpr FwIndexType | getNum_Time_OutputPorts () |
| static constexpr FwIndexType | getNum_allocate_OutputPorts () |
| static constexpr FwIndexType | getNum_deallocate_OutputPorts () |
| static constexpr FwIndexType | getNum_portOut_OutputPorts () |
Friends | |
| class | BufferRepeaterTesterBase |
| Friend class tester to support autocoded test harness. More... | |
| class | BufferRepeaterTester |
| Friend class tester implementation to support white-box testing. More... | |
Auto-generated base for BufferRepeater component.
A component for repeating Fw.BufferSend calls to multiple consumers
Definition at line 32 of file BufferRepeaterComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
| Enumerator | |
|---|---|
| NUM_PORTIN_INPUT_PORTS | |
Definition at line 52 of file BufferRepeaterComponentAc.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 57 of file BufferRepeaterComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
| Enumerator | |
|---|---|
| NUM_ALLOCATE_OUTPUT_PORTS | |
| NUM_DEALLOCATE_OUTPUT_PORTS | |
| NUM_PORTOUT_OUTPUT_PORTS | |
Definition at line 64 of file BufferRepeaterComponentAc.hpp.
|
protected |
Event IDs.
| Enumerator | |
|---|---|
| EVENTID_ALLOCATIONSOFTFAILURE | Soft failure in allocation. |
| EVENTID_ALLOCATIONHARDFAILURE | Hard failure in allocation. |
Definition at line 71 of file BufferRepeaterComponentAc.hpp.
|
protected |
Construct BufferRepeaterComponentBase object.
| compName | The component name |
Definition at line 373 of file BufferRepeaterComponentAc.cpp.
|
protectedvirtual |
Destroy BufferRepeaterComponentBase object.
Definition at line 380 of file BufferRepeaterComponentAc.cpp.
|
protected |
Invoke output port allocate.
| portNum | The port number |
| size | The requested size |
Definition at line 493 of file BufferRepeaterComponentAc.cpp.
|
protected |
Invoke output port deallocate.
| portNum | The port number |
| fwBuffer | The buffer |
Definition at line 513 of file BufferRepeaterComponentAc.cpp.
| Fw::InputBufferSendPort * Svc::BufferRepeaterComponentBase::get_portIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 172 of file BufferRepeaterComponentAc.cpp.
|
inlinestaticprotected |
Get the number of allocate output ports
Definition at line 273 of file BufferRepeaterComponentAc.hpp.
|
inlinestaticprotected |
Get the number of deallocate output ports
Definition at line 280 of file BufferRepeaterComponentAc.hpp.
|
inlinestaticprotected |
Get the number of Log output ports
Definition at line 242 of file BufferRepeaterComponentAc.hpp.
|
inlinestaticprotected |
Get the number of portIn input ports
Definition at line 229 of file BufferRepeaterComponentAc.hpp.
|
inlinestaticprotected |
Get the number of portOut output ports
Definition at line 287 of file BufferRepeaterComponentAc.hpp.
|
inlinestaticprotected |
Get the number of Time output ports
Definition at line 260 of file BufferRepeaterComponentAc.hpp.
|
protected |
| void Svc::BufferRepeaterComponentBase::init | ( | FwEnumStoreType | instance = 0 | ) |
Initialize BufferRepeaterComponentBase object.
| instance | The instance number |
Definition at line 21 of file BufferRepeaterComponentAc.cpp.
|
protected |
Check whether port allocate is connected
| portNum | The port number |
Definition at line 431 of file BufferRepeaterComponentAc.cpp.
|
protected |
Check whether port deallocate is connected
| portNum | The port number |
Definition at line 442 of file BufferRepeaterComponentAc.cpp.
|
protected |
Check whether port Log is connected
| portNum | The port number |
Definition at line 390 of file BufferRepeaterComponentAc.cpp.
|
protected |
Check whether port portOut is connected
| portNum | The port number |
Definition at line 453 of file BufferRepeaterComponentAc.cpp.
|
protected |
Check whether port Time is connected
| portNum | The port number |
Definition at line 416 of file BufferRepeaterComponentAc.cpp.
|
protected |
Log event AllocationHardFailure
Hard failure in allocation
| port | The port index that needed an allocation |
| size | The requested allocation size |
Definition at line 659 of file BufferRepeaterComponentAc.cpp.
|
protected |
Log event AllocationSoftFailure
Soft failure in allocation
| port | The port index that needed an allocation |
| size | The requested allocation size |
Definition at line 557 of file BufferRepeaterComponentAc.cpp.
|
protectedpure virtual |
Handler for input port portIn.
| portNum | The port number |
| fwBuffer | The buffer |
|
protected |
Handler base-class function for input port portIn.
| portNum | The port number |
| fwBuffer | The buffer |
Definition at line 470 of file BufferRepeaterComponentAc.cpp.
|
protected |
Invoke output port portOut.
| portNum | The port number |
| fwBuffer | The buffer |
Definition at line 533 of file BufferRepeaterComponentAc.cpp.
| void Svc::BufferRepeaterComponentBase::set_allocate_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputBufferGetPort * | port | ||
| ) |
Connect port to allocate[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 237 of file BufferRepeaterComponentAc.cpp.
| void Svc::BufferRepeaterComponentBase::set_deallocate_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputBufferSendPort * | port | ||
| ) |
Connect port to deallocate[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 251 of file BufferRepeaterComponentAc.cpp.
| void Svc::BufferRepeaterComponentBase::set_Log_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputLogPort * | port | ||
| ) |
Connect port to Log[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 187 of file BufferRepeaterComponentAc.cpp.
| void Svc::BufferRepeaterComponentBase::set_portOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputBufferSendPort * | port | ||
| ) |
Connect port to portOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 265 of file BufferRepeaterComponentAc.cpp.
| void Svc::BufferRepeaterComponentBase::set_Time_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTimePort * | port | ||
| ) |
Connect port to Time[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 219 of file BufferRepeaterComponentAc.cpp.
|
friend |
Friend class tester implementation to support white-box testing.
Definition at line 43 of file BufferRepeaterComponentAc.hpp.
|
friend |
Friend class tester to support autocoded test harness.
Definition at line 41 of file BufferRepeaterComponentAc.hpp.