9 #if FW_ENABLE_TEXT_LOGGING 41 class ComponentIpcSerializableBuffer :
51 MAX_DATA_SIZE =
sizeof(BuffUnion),
53 SERIALIZATION_SIZE = DATA_OFFSET + MAX_DATA_SIZE
57 return sizeof(m_buff);
64 const U8* getBuffAddr()
const {
70 U8 m_buff[SERIALIZATION_SIZE];
94 this->m_cmdIn_InputPort[port].
init();
99 this->m_cmdIn_InputPort[port].
setPortNum(port);
101 #if FW_OBJECT_NAMES == 1 105 this->m_objName.toChar(),
108 this->m_cmdIn_InputPort[port].setObjName(portName.
toChar());
118 this->m_pingIn_InputPort[port].
init();
123 this->m_pingIn_InputPort[port].
setPortNum(port);
125 #if FW_OBJECT_NAMES == 1 129 this->m_objName.toChar(),
132 this->m_pingIn_InputPort[port].setObjName(portName.
toChar());
142 this->m_schedIn_InputPort[port].
init();
147 this->m_schedIn_InputPort[port].
setPortNum(port);
149 #if FW_OBJECT_NAMES == 1 153 this->m_objName.toChar(),
156 this->m_schedIn_InputPort[port].setObjName(portName.
toChar());
160 #if FW_ENABLE_TEXT_LOGGING == 1 164 port < static_cast<FwIndexType>(this->getNum_LogText_OutputPorts());
167 this->m_LogText_OutputPort[port].
init();
169 #if FW_OBJECT_NAMES == 1 173 this->m_objName.toChar(),
176 this->m_LogText_OutputPort[port].setObjName(portName.
toChar());
187 this->m_cmdRegOut_OutputPort[port].
init();
189 #if FW_OBJECT_NAMES == 1 193 this->m_objName.toChar(),
196 this->m_cmdRegOut_OutputPort[port].setObjName(portName.
toChar());
206 this->m_cmdResponseOut_OutputPort[port].
init();
208 #if FW_OBJECT_NAMES == 1 212 this->m_objName.toChar(),
215 this->m_cmdResponseOut_OutputPort[port].setObjName(portName.
toChar());
225 this->m_eventOut_OutputPort[port].
init();
227 #if FW_OBJECT_NAMES == 1 231 this->m_objName.toChar(),
234 this->m_eventOut_OutputPort[port].setObjName(portName.
toChar());
244 this->m_timeCaller_OutputPort[port].
init();
246 #if FW_OBJECT_NAMES == 1 250 this->m_objName.toChar(),
253 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
263 this->m_tlmOut_OutputPort[port].
init();
265 #if FW_OBJECT_NAMES == 1 269 this->m_objName.toChar(),
272 this->m_tlmOut_OutputPort[port].setObjName(portName.
toChar());
282 this->m_pingOut_OutputPort[port].
init();
284 #if FW_OBJECT_NAMES == 1 288 this->m_objName.toChar(),
291 this->m_pingOut_OutputPort[port].setObjName(portName.
toChar());
298 static_cast<FwSizeType>(ComponentIpcSerializableBuffer::SERIALIZATION_SIZE)
302 static_cast<FwAssertArgType>(qStat)
315 static_cast<FwAssertArgType>(portNum)
318 return &this->m_cmdIn_InputPort[portNum];
330 static_cast<FwAssertArgType>(portNum)
333 return &this->m_pingIn_InputPort[portNum];
341 static_cast<FwAssertArgType>(portNum)
344 return &this->m_schedIn_InputPort[portNum];
351 #if FW_ENABLE_TEXT_LOGGING == 1 353 void FileManagerComponentBase ::
354 set_LogText_OutputPort(
360 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
361 static_cast<FwAssertArgType>(portNum)
364 this->m_LogText_OutputPort[portNum].addCallPort(port);
377 static_cast<FwAssertArgType>(portNum)
380 this->m_cmdRegOut_OutputPort[portNum].
addCallPort(port);
391 static_cast<FwAssertArgType>(portNum)
394 this->m_cmdResponseOut_OutputPort[portNum].
addCallPort(port);
405 static_cast<FwAssertArgType>(portNum)
408 this->m_eventOut_OutputPort[portNum].
addCallPort(port);
419 static_cast<FwAssertArgType>(portNum)
422 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
433 static_cast<FwAssertArgType>(portNum)
436 this->m_tlmOut_OutputPort[portNum].
addCallPort(port);
451 static_cast<FwAssertArgType>(portNum)
454 this->m_pingOut_OutputPort[portNum].
addCallPort(port);
457 #if FW_PORT_SERIALIZATION 463 #if FW_ENABLE_TEXT_LOGGING == 1 465 void FileManagerComponentBase ::
466 set_LogText_OutputPort(
468 Fw::InputSerializePort* port
472 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
473 static_cast<FwAssertArgType>(portNum)
476 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
484 Fw::InputSerializePort* port
489 static_cast<FwAssertArgType>(portNum)
492 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
498 Fw::InputSerializePort* port
503 static_cast<FwAssertArgType>(portNum)
506 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
512 Fw::InputSerializePort* port
517 static_cast<FwAssertArgType>(portNum)
520 this->m_eventOut_OutputPort[portNum].registerSerialPort(port);
526 Fw::InputSerializePort* port
531 static_cast<FwAssertArgType>(portNum)
534 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
540 Fw::InputSerializePort* port
545 static_cast<FwAssertArgType>(portNum)
548 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
553 #if FW_PORT_SERIALIZATION 562 Fw::InputSerializePort* port
567 static_cast<FwAssertArgType>(portNum)
570 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
582 FW_ASSERT(this->m_cmdRegOut_OutputPort[0].isConnected());
584 this->m_cmdRegOut_OutputPort[0].
invoke(
588 this->m_cmdRegOut_OutputPort[0].
invoke(
592 this->m_cmdRegOut_OutputPort[0].
invoke(
596 this->m_cmdRegOut_OutputPort[0].
invoke(
600 this->m_cmdRegOut_OutputPort[0].
invoke(
604 this->m_cmdRegOut_OutputPort[0].
invoke(
608 this->m_cmdRegOut_OutputPort[0].
invoke(
612 this->m_cmdRegOut_OutputPort[0].
invoke(
616 this->m_cmdRegOut_OutputPort[0].
invoke(
627 Fw::ActiveComponentBase(compName)
642 #if FW_ENABLE_TEXT_LOGGING == 1 644 bool FileManagerComponentBase ::
645 isConnected_LogText_OutputPort(
FwIndexType portNum)
648 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
649 static_cast<FwAssertArgType>(portNum)
652 return this->m_LogText_OutputPort[portNum].isConnected();
662 static_cast<FwAssertArgType>(portNum)
665 return this->m_cmdRegOut_OutputPort[portNum].
isConnected();
673 static_cast<FwAssertArgType>(portNum)
676 return this->m_cmdResponseOut_OutputPort[portNum].
isConnected();
684 static_cast<FwAssertArgType>(portNum)
687 return this->m_eventOut_OutputPort[portNum].
isConnected();
695 static_cast<FwAssertArgType>(portNum)
698 return this->m_timeCaller_OutputPort[portNum].
isConnected();
706 static_cast<FwAssertArgType>(portNum)
709 return this->m_tlmOut_OutputPort[portNum].
isConnected();
721 static_cast<FwAssertArgType>(portNum)
724 return this->m_pingOut_OutputPort[portNum].
isConnected();
742 static_cast<FwAssertArgType>(portNum)
750 ComponentIpcSerializableBuffer msg;
754 _status = msg.serializeFrom(
755 static_cast<FwEnumStoreType>(PINGIN_PING)
759 static_cast<FwAssertArgType>(_status)
763 _status = msg.serializeFrom(portNum);
766 static_cast<FwAssertArgType>(_status)
770 _status = msg.serializeFrom(key);
773 static_cast<FwAssertArgType>(_status)
782 static_cast<FwAssertArgType>(qStatus)
795 static_cast<FwAssertArgType>(portNum)
834 static_cast<FwAssertArgType>(portNum)
838 this->m_pingOut_OutputPort[portNum].isConnected(),
839 static_cast<FwAssertArgType>(portNum)
841 this->m_pingOut_OutputPort[portNum].
invoke(
853 ComponentIpcSerializableBuffer msg;
857 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_RUN));
860 static_cast<FwAssertArgType>(_status)
864 _status = msg.serializeFrom(static_cast<FwIndexType>(0));
867 static_cast<FwAssertArgType>(_status)
874 if (qStatus == Os::Queue::Status::FULL) {
881 static_cast<FwAssertArgType>(qStatus)
896 FW_ASSERT(this->m_cmdResponseOut_OutputPort[0].isConnected());
897 this->m_cmdResponseOut_OutputPort[0].
invoke(opCode, cmdSeq, response);
918 ComponentIpcSerializableBuffer msg;
922 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_CREATEDIRECTORY));
925 static_cast<FwAssertArgType>(_status)
931 _status = msg.serializeFrom(port);
934 static_cast<FwAssertArgType>(_status)
937 _status = msg.serializeFrom(opCode);
940 static_cast<FwAssertArgType>(_status)
943 _status = msg.serializeFrom(cmdSeq);
946 static_cast<FwAssertArgType>(_status)
949 _status = msg.serializeFrom(args);
952 static_cast<FwAssertArgType>(_status)
961 static_cast<FwAssertArgType>(qStatus)
977 ComponentIpcSerializableBuffer msg;
981 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_MOVEFILE));
984 static_cast<FwAssertArgType>(_status)
990 _status = msg.serializeFrom(port);
993 static_cast<FwAssertArgType>(_status)
996 _status = msg.serializeFrom(opCode);
999 static_cast<FwAssertArgType>(_status)
1002 _status = msg.serializeFrom(cmdSeq);
1005 static_cast<FwAssertArgType>(_status)
1008 _status = msg.serializeFrom(args);
1011 static_cast<FwAssertArgType>(_status)
1020 static_cast<FwAssertArgType>(qStatus)
1036 ComponentIpcSerializableBuffer msg;
1040 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_REMOVEDIRECTORY));
1043 static_cast<FwAssertArgType>(_status)
1049 _status = msg.serializeFrom(port);
1052 static_cast<FwAssertArgType>(_status)
1055 _status = msg.serializeFrom(opCode);
1058 static_cast<FwAssertArgType>(_status)
1061 _status = msg.serializeFrom(cmdSeq);
1064 static_cast<FwAssertArgType>(_status)
1067 _status = msg.serializeFrom(args);
1070 static_cast<FwAssertArgType>(_status)
1079 static_cast<FwAssertArgType>(qStatus)
1095 ComponentIpcSerializableBuffer msg;
1099 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_REMOVEFILE));
1102 static_cast<FwAssertArgType>(_status)
1108 _status = msg.serializeFrom(port);
1111 static_cast<FwAssertArgType>(_status)
1114 _status = msg.serializeFrom(opCode);
1117 static_cast<FwAssertArgType>(_status)
1120 _status = msg.serializeFrom(cmdSeq);
1123 static_cast<FwAssertArgType>(_status)
1126 _status = msg.serializeFrom(args);
1129 static_cast<FwAssertArgType>(_status)
1138 static_cast<FwAssertArgType>(qStatus)
1154 ComponentIpcSerializableBuffer msg;
1158 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_SHELLCOMMAND));
1161 static_cast<FwAssertArgType>(_status)
1167 _status = msg.serializeFrom(port);
1170 static_cast<FwAssertArgType>(_status)
1173 _status = msg.serializeFrom(opCode);
1176 static_cast<FwAssertArgType>(_status)
1179 _status = msg.serializeFrom(cmdSeq);
1182 static_cast<FwAssertArgType>(_status)
1185 _status = msg.serializeFrom(args);
1188 static_cast<FwAssertArgType>(_status)
1197 static_cast<FwAssertArgType>(qStatus)
1213 ComponentIpcSerializableBuffer msg;
1217 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_APPENDFILE));
1220 static_cast<FwAssertArgType>(_status)
1226 _status = msg.serializeFrom(port);
1229 static_cast<FwAssertArgType>(_status)
1232 _status = msg.serializeFrom(opCode);
1235 static_cast<FwAssertArgType>(_status)
1238 _status = msg.serializeFrom(cmdSeq);
1241 static_cast<FwAssertArgType>(_status)
1244 _status = msg.serializeFrom(args);
1247 static_cast<FwAssertArgType>(_status)
1256 static_cast<FwAssertArgType>(qStatus)
1272 ComponentIpcSerializableBuffer msg;
1276 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_FILESIZE));
1279 static_cast<FwAssertArgType>(_status)
1285 _status = msg.serializeFrom(port);
1288 static_cast<FwAssertArgType>(_status)
1291 _status = msg.serializeFrom(opCode);
1294 static_cast<FwAssertArgType>(_status)
1297 _status = msg.serializeFrom(cmdSeq);
1300 static_cast<FwAssertArgType>(_status)
1303 _status = msg.serializeFrom(args);
1306 static_cast<FwAssertArgType>(_status)
1315 static_cast<FwAssertArgType>(qStatus)
1331 ComponentIpcSerializableBuffer msg;
1335 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_LISTDIRECTORY));
1338 static_cast<FwAssertArgType>(_status)
1344 _status = msg.serializeFrom(port);
1347 static_cast<FwAssertArgType>(_status)
1350 _status = msg.serializeFrom(opCode);
1353 static_cast<FwAssertArgType>(_status)
1356 _status = msg.serializeFrom(cmdSeq);
1359 static_cast<FwAssertArgType>(_status)
1362 _status = msg.serializeFrom(args);
1365 static_cast<FwAssertArgType>(_status)
1374 static_cast<FwAssertArgType>(qStatus)
1390 ComponentIpcSerializableBuffer msg;
1394 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_CALCULATECRC));
1397 static_cast<FwAssertArgType>(_status)
1403 _status = msg.serializeFrom(port);
1406 static_cast<FwAssertArgType>(_status)
1409 _status = msg.serializeFrom(opCode);
1412 static_cast<FwAssertArgType>(_status)
1415 _status = msg.serializeFrom(cmdSeq);
1418 static_cast<FwAssertArgType>(_status)
1421 _status = msg.serializeFrom(args);
1424 static_cast<FwAssertArgType>(_status)
1433 static_cast<FwAssertArgType>(qStatus)
1556 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1557 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1565 if (this->m_eventOut_OutputPort[0].isConnected()) {
1569 #if FW_AMPCS_COMPATIBLE 1574 static_cast<FwAssertArgType>(_status)
1581 static_cast<FwAssertArgType>(_status)
1584 #if FW_AMPCS_COMPATIBLE 1587 static_cast<U8>(
sizeof(U32))
1591 static_cast<FwAssertArgType>(_status)
1597 static_cast<FwAssertArgType>(_status)
1600 this->m_eventOut_OutputPort[0].
invoke(
1609 #if FW_ENABLE_TEXT_LOGGING 1610 if (this->m_LogText_OutputPort[0].isConnected()) {
1611 #if FW_OBJECT_NAMES == 1 1612 const char* _formatString =
1613 "(%s) %s: Could not create directory %s, returned status %" PRIu32
"";
1615 const char* _formatString =
1616 "%s: Could not create directory %s, returned status %" PRIu32
"";
1623 this->m_objName.toChar(),
1625 "DirectoryCreateError ",
1630 this->m_LogText_OutputPort[0].invoke(
1648 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1649 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1657 if (this->m_eventOut_OutputPort[0].isConnected()) {
1661 #if FW_AMPCS_COMPATIBLE 1666 static_cast<FwAssertArgType>(_status)
1673 static_cast<FwAssertArgType>(_status)
1676 #if FW_AMPCS_COMPATIBLE 1679 static_cast<U8>(
sizeof(U32))
1683 static_cast<FwAssertArgType>(_status)
1689 static_cast<FwAssertArgType>(_status)
1692 this->m_eventOut_OutputPort[0].
invoke(
1701 #if FW_ENABLE_TEXT_LOGGING 1702 if (this->m_LogText_OutputPort[0].isConnected()) {
1703 #if FW_OBJECT_NAMES == 1 1704 const char* _formatString =
1705 "(%s) %s: Could not remove directory %s, returned status %" PRIu32
"";
1707 const char* _formatString =
1708 "%s: Could not remove directory %s, returned status %" PRIu32
"";
1715 this->m_objName.toChar(),
1717 "DirectoryRemoveError ",
1722 this->m_LogText_OutputPort[0].invoke(
1741 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1742 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1750 if (this->m_eventOut_OutputPort[0].isConnected()) {
1754 #if FW_AMPCS_COMPATIBLE 1759 static_cast<FwAssertArgType>(_status)
1766 static_cast<FwAssertArgType>(_status)
1772 static_cast<FwAssertArgType>(_status)
1775 #if FW_AMPCS_COMPATIBLE 1778 static_cast<U8>(
sizeof(U32))
1782 static_cast<FwAssertArgType>(_status)
1788 static_cast<FwAssertArgType>(_status)
1791 this->m_eventOut_OutputPort[0].
invoke(
1800 #if FW_ENABLE_TEXT_LOGGING 1801 if (this->m_LogText_OutputPort[0].isConnected()) {
1802 #if FW_OBJECT_NAMES == 1 1803 const char* _formatString =
1804 "(%s) %s: Could not move file %s to file %s, returned status %" PRIu32
"";
1806 const char* _formatString =
1807 "%s: Could not move file %s to file %s, returned status %" PRIu32
"";
1814 this->m_objName.toChar(),
1822 this->m_LogText_OutputPort[0].invoke(
1840 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1841 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1849 if (this->m_eventOut_OutputPort[0].isConnected()) {
1853 #if FW_AMPCS_COMPATIBLE 1858 static_cast<FwAssertArgType>(_status)
1865 static_cast<FwAssertArgType>(_status)
1868 #if FW_AMPCS_COMPATIBLE 1871 static_cast<U8>(
sizeof(U32))
1875 static_cast<FwAssertArgType>(_status)
1881 static_cast<FwAssertArgType>(_status)
1884 this->m_eventOut_OutputPort[0].
invoke(
1893 #if FW_ENABLE_TEXT_LOGGING 1894 if (this->m_LogText_OutputPort[0].isConnected()) {
1895 #if FW_OBJECT_NAMES == 1 1896 const char* _formatString =
1897 "(%s) %s: Could not remove file %s, returned status %" PRIu32
"";
1899 const char* _formatString =
1900 "%s: Could not remove file %s, returned status %" PRIu32
"";
1907 this->m_objName.toChar(),
1914 this->m_LogText_OutputPort[0].invoke(
1932 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1933 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1941 if (this->m_eventOut_OutputPort[0].isConnected()) {
1945 #if FW_AMPCS_COMPATIBLE 1950 static_cast<FwAssertArgType>(_status)
1957 static_cast<FwAssertArgType>(_status)
1960 #if FW_AMPCS_COMPATIBLE 1963 static_cast<U8>(
sizeof(U32))
1967 static_cast<FwAssertArgType>(_status)
1973 static_cast<FwAssertArgType>(_status)
1976 this->m_eventOut_OutputPort[0].
invoke(
1985 #if FW_ENABLE_TEXT_LOGGING 1986 if (this->m_LogText_OutputPort[0].isConnected()) {
1987 #if FW_OBJECT_NAMES == 1 1988 const char* _formatString =
1989 "(%s) %s: Shell command %s failed with status %" PRIu32
"";
1991 const char* _formatString =
1992 "%s: Shell command %s failed with status %" PRIu32
"";
1999 this->m_objName.toChar(),
2001 "ShellCommandFailed ",
2006 this->m_LogText_OutputPort[0].invoke(
2025 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2026 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2034 if (this->m_eventOut_OutputPort[0].isConnected()) {
2038 #if FW_AMPCS_COMPATIBLE 2043 static_cast<FwAssertArgType>(_status)
2050 static_cast<FwAssertArgType>(_status)
2056 static_cast<FwAssertArgType>(_status)
2059 #if FW_AMPCS_COMPATIBLE 2062 static_cast<U8>(
sizeof(U32))
2066 static_cast<FwAssertArgType>(_status)
2072 static_cast<FwAssertArgType>(_status)
2075 this->m_eventOut_OutputPort[0].
invoke(
2084 #if FW_ENABLE_TEXT_LOGGING 2085 if (this->m_LogText_OutputPort[0].isConnected()) {
2086 #if FW_OBJECT_NAMES == 1 2087 const char* _formatString =
2088 "(%s) %s: Appending %s onto %s failed with status %" PRIu32
"";
2090 const char* _formatString =
2091 "%s: Appending %s onto %s failed with status %" PRIu32
"";
2098 this->m_objName.toChar(),
2100 "AppendFileFailed ",
2106 this->m_LogText_OutputPort[0].invoke(
2124 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2125 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2133 if (this->m_eventOut_OutputPort[0].isConnected()) {
2137 #if FW_AMPCS_COMPATIBLE 2142 static_cast<FwAssertArgType>(_status)
2149 static_cast<FwAssertArgType>(_status)
2155 static_cast<FwAssertArgType>(_status)
2158 this->m_eventOut_OutputPort[0].
invoke(
2167 #if FW_ENABLE_TEXT_LOGGING 2168 if (this->m_LogText_OutputPort[0].isConnected()) {
2169 #if FW_OBJECT_NAMES == 1 2170 const char* _formatString =
2171 "(%s) %s: Appended %s to the end of %s";
2173 const char* _formatString =
2174 "%s: Appended %s to the end of %s";
2181 this->m_objName.toChar(),
2183 "AppendFileSucceeded ",
2188 this->m_LogText_OutputPort[0].invoke(
2203 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2204 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2212 if (this->m_eventOut_OutputPort[0].isConnected()) {
2216 #if FW_AMPCS_COMPATIBLE 2221 static_cast<FwAssertArgType>(_status)
2228 static_cast<FwAssertArgType>(_status)
2231 this->m_eventOut_OutputPort[0].
invoke(
2240 #if FW_ENABLE_TEXT_LOGGING 2241 if (this->m_LogText_OutputPort[0].isConnected()) {
2242 #if FW_OBJECT_NAMES == 1 2243 const char* _formatString =
2244 "(%s) %s: Shell command %s succeeded";
2246 const char* _formatString =
2247 "%s: Shell command %s succeeded";
2254 this->m_objName.toChar(),
2256 "ShellCommandSucceeded ",
2260 this->m_LogText_OutputPort[0].invoke(
2275 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2276 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2284 if (this->m_eventOut_OutputPort[0].isConnected()) {
2288 #if FW_AMPCS_COMPATIBLE 2293 static_cast<FwAssertArgType>(_status)
2300 static_cast<FwAssertArgType>(_status)
2303 this->m_eventOut_OutputPort[0].
invoke(
2312 #if FW_ENABLE_TEXT_LOGGING 2313 if (this->m_LogText_OutputPort[0].isConnected()) {
2314 #if FW_OBJECT_NAMES == 1 2315 const char* _formatString =
2316 "(%s) %s: Created directory %s successfully";
2318 const char* _formatString =
2319 "%s: Created directory %s successfully";
2326 this->m_objName.toChar(),
2328 "CreateDirectorySucceeded ",
2332 this->m_LogText_OutputPort[0].invoke(
2347 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2348 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2356 if (this->m_eventOut_OutputPort[0].isConnected()) {
2360 #if FW_AMPCS_COMPATIBLE 2365 static_cast<FwAssertArgType>(_status)
2372 static_cast<FwAssertArgType>(_status)
2375 this->m_eventOut_OutputPort[0].
invoke(
2384 #if FW_ENABLE_TEXT_LOGGING 2385 if (this->m_LogText_OutputPort[0].isConnected()) {
2386 #if FW_OBJECT_NAMES == 1 2387 const char* _formatString =
2388 "(%s) %s: Removed directory %s successfully";
2390 const char* _formatString =
2391 "%s: Removed directory %s successfully";
2398 this->m_objName.toChar(),
2400 "RemoveDirectorySucceeded ",
2404 this->m_LogText_OutputPort[0].invoke(
2422 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2423 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2431 if (this->m_eventOut_OutputPort[0].isConnected()) {
2435 #if FW_AMPCS_COMPATIBLE 2440 static_cast<FwAssertArgType>(_status)
2447 static_cast<FwAssertArgType>(_status)
2453 static_cast<FwAssertArgType>(_status)
2456 this->m_eventOut_OutputPort[0].
invoke(
2465 #if FW_ENABLE_TEXT_LOGGING 2466 if (this->m_LogText_OutputPort[0].isConnected()) {
2467 #if FW_OBJECT_NAMES == 1 2468 const char* _formatString =
2469 "(%s) %s: Moved file %s to file %s successfully";
2471 const char* _formatString =
2472 "%s: Moved file %s to file %s successfully";
2479 this->m_objName.toChar(),
2481 "MoveFileSucceeded ",
2486 this->m_LogText_OutputPort[0].invoke(
2501 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2502 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2510 if (this->m_eventOut_OutputPort[0].isConnected()) {
2514 #if FW_AMPCS_COMPATIBLE 2519 static_cast<FwAssertArgType>(_status)
2526 static_cast<FwAssertArgType>(_status)
2529 this->m_eventOut_OutputPort[0].
invoke(
2538 #if FW_ENABLE_TEXT_LOGGING 2539 if (this->m_LogText_OutputPort[0].isConnected()) {
2540 #if FW_OBJECT_NAMES == 1 2541 const char* _formatString =
2542 "(%s) %s: Removed file %s successfully";
2544 const char* _formatString =
2545 "%s: Removed file %s successfully";
2552 this->m_objName.toChar(),
2554 "RemoveFileSucceeded ",
2558 this->m_LogText_OutputPort[0].invoke(
2576 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2577 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2585 if (this->m_eventOut_OutputPort[0].isConnected()) {
2589 #if FW_AMPCS_COMPATIBLE 2594 static_cast<FwAssertArgType>(_status)
2601 static_cast<FwAssertArgType>(_status)
2607 static_cast<FwAssertArgType>(_status)
2610 this->m_eventOut_OutputPort[0].
invoke(
2619 #if FW_ENABLE_TEXT_LOGGING 2620 if (this->m_LogText_OutputPort[0].isConnected()) {
2621 #if FW_OBJECT_NAMES == 1 2622 const char* _formatString =
2623 "(%s) %s: Appending file %s to the end of %s...";
2625 const char* _formatString =
2626 "%s: Appending file %s to the end of %s...";
2633 this->m_objName.toChar(),
2635 "AppendFileStarted ",
2640 this->m_LogText_OutputPort[0].invoke(
2655 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2656 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2664 if (this->m_eventOut_OutputPort[0].isConnected()) {
2668 #if FW_AMPCS_COMPATIBLE 2673 static_cast<FwAssertArgType>(_status)
2680 static_cast<FwAssertArgType>(_status)
2683 this->m_eventOut_OutputPort[0].
invoke(
2692 #if FW_ENABLE_TEXT_LOGGING 2693 if (this->m_LogText_OutputPort[0].isConnected()) {
2694 #if FW_OBJECT_NAMES == 1 2695 const char* _formatString =
2696 "(%s) %s: Running shell command %s...";
2698 const char* _formatString =
2699 "%s: Running shell command %s...";
2706 this->m_objName.toChar(),
2708 "ShellCommandStarted ",
2712 this->m_LogText_OutputPort[0].invoke(
2727 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2728 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2736 if (this->m_eventOut_OutputPort[0].isConnected()) {
2740 #if FW_AMPCS_COMPATIBLE 2745 static_cast<FwAssertArgType>(_status)
2752 static_cast<FwAssertArgType>(_status)
2755 this->m_eventOut_OutputPort[0].
invoke(
2764 #if FW_ENABLE_TEXT_LOGGING 2765 if (this->m_LogText_OutputPort[0].isConnected()) {
2766 #if FW_OBJECT_NAMES == 1 2767 const char* _formatString =
2768 "(%s) %s: Creating directory %s...";
2770 const char* _formatString =
2771 "%s: Creating directory %s...";
2778 this->m_objName.toChar(),
2780 "CreateDirectoryStarted ",
2784 this->m_LogText_OutputPort[0].invoke(
2799 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2800 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2808 if (this->m_eventOut_OutputPort[0].isConnected()) {
2812 #if FW_AMPCS_COMPATIBLE 2817 static_cast<FwAssertArgType>(_status)
2824 static_cast<FwAssertArgType>(_status)
2827 this->m_eventOut_OutputPort[0].
invoke(
2836 #if FW_ENABLE_TEXT_LOGGING 2837 if (this->m_LogText_OutputPort[0].isConnected()) {
2838 #if FW_OBJECT_NAMES == 1 2839 const char* _formatString =
2840 "(%s) %s: Removing directory %s...";
2842 const char* _formatString =
2843 "%s: Removing directory %s...";
2850 this->m_objName.toChar(),
2852 "RemoveDirectoryStarted ",
2856 this->m_LogText_OutputPort[0].invoke(
2874 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2875 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2883 if (this->m_eventOut_OutputPort[0].isConnected()) {
2887 #if FW_AMPCS_COMPATIBLE 2892 static_cast<FwAssertArgType>(_status)
2899 static_cast<FwAssertArgType>(_status)
2905 static_cast<FwAssertArgType>(_status)
2908 this->m_eventOut_OutputPort[0].
invoke(
2917 #if FW_ENABLE_TEXT_LOGGING 2918 if (this->m_LogText_OutputPort[0].isConnected()) {
2919 #if FW_OBJECT_NAMES == 1 2920 const char* _formatString =
2921 "(%s) %s: Moving file %s to file %s...";
2923 const char* _formatString =
2924 "%s: Moving file %s to file %s...";
2931 this->m_objName.toChar(),
2938 this->m_LogText_OutputPort[0].invoke(
2953 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2954 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2962 if (this->m_eventOut_OutputPort[0].isConnected()) {
2966 #if FW_AMPCS_COMPATIBLE 2971 static_cast<FwAssertArgType>(_status)
2978 static_cast<FwAssertArgType>(_status)
2981 this->m_eventOut_OutputPort[0].
invoke(
2990 #if FW_ENABLE_TEXT_LOGGING 2991 if (this->m_LogText_OutputPort[0].isConnected()) {
2992 #if FW_OBJECT_NAMES == 1 2993 const char* _formatString =
2994 "(%s) %s: Removing file %s...";
2996 const char* _formatString =
2997 "%s: Removing file %s...";
3004 this->m_objName.toChar(),
3006 "RemoveFileStarted ",
3010 this->m_LogText_OutputPort[0].invoke(
3028 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3029 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3037 if (this->m_eventOut_OutputPort[0].isConnected()) {
3041 #if FW_AMPCS_COMPATIBLE 3046 static_cast<FwAssertArgType>(_status)
3053 static_cast<FwAssertArgType>(_status)
3056 #if FW_AMPCS_COMPATIBLE 3063 static_cast<FwAssertArgType>(_status)
3069 static_cast<FwAssertArgType>(_status)
3072 this->m_eventOut_OutputPort[0].
invoke(
3081 #if FW_ENABLE_TEXT_LOGGING 3082 if (this->m_LogText_OutputPort[0].isConnected()) {
3083 #if FW_OBJECT_NAMES == 1 3084 const char* _formatString =
3085 "(%s) %s: The size of file %s is %" PRIu64
" B";
3087 const char* _formatString =
3088 "%s: The size of file %s is %" PRIu64
" B";
3095 this->m_objName.toChar(),
3097 "FileSizeSucceeded ",
3102 this->m_LogText_OutputPort[0].invoke(
3120 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3121 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3129 if (this->m_eventOut_OutputPort[0].isConnected()) {
3133 #if FW_AMPCS_COMPATIBLE 3138 static_cast<FwAssertArgType>(_status)
3145 static_cast<FwAssertArgType>(_status)
3148 #if FW_AMPCS_COMPATIBLE 3151 static_cast<U8>(
sizeof(U32))
3155 static_cast<FwAssertArgType>(_status)
3161 static_cast<FwAssertArgType>(_status)
3164 this->m_eventOut_OutputPort[0].
invoke(
3173 #if FW_ENABLE_TEXT_LOGGING 3174 if (this->m_LogText_OutputPort[0].isConnected()) {
3175 #if FW_OBJECT_NAMES == 1 3176 const char* _formatString =
3177 "(%s) %s: Failed to get the size of file %s, returned status %" PRIu32
"";
3179 const char* _formatString =
3180 "%s: Failed to get the size of file %s, returned status %" PRIu32
"";
3187 this->m_objName.toChar(),
3194 this->m_LogText_OutputPort[0].invoke(
3209 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3210 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3218 if (this->m_eventOut_OutputPort[0].isConnected()) {
3222 #if FW_AMPCS_COMPATIBLE 3227 static_cast<FwAssertArgType>(_status)
3234 static_cast<FwAssertArgType>(_status)
3237 this->m_eventOut_OutputPort[0].
invoke(
3246 #if FW_ENABLE_TEXT_LOGGING 3247 if (this->m_LogText_OutputPort[0].isConnected()) {
3248 #if FW_OBJECT_NAMES == 1 3249 const char* _formatString =
3250 "(%s) %s: Checking size of file %s...";
3252 const char* _formatString =
3253 "%s: Checking size of file %s...";
3260 this->m_objName.toChar(),
3266 this->m_LogText_OutputPort[0].invoke(
3281 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3282 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3290 if (this->m_eventOut_OutputPort[0].isConnected()) {
3294 #if FW_AMPCS_COMPATIBLE 3299 static_cast<FwAssertArgType>(_status)
3306 static_cast<FwAssertArgType>(_status)
3309 this->m_eventOut_OutputPort[0].
invoke(
3318 #if FW_ENABLE_TEXT_LOGGING 3319 if (this->m_LogText_OutputPort[0].isConnected()) {
3320 #if FW_OBJECT_NAMES == 1 3321 const char* _formatString =
3322 "(%s) %s: Listing contents of directory %s...";
3324 const char* _formatString =
3325 "%s: Listing contents of directory %s...";
3332 this->m_objName.toChar(),
3334 "ListDirectoryStarted ",
3338 this->m_LogText_OutputPort[0].invoke(
3356 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3357 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3365 if (this->m_eventOut_OutputPort[0].isConnected()) {
3369 #if FW_AMPCS_COMPATIBLE 3374 static_cast<FwAssertArgType>(_status)
3381 static_cast<FwAssertArgType>(_status)
3384 #if FW_AMPCS_COMPATIBLE 3387 static_cast<U8>(
sizeof(U32))
3391 static_cast<FwAssertArgType>(_status)
3397 static_cast<FwAssertArgType>(_status)
3400 this->m_eventOut_OutputPort[0].
invoke(
3409 #if FW_ENABLE_TEXT_LOGGING 3410 if (this->m_LogText_OutputPort[0].isConnected()) {
3411 #if FW_OBJECT_NAMES == 1 3412 const char* _formatString =
3413 "(%s) %s: Directory %s contains %" PRIu32
" files";
3415 const char* _formatString =
3416 "%s: Directory %s contains %" PRIu32
" files";
3423 this->m_objName.toChar(),
3425 "ListDirectorySucceeded ",
3430 this->m_LogText_OutputPort[0].invoke(
3448 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3449 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3457 if (this->m_eventOut_OutputPort[0].isConnected()) {
3461 #if FW_AMPCS_COMPATIBLE 3466 static_cast<FwAssertArgType>(_status)
3473 static_cast<FwAssertArgType>(_status)
3476 #if FW_AMPCS_COMPATIBLE 3479 static_cast<U8>(
sizeof(U32))
3483 static_cast<FwAssertArgType>(_status)
3489 static_cast<FwAssertArgType>(_status)
3492 this->m_eventOut_OutputPort[0].
invoke(
3501 #if FW_ENABLE_TEXT_LOGGING 3502 if (this->m_LogText_OutputPort[0].isConnected()) {
3503 #if FW_OBJECT_NAMES == 1 3504 const char* _formatString =
3505 "(%s) %s: Failed to list directory %s, returned status %" PRIu32
"";
3507 const char* _formatString =
3508 "%s: Failed to list directory %s, returned status %" PRIu32
"";
3515 this->m_objName.toChar(),
3517 "ListDirectoryError ",
3522 this->m_LogText_OutputPort[0].invoke(
3541 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3542 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3550 if (this->m_eventOut_OutputPort[0].isConnected()) {
3554 #if FW_AMPCS_COMPATIBLE 3559 static_cast<FwAssertArgType>(_status)
3566 static_cast<FwAssertArgType>(_status)
3572 static_cast<FwAssertArgType>(_status)
3575 #if FW_AMPCS_COMPATIBLE 3582 static_cast<FwAssertArgType>(_status)
3588 static_cast<FwAssertArgType>(_status)
3591 this->m_eventOut_OutputPort[0].
invoke(
3600 #if FW_ENABLE_TEXT_LOGGING 3601 if (this->m_LogText_OutputPort[0].isConnected()) {
3602 #if FW_OBJECT_NAMES == 1 3603 const char* _formatString =
3604 "(%s) %s: Directory %s: %s (%" PRIu64
" bytes)";
3606 const char* _formatString =
3607 "%s: Directory %s: %s (%" PRIu64
" bytes)";
3614 this->m_objName.toChar(),
3616 "DirectoryListing ",
3622 this->m_LogText_OutputPort[0].invoke(
3640 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3641 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3649 if (this->m_eventOut_OutputPort[0].isConnected()) {
3653 #if FW_AMPCS_COMPATIBLE 3658 static_cast<FwAssertArgType>(_status)
3665 static_cast<FwAssertArgType>(_status)
3671 static_cast<FwAssertArgType>(_status)
3674 this->m_eventOut_OutputPort[0].
invoke(
3683 #if FW_ENABLE_TEXT_LOGGING 3684 if (this->m_LogText_OutputPort[0].isConnected()) {
3685 #if FW_OBJECT_NAMES == 1 3686 const char* _formatString =
3687 "(%s) %s: Directory %s: %s";
3689 const char* _formatString =
3690 "%s: Directory %s: %s";
3697 this->m_objName.toChar(),
3699 "DirectoryListingSubdir ",
3704 this->m_LogText_OutputPort[0].invoke(
3719 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3720 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3728 if (this->m_eventOut_OutputPort[0].isConnected()) {
3732 #if FW_AMPCS_COMPATIBLE 3737 static_cast<FwAssertArgType>(_status)
3744 static_cast<FwAssertArgType>(_status)
3747 this->m_eventOut_OutputPort[0].
invoke(
3756 #if FW_ENABLE_TEXT_LOGGING 3757 if (this->m_LogText_OutputPort[0].isConnected()) {
3758 #if FW_OBJECT_NAMES == 1 3759 const char* _formatString =
3760 "(%s) %s: Started CRC calculation for file %s";
3762 const char* _formatString =
3763 "%s: Started CRC calculation for file %s";
3770 this->m_objName.toChar(),
3772 "CalculateCrcStarted ",
3776 this->m_LogText_OutputPort[0].invoke(
3794 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3795 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3803 if (this->m_eventOut_OutputPort[0].isConnected()) {
3807 #if FW_AMPCS_COMPATIBLE 3812 static_cast<FwAssertArgType>(_status)
3819 static_cast<FwAssertArgType>(_status)
3822 #if FW_AMPCS_COMPATIBLE 3825 static_cast<U8>(
sizeof(U32))
3829 static_cast<FwAssertArgType>(_status)
3835 static_cast<FwAssertArgType>(_status)
3838 this->m_eventOut_OutputPort[0].
invoke(
3847 #if FW_ENABLE_TEXT_LOGGING 3848 if (this->m_LogText_OutputPort[0].isConnected()) {
3849 #if FW_OBJECT_NAMES == 1 3850 const char* _formatString =
3851 "(%s) %s: Failed CRC calculation for file %s, returned status %" PRIu32
"";
3853 const char* _formatString =
3854 "%s: Failed CRC calculation for file %s, returned status %" PRIu32
"";
3861 this->m_objName.toChar(),
3863 "CalculateCrcFailed ",
3868 this->m_LogText_OutputPort[0].invoke(
3886 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3887 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3895 if (this->m_eventOut_OutputPort[0].isConnected()) {
3899 #if FW_AMPCS_COMPATIBLE 3904 static_cast<FwAssertArgType>(_status)
3911 static_cast<FwAssertArgType>(_status)
3914 #if FW_AMPCS_COMPATIBLE 3917 static_cast<U8>(
sizeof(U32))
3921 static_cast<FwAssertArgType>(_status)
3927 static_cast<FwAssertArgType>(_status)
3930 this->m_eventOut_OutputPort[0].
invoke(
3939 #if FW_ENABLE_TEXT_LOGGING 3940 if (this->m_LogText_OutputPort[0].isConnected()) {
3941 #if FW_OBJECT_NAMES == 1 3942 const char* _formatString =
3943 "(%s) %s: %s has CRC value 0x%" PRIx32
"";
3945 const char* _formatString =
3946 "%s: %s has CRC value 0x%" PRIx32
"";
3953 this->m_objName.toChar(),
3955 "CalculateCrcSucceeded ",
3960 this->m_LogText_OutputPort[0].invoke(
3980 if (this->m_tlmOut_OutputPort[0].isConnected()) {
3982 this->m_timeCaller_OutputPort[0].isConnected() &&
3985 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
3992 static_cast<FwAssertArgType>(_stat)
3999 this->m_tlmOut_OutputPort[0].
invoke(
4013 if (this->m_tlmOut_OutputPort[0].isConnected()) {
4015 this->m_timeCaller_OutputPort[0].isConnected() &&
4018 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
4025 static_cast<FwAssertArgType>(_stat)
4032 this->m_tlmOut_OutputPort[0].
invoke(
4047 if (this->m_timeCaller_OutputPort[0].isConnected()) {
4049 this->m_timeCaller_OutputPort[0].
invoke(_time);
4064 ComponentIpcSerializableBuffer _msg;
4074 static_cast<FwAssertArgType>(_msgStatus)
4084 static_cast<FwAssertArgType>(_deserStatus)
4087 MsgTypeEnum _msgType =
static_cast<MsgTypeEnum
>(_desMsg);
4089 if (_msgType == FILEMANAGER_COMPONENT_EXIT) {
4094 _deserStatus = _msg.deserializeTo(portNum);
4097 static_cast<FwAssertArgType>(_deserStatus)
4105 _deserStatus = _msg.deserializeTo(key);
4108 static_cast<FwAssertArgType>(_deserStatus)
4120 case CMD_CREATEDIRECTORY: {
4123 _deserStatus = _msg.deserializeTo(_opCode);
4126 static_cast<FwAssertArgType>(_deserStatus)
4131 _deserStatus = _msg.deserializeTo(_cmdSeq);
4134 static_cast<FwAssertArgType>(_deserStatus)
4139 _deserStatus = _msg.deserializeTo(args);
4142 static_cast<FwAssertArgType>(_deserStatus)
4152 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4165 #if FW_CMD_CHECK_RESIDUAL 4167 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4185 case CMD_MOVEFILE: {
4188 _deserStatus = _msg.deserializeTo(_opCode);
4191 static_cast<FwAssertArgType>(_deserStatus)
4196 _deserStatus = _msg.deserializeTo(_cmdSeq);
4199 static_cast<FwAssertArgType>(_deserStatus)
4204 _deserStatus = _msg.deserializeTo(args);
4207 static_cast<FwAssertArgType>(_deserStatus)
4217 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4232 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4245 #if FW_CMD_CHECK_RESIDUAL 4247 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4266 case CMD_REMOVEDIRECTORY: {
4269 _deserStatus = _msg.deserializeTo(_opCode);
4272 static_cast<FwAssertArgType>(_deserStatus)
4277 _deserStatus = _msg.deserializeTo(_cmdSeq);
4280 static_cast<FwAssertArgType>(_deserStatus)
4285 _deserStatus = _msg.deserializeTo(args);
4288 static_cast<FwAssertArgType>(_deserStatus)
4298 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4311 #if FW_CMD_CHECK_RESIDUAL 4313 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4331 case CMD_REMOVEFILE: {
4334 _deserStatus = _msg.deserializeTo(_opCode);
4337 static_cast<FwAssertArgType>(_deserStatus)
4342 _deserStatus = _msg.deserializeTo(_cmdSeq);
4345 static_cast<FwAssertArgType>(_deserStatus)
4350 _deserStatus = _msg.deserializeTo(args);
4353 static_cast<FwAssertArgType>(_deserStatus)
4363 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4378 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4391 #if FW_CMD_CHECK_RESIDUAL 4393 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4412 case CMD_SHELLCOMMAND: {
4415 _deserStatus = _msg.deserializeTo(_opCode);
4418 static_cast<FwAssertArgType>(_deserStatus)
4423 _deserStatus = _msg.deserializeTo(_cmdSeq);
4426 static_cast<FwAssertArgType>(_deserStatus)
4431 _deserStatus = _msg.deserializeTo(args);
4434 static_cast<FwAssertArgType>(_deserStatus)
4444 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4459 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4472 #if FW_CMD_CHECK_RESIDUAL 4474 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4493 case CMD_APPENDFILE: {
4496 _deserStatus = _msg.deserializeTo(_opCode);
4499 static_cast<FwAssertArgType>(_deserStatus)
4504 _deserStatus = _msg.deserializeTo(_cmdSeq);
4507 static_cast<FwAssertArgType>(_deserStatus)
4512 _deserStatus = _msg.deserializeTo(args);
4515 static_cast<FwAssertArgType>(_deserStatus)
4525 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4540 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4553 #if FW_CMD_CHECK_RESIDUAL 4555 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4574 case CMD_FILESIZE: {
4577 _deserStatus = _msg.deserializeTo(_opCode);
4580 static_cast<FwAssertArgType>(_deserStatus)
4585 _deserStatus = _msg.deserializeTo(_cmdSeq);
4588 static_cast<FwAssertArgType>(_deserStatus)
4593 _deserStatus = _msg.deserializeTo(args);
4596 static_cast<FwAssertArgType>(_deserStatus)
4606 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4619 #if FW_CMD_CHECK_RESIDUAL 4621 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4639 case CMD_LISTDIRECTORY: {
4642 _deserStatus = _msg.deserializeTo(_opCode);
4645 static_cast<FwAssertArgType>(_deserStatus)
4650 _deserStatus = _msg.deserializeTo(_cmdSeq);
4653 static_cast<FwAssertArgType>(_deserStatus)
4658 _deserStatus = _msg.deserializeTo(args);
4661 static_cast<FwAssertArgType>(_deserStatus)
4671 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4684 #if FW_CMD_CHECK_RESIDUAL 4686 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4704 case CMD_CALCULATECRC: {
4707 _deserStatus = _msg.deserializeTo(_opCode);
4710 static_cast<FwAssertArgType>(_deserStatus)
4715 _deserStatus = _msg.deserializeTo(_cmdSeq);
4718 static_cast<FwAssertArgType>(_deserStatus)
4723 _deserStatus = _msg.deserializeTo(args);
4726 static_cast<FwAssertArgType>(_deserStatus)
4736 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4749 #if FW_CMD_CHECK_RESIDUAL 4751 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4773 _msg.getDeserializeSizeLeft() == 0,
4794 void FileManagerComponentBase ::
4806 const U32 idBase = callComp->
getIdBase();
4807 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
4810 switch (opCode - idBase) {
4812 compPtr->CreateDirectory_cmdHandlerBase(
4821 compPtr->MoveFile_cmdHandlerBase(
4830 compPtr->RemoveDirectory_cmdHandlerBase(
4839 compPtr->RemoveFile_cmdHandlerBase(
4848 compPtr->ShellCommand_cmdHandlerBase(
4857 compPtr->AppendFile_cmdHandlerBase(
4866 compPtr->FileSize_cmdHandlerBase(
4875 compPtr->ListDirectory_cmdHandlerBase(
4884 compPtr->CalculateCrc_cmdHandlerBase(
4898 void FileManagerComponentBase ::
4907 compPtr->pingIn_handlerBase(
4913 void FileManagerComponentBase ::
4922 compPtr->schedIn_handlerBase(
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
Serialization/Deserialization operation was successful.
void addCallPort(InputTimePort *callPort)
Register an input port.
virtual void run_internalInterfaceHandler()=0
Internal interface handler for run.
void log_WARNING_HI_ListDirectoryError(const Fw::StringBase &dirName, U32 status) const
void AppendFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void log_ACTIVITY_HI_DirectoryListingSubdir(const Fw::StringBase &dirName, const Fw::StringBase &subdirName) const
void log_ACTIVITY_HI_CreateDirectoryStarted(const Fw::StringBase &dirName) const
FwIdType FwOpcodeType
The type of a command opcode.
SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG) override
Serialize an 8-bit unsigned integer value.
virtual void ListDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command ListDirectory.
void log_ACTIVITY_HI_RemoveDirectorySucceeded(const Fw::StringBase &dirName) const
void log_ACTIVITY_HI_DirectoryListing(const Fw::StringBase &dirName, const Fw::StringBase &fileName, FwSizeType fileSize) const
FwIdType getIdBase() const
virtual void MoveFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &sourceFileName, const Fw::CmdStringArg &destFileName)=0
PlatformSizeType FwSizeType
virtual void MoveFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command MoveFile.
virtual void ShellCommand_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command ShellCommand.
Append 1 file's contents to the end of another.
void log_ACTIVITY_HI_CalculateCrcStarted(const Fw::StringBase &fileName) const
Status receive(U8 *destination, FwSizeType capacity, BlockingType blockType, FwSizeType &actualSize, FwQueuePriorityType &priority) override
receive a message from the queue through delegate
The File System component began creating a new directory.
virtual void CalculateCrc_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &filename)=0
Status
status returned from the queue send function
void log_WARNING_HI_FileSizeError(const Fw::StringBase &fileName, U32 status) const
void run_internalInterfaceInvoke()
Internal interface base-class function for run.
An error occurred while attempting to move a file.
static constexpr FwIndexType getNum_tlmOut_OutputPorts()
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
void FileSize_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Base-class handler function for command FileSize.
Directory listing file entry.
void log_ACTIVITY_HI_FileSizeSucceeded(const Fw::StringBase &fileName, FwSizeType size) const
virtual void RemoveFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName, bool ignoreErrors)=0
void log_ACTIVITY_HI_ListDirectorySucceeded(const Fw::StringBase &dirName, U32 fileCount) const
An error occurred while attempting to remove a directory.
void ShellCommand_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
void invoke(U32 key) const
Invoke a port interface.
void log_ACTIVITY_HI_CalculateCrcSucceeded(const Fw::StringBase &fileName, U32 crc) const
virtual const CHAR * toChar() const =0
Convert to a C-style char*.
void CalculateCrc_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Perform a Linux shell command and write the output to a log file.
void log_ACTIVITY_HI_ListDirectoryStarted(const Fw::StringBase &dirName) const
Channel ID for CommandsExecuted.
static constexpr FwIndexType getNum_pingOut_OutputPorts()
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
void init()
Initialization function.
Enum representing a command response.
virtual void RemoveFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RemoveFile.
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum)
virtual void schedIn_handler(FwIndexType portNum, U32 context)=0
Handler for input port schedIn.
No time base has been established (Required)
void log_ACTIVITY_HI_MoveFileStarted(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const
void addCallPort(InputCmdRegPort *callPort)
Register an input port.
Directory listing completed successfully.
Failed to list directory.
static constexpr FwIndexType getNum_eventOut_OutputPorts()
Os::Queue m_queue
queue object for active component
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
Directory listing subdirectory entry.
void log_ACTIVITY_HI_AppendFileSucceeded(const Fw::StringBase &source, const Fw::StringBase &target) const
List the contents of a directory.
FileManagerComponentBase(const char *compName="")
Construct FileManagerComponentBase object.
void addCallPort(InputTlmPort *callPort)
Register an input port.
void ListDirectory_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void init()
Object initializer.
SerializeStatus
forward declaration for string
bool isConnected_pingOut_OutputPort(FwIndexType portNum)
Message will block until space is available.
void log_ACTIVITY_HI_CreateDirectorySucceeded(const Fw::StringBase &dirName) const
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
The File System component executed a shell command that returned status zero.
FwIdType FwEventIdType
The type of an event identifier.
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
void invoke(FwOpcodeType opCode) const
Invoke a port interface.
virtual void CreateDirectory_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &dirName)=0
List the contents of a directory.
virtual void ListDirectory_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &dirName)=0
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
void RemoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
The File System component began executing a shell command.
void init()
Initialization function.
The File System component moved a file to a new location without error.
void log_ACTIVITY_HI_RemoveDirectoryStarted(const Fw::StringBase &dirName) const
Os::Queue::Status createQueue(FwSizeType depth, FwSizeType msgSize)
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
void log_ACTIVITY_HI_ShellCommandSucceeded(const Fw::StringBase &command) const
void RemoveDirectory_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
#define FW_MIN(a, b)
MIN macro.
void init()
Initialization function.
An error occurred while attempting to create a directory.
static constexpr FwIndexType getNum_schedIn_InputPorts()
void invoke(Fw::Time &time) const
Invoke a port interface.
message to exit active component task
Serializable::SizeType getDeserializeSizeLeft() const override
Get remaining deserialization buffer size.
const char * toChar() const
Convert to a C-style char*.
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke a port interface.
virtual void FileSize_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command FileSize.
FwIdType FwChanIdType
The type of a telemetry channel identifier.
void addCallPort(InputPingPort *callPort)
Register an input port.
Status send(const U8 *buffer, FwSizeType size, FwQueuePriorityType priority, BlockingType blockType) override
send a message into the queue through delegate
virtual void ShellCommand_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &command, const Fw::CmdStringArg &logFileName)=0
virtual void CreateDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CreateDirectory.
void resetDeser() override
Reset deserialization pointer to beginning of buffer.
Remove a directory, which must be empty.
A serious but recoverable event.
Errors dispatching messages.
Svc::InputSchedPort * get_schedIn_InputPort(FwIndexType portNum)
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
bool isConnected_eventOut_OutputPort(FwIndexType portNum)
void invoke(FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
Invoke a port interface.
void log_ACTIVITY_HI_FileSizeStarted(const Fw::StringBase &fileName) const
virtual ~FileManagerComponentBase()
Destroy FileManagerComponentBase object.
static constexpr FwIndexType getNum_cmdResponseOut_OutputPorts()
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
The File System component deleted and existing directory without error.
void MoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
uint8_t U8
8-bit unsigned integer
void schedIn_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port schedIn.
virtual void FileSize_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName)=0
Handler for command FileSize.
void log_ACTIVITY_HI_MoveFileSucceeded(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const
Command failed to deserialize.
void log_WARNING_HI_DirectoryRemoveError(const Fw::StringBase &dirName, U32 status) const
PlatformQueuePriorityType FwQueuePriorityType
The type of queue priorities used.
Important informational events.
The File System component began deleting a directory.
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port interface.
void log_ACTIVITY_HI_AppendFileStarted(const Fw::StringBase &source, const Fw::StringBase &target) const
The File System component appended 2 files without error.
void tlmWrite_Errors(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
A message was sent requesting an exit of the loop.
An error occurred while attempting to remove a file.
The File System component returned status non-zero when trying to append 2 files together.
void log_ACTIVITY_HI_RemoveFileStarted(const Fw::StringBase &fileName) const
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
void log_ACTIVITY_HI_ShellCommandStarted(const Fw::StringBase &command) const
The File System component deleted an existing file without error.
PlatformIndexType FwIndexType
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
Starting directory listing.
void addCallPort(InputLogPort *callPort)
Register an input port.
static constexpr FwIndexType getNum_pingIn_InputPorts()
void init()
Initialization function.
void log_WARNING_HI_AppendFileFailed(const Fw::StringBase &source, const Fw::StringBase &target, U32 status) const
void incNumMsgDropped()
increment the number of messages dropped
void regCommands()
Register commands with the Command Dispatcher.
static constexpr FwIndexType getNum_cmdIn_InputPorts()
RateGroupDivider component implementation.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
message sent/received okay
SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG) override
Deserialize an 8-bit unsigned integer value.
void log_WARNING_HI_CalculateCrcFailed(const Fw::StringBase &fileName, U32 status) const
virtual void AppendFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command AppendFile.
Message will return with status when space is unavailable.
Implementation of malloc based allocator.
virtual void RemoveDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RemoveDirectory.
void log_WARNING_HI_ShellCommandFailed(const Fw::StringBase &command, U32 status) const
void init()
Initialization function.
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum)
void log_WARNING_HI_DirectoryCreateError(const Fw::StringBase &dirName, U32 status) const
void log_ACTIVITY_HI_RemoveFileSucceeded(const Fw::StringBase &fileName) const
void log_WARNING_HI_FileMoveError(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName, U32 status) const
The File System component began deleting an existing file.
void tlmWrite_CommandsExecuted(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
void CreateDirectory_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
virtual void RemoveDirectory_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &dirName)=0
The File System component appended 2 files without error.
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
void log_WARNING_HI_FileRemoveError(const Fw::StringBase &fileName, U32 status) const
The File System component created a new directory without error.
The File System component began moving a file to a new location.
PlatformAssertArgType FwAssertArgType
The type of arguments to assert functions.
virtual void CalculateCrc_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CalculateCrc.
static constexpr FwIndexType getNum_cmdRegOut_OutputPorts()
void addCallPort(InputCmdResponsePort *callPort)
Register an input port.
The File System component executed a shell command that returned status non-zero. ...
SerializeStatus serializeTo(SerialBufferBase &buffer, Endianness mode=Endianness::BIG) const override
Serialize the contents of this object to a buffer.
virtual void AppendFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &source, const Fw::CmdStringArg &target)=0