5#if FW_PORT_SERIALIZATION == 1
10 InputSerializePort::InputSerializePort() : InputPortBase(), m_func(nullptr) {
12 InputSerializePort::~InputSerializePort() {
15 void InputSerializePort::init() {
16 InputPortBase::init();
20 SerializeStatus InputSerializePort::invokeSerial(SerializeBufferBase &buffer) {
24 this->m_func(this->m_comp,this->m_portNum,buffer);
35 this->m_comp = callComp;
36 this->m_func = funcPtr;
39#if FW_OBJECT_TO_STRING == 1
41#if FW_OBJECT_NAMES == 1
43 if (snprintf(buffer, size,
"Input Serial Port: %s %s->(%s)", this->m_objName, this->isConnected() ?
"C" :
"NC",
44 this->isConnected() ? this->m_connObj->getObjName() :
"None") < 0) {
48 (void)snprintf(buffer,size,
"%s",
"InputSerializePort");
PlatformIntType NATIVE_INT_TYPE
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.