10 #if FW_ENABLE_TEXT_LOGGING
32 this->m_comDataIn_InputPort[port].
init();
37 this->m_comDataIn_InputPort[port].
setPortNum(port);
39 #if FW_OBJECT_NAMES == 1
43 this->m_objName.toChar(),
46 this->m_comDataIn_InputPort[port].setObjName(portName.
toChar());
56 this->m_drvConnected_InputPort[port].
init();
61 this->m_drvConnected_InputPort[port].
setPortNum(port);
63 #if FW_OBJECT_NAMES == 1
67 this->m_objName.toChar(),
70 this->m_drvConnected_InputPort[port].setObjName(portName.
toChar());
80 this->m_drvDataIn_InputPort[port].
init();
85 this->m_drvDataIn_InputPort[port].
setPortNum(port);
87 #if FW_OBJECT_NAMES == 1
91 this->m_objName.toChar(),
94 this->m_drvDataIn_InputPort[port].setObjName(portName.
toChar());
104 this->m_comDataOut_OutputPort[port].
init();
106 #if FW_OBJECT_NAMES == 1
110 this->m_objName.toChar(),
113 this->m_comDataOut_OutputPort[port].setObjName(portName.
toChar());
123 this->m_comStatus_OutputPort[port].
init();
125 #if FW_OBJECT_NAMES == 1
129 this->m_objName.toChar(),
132 this->m_comStatus_OutputPort[port].setObjName(portName.
toChar());
142 this->m_drvDataOut_OutputPort[port].
init();
144 #if FW_OBJECT_NAMES == 1
148 this->m_objName.toChar(),
151 this->m_drvDataOut_OutputPort[port].setObjName(portName.
toChar());
168 return &this->m_comDataIn_InputPort[portNum];
179 return &this->m_drvConnected_InputPort[portNum];
190 return &this->m_drvDataIn_InputPort[portNum];
208 this->m_comDataOut_OutputPort[portNum].
addCallPort(port);
222 this->m_comStatus_OutputPort[portNum].
addCallPort(port);
236 this->m_drvDataOut_OutputPort[portNum].
addCallPort(port);
239 #if FW_PORT_SERIALIZATION
248 Fw::InputSerializePort* port
256 this->m_comDataOut_OutputPort[portNum].registerSerialPort(port);
262 Fw::InputSerializePort* port
270 this->m_comStatus_OutputPort[portNum].registerSerialPort(port);
281 Fw::PassiveComponentBase(compName)
348 return this->m_comDataOut_OutputPort[portNum].
isConnected();
359 return this->m_comStatus_OutputPort[portNum].
isConnected();
370 return this->m_drvDataOut_OutputPort[portNum].
isConnected();
451 this->m_comDataOut_OutputPort[portNum].
invoke(
467 this->m_comStatus_OutputPort[portNum].
invoke(
482 return this->m_drvDataOut_OutputPort[portNum].
invoke(
506 void ComStubComponentBase ::
514 compPtr->drvConnected_handlerBase(portNum);
517 void ComStubComponentBase ::
527 compPtr->drvDataIn_handlerBase(
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
PlatformIndexType FwIndexType
void init()
Initialization function.
void addCallPort(InputByteStreamRecvPort *callPort)
Register an input port.
void invoke(Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Invoke a port interface.
void init()
Initialization function.
Drv::SendStatus invoke(Fw::Buffer &sendBuffer)
Invoke a port interface.
void addCallPort(InputByteStreamSendPort *callPort)
Register an input port.
Status associated with the received data.
Status returned by the send call.
void init()
Object initializer.
const char * toChar() const
void invoke(Fw::Success &condition)
Invoke a port interface.
void init()
Initialization function.
void addCallPort(InputSuccessConditionPort *callPort)
Register an input port.
void format(const CHAR *formatString,...)
write formatted string to buffer
Auto-generated base for ComStub component.
bool isConnected_comStatus_OutputPort(FwIndexType portNum)
bool isConnected_comDataOut_OutputPort(FwIndexType portNum)
FwIndexType getNum_comStatus_OutputPorts() const
FwIndexType getNum_drvConnected_InputPorts() const
virtual void drvDataIn_handler(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)=0
Handler for input port drvDataIn.
FwIndexType getNum_comDataOut_OutputPorts() const
void comStatus_out(FwIndexType portNum, Fw::Success &condition)
Invoke output port comStatus.
FwIndexType getNum_drvDataOut_OutputPorts() const
virtual void drvConnected_handler(FwIndexType portNum)=0
Handler for input port drvConnected.
FwIndexType getNum_drvDataIn_InputPorts() const
void comDataOut_out(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Invoke output port comDataOut.
bool isConnected_drvDataOut_OutputPort(FwIndexType portNum)
virtual Drv::SendStatus comDataIn_handler(FwIndexType portNum, Fw::Buffer &sendBuffer)=0
Handler for input port comDataIn.
void drvDataIn_handlerBase(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Handler base-class function for input port drvDataIn.
Drv::SendStatus drvDataOut_out(FwIndexType portNum, Fw::Buffer &sendBuffer)
Invoke output port drvDataOut.
virtual ~ComStubComponentBase()
Destroy ComStubComponentBase object.
void set_comStatus_OutputPort(FwIndexType portNum, Fw::InputSuccessConditionPort *port)
Connect port to comStatus[portNum].
ComStubComponentBase(const char *compName="")
Construct ComStubComponentBase object.
Drv::SendStatus comDataIn_handlerBase(FwIndexType portNum, Fw::Buffer &sendBuffer)
Handler base-class function for input port comDataIn.
Drv::InputByteStreamSendPort * get_comDataIn_InputPort(FwIndexType portNum)
FwIndexType getNum_comDataIn_InputPorts() const
void set_comDataOut_OutputPort(FwIndexType portNum, Drv::InputByteStreamRecvPort *port)
Connect port to comDataOut[portNum].
Drv::InputByteStreamReadyPort * get_drvConnected_InputPort(FwIndexType portNum)
Drv::InputByteStreamRecvPort * get_drvDataIn_InputPort(FwIndexType portNum)
void drvConnected_handlerBase(FwIndexType portNum)
Handler base-class function for input port drvConnected.
void set_drvDataOut_OutputPort(FwIndexType portNum, Drv::InputByteStreamSendPort *port)
Connect port to drvDataOut[portNum].