10 #if FW_ENABLE_TEXT_LOGGING 38 class ComponentIpcSerializableBuffer :
48 MAX_DATA_SIZE =
sizeof(BuffUnion),
50 SERIALIZATION_SIZE = DATA_OFFSET + MAX_DATA_SIZE
54 return sizeof(m_buff);
61 const U8* getBuffAddr()
const {
67 U8 m_buff[SERIALIZATION_SIZE];
91 this->m_cmdIn_InputPort[port].
init();
96 this->m_cmdIn_InputPort[port].
setPortNum(port);
98 #if FW_OBJECT_NAMES == 1 101 "%s_cmdIn_InputPort[%" PRI_PlatformIntType
"]",
102 this->m_objName.toChar(),
105 this->m_cmdIn_InputPort[port].setObjName(portName.
toChar());
115 this->m_pingIn_InputPort[port].
init();
120 this->m_pingIn_InputPort[port].
setPortNum(port);
122 #if FW_OBJECT_NAMES == 1 125 "%s_pingIn_InputPort[%" PRI_PlatformIntType
"]",
126 this->m_objName.toChar(),
129 this->m_pingIn_InputPort[port].setObjName(portName.
toChar());
133 #if FW_ENABLE_TEXT_LOGGING == 1 137 port < static_cast<FwIndexType>(this->getNum_LogText_OutputPorts());
140 this->m_LogText_OutputPort[port].
init();
142 #if FW_OBJECT_NAMES == 1 145 "%s_LogText_OutputPort[%" PRI_PlatformIntType
"]",
146 this->m_objName.toChar(),
149 this->m_LogText_OutputPort[port].setObjName(portName.
toChar());
160 this->m_cmdRegOut_OutputPort[port].
init();
162 #if FW_OBJECT_NAMES == 1 165 "%s_cmdRegOut_OutputPort[%" PRI_PlatformIntType
"]",
166 this->m_objName.toChar(),
169 this->m_cmdRegOut_OutputPort[port].setObjName(portName.
toChar());
179 this->m_cmdResponseOut_OutputPort[port].
init();
181 #if FW_OBJECT_NAMES == 1 184 "%s_cmdResponseOut_OutputPort[%" PRI_PlatformIntType
"]",
185 this->m_objName.toChar(),
188 this->m_cmdResponseOut_OutputPort[port].setObjName(portName.
toChar());
198 this->m_eventOut_OutputPort[port].
init();
200 #if FW_OBJECT_NAMES == 1 203 "%s_eventOut_OutputPort[%" PRI_PlatformIntType
"]",
204 this->m_objName.toChar(),
207 this->m_eventOut_OutputPort[port].setObjName(portName.
toChar());
217 this->m_timeCaller_OutputPort[port].
init();
219 #if FW_OBJECT_NAMES == 1 222 "%s_timeCaller_OutputPort[%" PRI_PlatformIntType
"]",
223 this->m_objName.toChar(),
226 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
236 this->m_tlmOut_OutputPort[port].
init();
238 #if FW_OBJECT_NAMES == 1 241 "%s_tlmOut_OutputPort[%" PRI_PlatformIntType
"]",
242 this->m_objName.toChar(),
245 this->m_tlmOut_OutputPort[port].setObjName(portName.
toChar());
255 this->m_pingOut_OutputPort[port].
init();
257 #if FW_OBJECT_NAMES == 1 260 "%s_pingOut_OutputPort[%" PRI_PlatformIntType
"]",
261 this->m_objName.toChar(),
264 this->m_pingOut_OutputPort[port].setObjName(portName.
toChar());
271 static_cast<FwSizeType>(ComponentIpcSerializableBuffer::SERIALIZATION_SIZE)
275 static_cast<FwAssertArgType>(qStat)
288 static_cast<FwAssertArgType>(portNum)
291 return &this->m_cmdIn_InputPort[portNum];
303 static_cast<FwAssertArgType>(portNum)
306 return &this->m_pingIn_InputPort[portNum];
313 #if FW_ENABLE_TEXT_LOGGING == 1 315 void FileManagerComponentBase ::
316 set_LogText_OutputPort(
322 portNum < this->getNum_LogText_OutputPorts(),
323 static_cast<FwAssertArgType>(portNum)
326 this->m_LogText_OutputPort[portNum].addCallPort(port);
339 static_cast<FwAssertArgType>(portNum)
342 this->m_cmdRegOut_OutputPort[portNum].
addCallPort(port);
353 static_cast<FwAssertArgType>(portNum)
356 this->m_cmdResponseOut_OutputPort[portNum].
addCallPort(port);
367 static_cast<FwAssertArgType>(portNum)
370 this->m_eventOut_OutputPort[portNum].
addCallPort(port);
381 static_cast<FwAssertArgType>(portNum)
384 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
395 static_cast<FwAssertArgType>(portNum)
398 this->m_tlmOut_OutputPort[portNum].
addCallPort(port);
413 static_cast<FwAssertArgType>(portNum)
416 this->m_pingOut_OutputPort[portNum].
addCallPort(port);
419 #if FW_PORT_SERIALIZATION 425 #if FW_ENABLE_TEXT_LOGGING == 1 427 void FileManagerComponentBase ::
428 set_LogText_OutputPort(
430 Fw::InputSerializePort* port
434 portNum < this->getNum_LogText_OutputPorts(),
435 static_cast<FwAssertArgType>(portNum)
438 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
446 Fw::InputSerializePort* port
451 static_cast<FwAssertArgType>(portNum)
454 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
460 Fw::InputSerializePort* port
465 static_cast<FwAssertArgType>(portNum)
468 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
474 Fw::InputSerializePort* port
479 static_cast<FwAssertArgType>(portNum)
482 this->m_eventOut_OutputPort[portNum].registerSerialPort(port);
488 Fw::InputSerializePort* port
493 static_cast<FwAssertArgType>(portNum)
496 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
502 Fw::InputSerializePort* port
507 static_cast<FwAssertArgType>(portNum)
510 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
515 #if FW_PORT_SERIALIZATION 524 Fw::InputSerializePort* port
529 static_cast<FwAssertArgType>(portNum)
532 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
544 FW_ASSERT(this->m_cmdRegOut_OutputPort[0].isConnected());
546 this->m_cmdRegOut_OutputPort[0].
invoke(
550 this->m_cmdRegOut_OutputPort[0].
invoke(
554 this->m_cmdRegOut_OutputPort[0].
invoke(
558 this->m_cmdRegOut_OutputPort[0].
invoke(
562 this->m_cmdRegOut_OutputPort[0].
invoke(
566 this->m_cmdRegOut_OutputPort[0].
invoke(
570 this->m_cmdRegOut_OutputPort[0].
invoke(
581 Fw::ActiveComponentBase(compName)
616 #if FW_ENABLE_TEXT_LOGGING == 1 619 getNum_LogText_OutputPorts()
const 670 #if FW_ENABLE_TEXT_LOGGING == 1 672 bool FileManagerComponentBase ::
673 isConnected_LogText_OutputPort(
FwIndexType portNum)
676 portNum < this->getNum_LogText_OutputPorts(),
677 static_cast<FwAssertArgType>(portNum)
680 return this->m_LogText_OutputPort[portNum].isConnected();
690 static_cast<FwAssertArgType>(portNum)
693 return this->m_cmdRegOut_OutputPort[portNum].
isConnected();
701 static_cast<FwAssertArgType>(portNum)
704 return this->m_cmdResponseOut_OutputPort[portNum].
isConnected();
712 static_cast<FwAssertArgType>(portNum)
715 return this->m_eventOut_OutputPort[portNum].
isConnected();
723 static_cast<FwAssertArgType>(portNum)
726 return this->m_timeCaller_OutputPort[portNum].
isConnected();
734 static_cast<FwAssertArgType>(portNum)
737 return this->m_tlmOut_OutputPort[portNum].
isConnected();
749 static_cast<FwAssertArgType>(portNum)
752 return this->m_pingOut_OutputPort[portNum].
isConnected();
770 static_cast<FwAssertArgType>(portNum)
778 ComponentIpcSerializableBuffer msg;
782 _status = msg.serialize(
783 static_cast<FwEnumStoreType>(PINGIN_PING)
787 static_cast<FwAssertArgType>(_status)
791 _status = msg.serialize(portNum);
794 static_cast<FwAssertArgType>(_status)
798 _status = msg.serialize(key);
801 static_cast<FwAssertArgType>(_status)
810 static_cast<FwAssertArgType>(qStatus)
843 static_cast<FwAssertArgType>(portNum)
847 this->m_pingOut_OutputPort[portNum].isConnected(),
848 static_cast<FwAssertArgType>(portNum)
850 this->m_pingOut_OutputPort[portNum].
invoke(
866 FW_ASSERT(this->m_cmdResponseOut_OutputPort[0].isConnected());
867 this->m_cmdResponseOut_OutputPort[0].
invoke(opCode, cmdSeq, response);
888 ComponentIpcSerializableBuffer msg;
892 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_CREATEDIRECTORY));
895 static_cast<FwAssertArgType>(_status)
901 _status = msg.serialize(port);
904 static_cast<FwAssertArgType>(_status)
907 _status = msg.serialize(opCode);
910 static_cast<FwAssertArgType>(_status)
913 _status = msg.serialize(cmdSeq);
916 static_cast<FwAssertArgType>(_status)
919 _status = msg.serialize(args);
922 static_cast<FwAssertArgType>(_status)
931 static_cast<FwAssertArgType>(qStatus)
947 ComponentIpcSerializableBuffer msg;
951 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_MOVEFILE));
954 static_cast<FwAssertArgType>(_status)
960 _status = msg.serialize(port);
963 static_cast<FwAssertArgType>(_status)
966 _status = msg.serialize(opCode);
969 static_cast<FwAssertArgType>(_status)
972 _status = msg.serialize(cmdSeq);
975 static_cast<FwAssertArgType>(_status)
978 _status = msg.serialize(args);
981 static_cast<FwAssertArgType>(_status)
990 static_cast<FwAssertArgType>(qStatus)
1006 ComponentIpcSerializableBuffer msg;
1010 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_REMOVEDIRECTORY));
1013 static_cast<FwAssertArgType>(_status)
1019 _status = msg.serialize(port);
1022 static_cast<FwAssertArgType>(_status)
1025 _status = msg.serialize(opCode);
1028 static_cast<FwAssertArgType>(_status)
1031 _status = msg.serialize(cmdSeq);
1034 static_cast<FwAssertArgType>(_status)
1037 _status = msg.serialize(args);
1040 static_cast<FwAssertArgType>(_status)
1049 static_cast<FwAssertArgType>(qStatus)
1065 ComponentIpcSerializableBuffer msg;
1069 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_REMOVEFILE));
1072 static_cast<FwAssertArgType>(_status)
1078 _status = msg.serialize(port);
1081 static_cast<FwAssertArgType>(_status)
1084 _status = msg.serialize(opCode);
1087 static_cast<FwAssertArgType>(_status)
1090 _status = msg.serialize(cmdSeq);
1093 static_cast<FwAssertArgType>(_status)
1096 _status = msg.serialize(args);
1099 static_cast<FwAssertArgType>(_status)
1108 static_cast<FwAssertArgType>(qStatus)
1124 ComponentIpcSerializableBuffer msg;
1128 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_SHELLCOMMAND));
1131 static_cast<FwAssertArgType>(_status)
1137 _status = msg.serialize(port);
1140 static_cast<FwAssertArgType>(_status)
1143 _status = msg.serialize(opCode);
1146 static_cast<FwAssertArgType>(_status)
1149 _status = msg.serialize(cmdSeq);
1152 static_cast<FwAssertArgType>(_status)
1155 _status = msg.serialize(args);
1158 static_cast<FwAssertArgType>(_status)
1167 static_cast<FwAssertArgType>(qStatus)
1183 ComponentIpcSerializableBuffer msg;
1187 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_APPENDFILE));
1190 static_cast<FwAssertArgType>(_status)
1196 _status = msg.serialize(port);
1199 static_cast<FwAssertArgType>(_status)
1202 _status = msg.serialize(opCode);
1205 static_cast<FwAssertArgType>(_status)
1208 _status = msg.serialize(cmdSeq);
1211 static_cast<FwAssertArgType>(_status)
1214 _status = msg.serialize(args);
1217 static_cast<FwAssertArgType>(_status)
1226 static_cast<FwAssertArgType>(qStatus)
1242 ComponentIpcSerializableBuffer msg;
1246 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_FILESIZE));
1249 static_cast<FwAssertArgType>(_status)
1255 _status = msg.serialize(port);
1258 static_cast<FwAssertArgType>(_status)
1261 _status = msg.serialize(opCode);
1264 static_cast<FwAssertArgType>(_status)
1267 _status = msg.serialize(cmdSeq);
1270 static_cast<FwAssertArgType>(_status)
1273 _status = msg.serialize(args);
1276 static_cast<FwAssertArgType>(_status)
1285 static_cast<FwAssertArgType>(qStatus)
1386 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1387 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1395 if (this->m_eventOut_OutputPort[0].isConnected()) {
1399 #if FW_AMPCS_COMPATIBLE 1401 _status = _logBuff.
serialize(static_cast<U8>(2));
1404 static_cast<FwAssertArgType>(_status)
1411 static_cast<FwAssertArgType>(_status)
1414 #if FW_AMPCS_COMPATIBLE 1417 static_cast<U8>(
sizeof(U32))
1421 static_cast<FwAssertArgType>(_status)
1427 static_cast<FwAssertArgType>(_status)
1430 this->m_eventOut_OutputPort[0].
invoke(
1439 #if FW_ENABLE_TEXT_LOGGING 1440 if (this->m_LogText_OutputPort[0].isConnected()) {
1441 #if FW_OBJECT_NAMES == 1 1442 const char* _formatString =
1443 "(%s) %s: Could not create directory %s, returned status %" PRIu32
"";
1445 const char* _formatString =
1446 "%s: Could not create directory %s, returned status %" PRIu32
"";
1453 this->m_objName.toChar(),
1455 "DirectoryCreateError ",
1460 this->m_LogText_OutputPort[0].invoke(
1478 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1479 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1487 if (this->m_eventOut_OutputPort[0].isConnected()) {
1491 #if FW_AMPCS_COMPATIBLE 1493 _status = _logBuff.
serialize(static_cast<U8>(2));
1496 static_cast<FwAssertArgType>(_status)
1503 static_cast<FwAssertArgType>(_status)
1506 #if FW_AMPCS_COMPATIBLE 1509 static_cast<U8>(
sizeof(U32))
1513 static_cast<FwAssertArgType>(_status)
1519 static_cast<FwAssertArgType>(_status)
1522 this->m_eventOut_OutputPort[0].
invoke(
1531 #if FW_ENABLE_TEXT_LOGGING 1532 if (this->m_LogText_OutputPort[0].isConnected()) {
1533 #if FW_OBJECT_NAMES == 1 1534 const char* _formatString =
1535 "(%s) %s: Could not remove directory %s, returned status %" PRIu32
"";
1537 const char* _formatString =
1538 "%s: Could not remove directory %s, returned status %" PRIu32
"";
1545 this->m_objName.toChar(),
1547 "DirectoryRemoveError ",
1552 this->m_LogText_OutputPort[0].invoke(
1571 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1572 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1580 if (this->m_eventOut_OutputPort[0].isConnected()) {
1584 #if FW_AMPCS_COMPATIBLE 1586 _status = _logBuff.
serialize(static_cast<U8>(3));
1589 static_cast<FwAssertArgType>(_status)
1596 static_cast<FwAssertArgType>(_status)
1602 static_cast<FwAssertArgType>(_status)
1605 #if FW_AMPCS_COMPATIBLE 1608 static_cast<U8>(
sizeof(U32))
1612 static_cast<FwAssertArgType>(_status)
1618 static_cast<FwAssertArgType>(_status)
1621 this->m_eventOut_OutputPort[0].
invoke(
1630 #if FW_ENABLE_TEXT_LOGGING 1631 if (this->m_LogText_OutputPort[0].isConnected()) {
1632 #if FW_OBJECT_NAMES == 1 1633 const char* _formatString =
1634 "(%s) %s: Could not move file %s to file %s, returned status %" PRIu32
"";
1636 const char* _formatString =
1637 "%s: Could not move file %s to file %s, returned status %" PRIu32
"";
1644 this->m_objName.toChar(),
1652 this->m_LogText_OutputPort[0].invoke(
1670 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1671 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1679 if (this->m_eventOut_OutputPort[0].isConnected()) {
1683 #if FW_AMPCS_COMPATIBLE 1685 _status = _logBuff.
serialize(static_cast<U8>(2));
1688 static_cast<FwAssertArgType>(_status)
1695 static_cast<FwAssertArgType>(_status)
1698 #if FW_AMPCS_COMPATIBLE 1701 static_cast<U8>(
sizeof(U32))
1705 static_cast<FwAssertArgType>(_status)
1711 static_cast<FwAssertArgType>(_status)
1714 this->m_eventOut_OutputPort[0].
invoke(
1723 #if FW_ENABLE_TEXT_LOGGING 1724 if (this->m_LogText_OutputPort[0].isConnected()) {
1725 #if FW_OBJECT_NAMES == 1 1726 const char* _formatString =
1727 "(%s) %s: Could not remove file %s, returned status %" PRIu32
"";
1729 const char* _formatString =
1730 "%s: Could not remove file %s, returned status %" PRIu32
"";
1737 this->m_objName.toChar(),
1744 this->m_LogText_OutputPort[0].invoke(
1762 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1763 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1771 if (this->m_eventOut_OutputPort[0].isConnected()) {
1775 #if FW_AMPCS_COMPATIBLE 1777 _status = _logBuff.
serialize(static_cast<U8>(2));
1780 static_cast<FwAssertArgType>(_status)
1787 static_cast<FwAssertArgType>(_status)
1790 #if FW_AMPCS_COMPATIBLE 1793 static_cast<U8>(
sizeof(U32))
1797 static_cast<FwAssertArgType>(_status)
1803 static_cast<FwAssertArgType>(_status)
1806 this->m_eventOut_OutputPort[0].
invoke(
1815 #if FW_ENABLE_TEXT_LOGGING 1816 if (this->m_LogText_OutputPort[0].isConnected()) {
1817 #if FW_OBJECT_NAMES == 1 1818 const char* _formatString =
1819 "(%s) %s: Shell command %s failed with status %" PRIu32
"";
1821 const char* _formatString =
1822 "%s: Shell command %s failed with status %" PRIu32
"";
1829 this->m_objName.toChar(),
1831 "ShellCommandFailed ",
1836 this->m_LogText_OutputPort[0].invoke(
1855 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1856 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1864 if (this->m_eventOut_OutputPort[0].isConnected()) {
1868 #if FW_AMPCS_COMPATIBLE 1870 _status = _logBuff.
serialize(static_cast<U8>(3));
1873 static_cast<FwAssertArgType>(_status)
1880 static_cast<FwAssertArgType>(_status)
1886 static_cast<FwAssertArgType>(_status)
1889 #if FW_AMPCS_COMPATIBLE 1892 static_cast<U8>(
sizeof(U32))
1896 static_cast<FwAssertArgType>(_status)
1902 static_cast<FwAssertArgType>(_status)
1905 this->m_eventOut_OutputPort[0].
invoke(
1914 #if FW_ENABLE_TEXT_LOGGING 1915 if (this->m_LogText_OutputPort[0].isConnected()) {
1916 #if FW_OBJECT_NAMES == 1 1917 const char* _formatString =
1918 "(%s) %s: Appending %s onto %s failed with status %" PRIu32
"";
1920 const char* _formatString =
1921 "%s: Appending %s onto %s failed with status %" PRIu32
"";
1928 this->m_objName.toChar(),
1930 "AppendFileFailed ",
1936 this->m_LogText_OutputPort[0].invoke(
1954 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1955 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1963 if (this->m_eventOut_OutputPort[0].isConnected()) {
1967 #if FW_AMPCS_COMPATIBLE 1969 _status = _logBuff.
serialize(static_cast<U8>(2));
1972 static_cast<FwAssertArgType>(_status)
1979 static_cast<FwAssertArgType>(_status)
1985 static_cast<FwAssertArgType>(_status)
1988 this->m_eventOut_OutputPort[0].
invoke(
1997 #if FW_ENABLE_TEXT_LOGGING 1998 if (this->m_LogText_OutputPort[0].isConnected()) {
1999 #if FW_OBJECT_NAMES == 1 2000 const char* _formatString =
2001 "(%s) %s: Appended %s to the end of %s";
2003 const char* _formatString =
2004 "%s: Appended %s to the end of %s";
2011 this->m_objName.toChar(),
2013 "AppendFileSucceeded ",
2018 this->m_LogText_OutputPort[0].invoke(
2033 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2034 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2042 if (this->m_eventOut_OutputPort[0].isConnected()) {
2046 #if FW_AMPCS_COMPATIBLE 2048 _status = _logBuff.
serialize(static_cast<U8>(1));
2051 static_cast<FwAssertArgType>(_status)
2058 static_cast<FwAssertArgType>(_status)
2061 this->m_eventOut_OutputPort[0].
invoke(
2070 #if FW_ENABLE_TEXT_LOGGING 2071 if (this->m_LogText_OutputPort[0].isConnected()) {
2072 #if FW_OBJECT_NAMES == 1 2073 const char* _formatString =
2074 "(%s) %s: Shell command %s succeeded";
2076 const char* _formatString =
2077 "%s: Shell command %s succeeded";
2084 this->m_objName.toChar(),
2086 "ShellCommandSucceeded ",
2090 this->m_LogText_OutputPort[0].invoke(
2105 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2106 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2114 if (this->m_eventOut_OutputPort[0].isConnected()) {
2118 #if FW_AMPCS_COMPATIBLE 2120 _status = _logBuff.
serialize(static_cast<U8>(1));
2123 static_cast<FwAssertArgType>(_status)
2130 static_cast<FwAssertArgType>(_status)
2133 this->m_eventOut_OutputPort[0].
invoke(
2142 #if FW_ENABLE_TEXT_LOGGING 2143 if (this->m_LogText_OutputPort[0].isConnected()) {
2144 #if FW_OBJECT_NAMES == 1 2145 const char* _formatString =
2146 "(%s) %s: Created directory %s successfully";
2148 const char* _formatString =
2149 "%s: Created directory %s successfully";
2156 this->m_objName.toChar(),
2158 "CreateDirectorySucceeded ",
2162 this->m_LogText_OutputPort[0].invoke(
2177 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2178 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2186 if (this->m_eventOut_OutputPort[0].isConnected()) {
2190 #if FW_AMPCS_COMPATIBLE 2192 _status = _logBuff.
serialize(static_cast<U8>(1));
2195 static_cast<FwAssertArgType>(_status)
2202 static_cast<FwAssertArgType>(_status)
2205 this->m_eventOut_OutputPort[0].
invoke(
2214 #if FW_ENABLE_TEXT_LOGGING 2215 if (this->m_LogText_OutputPort[0].isConnected()) {
2216 #if FW_OBJECT_NAMES == 1 2217 const char* _formatString =
2218 "(%s) %s: Removed directory %s successfully";
2220 const char* _formatString =
2221 "%s: Removed directory %s successfully";
2228 this->m_objName.toChar(),
2230 "RemoveDirectorySucceeded ",
2234 this->m_LogText_OutputPort[0].invoke(
2252 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2253 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2261 if (this->m_eventOut_OutputPort[0].isConnected()) {
2265 #if FW_AMPCS_COMPATIBLE 2267 _status = _logBuff.
serialize(static_cast<U8>(2));
2270 static_cast<FwAssertArgType>(_status)
2277 static_cast<FwAssertArgType>(_status)
2283 static_cast<FwAssertArgType>(_status)
2286 this->m_eventOut_OutputPort[0].
invoke(
2295 #if FW_ENABLE_TEXT_LOGGING 2296 if (this->m_LogText_OutputPort[0].isConnected()) {
2297 #if FW_OBJECT_NAMES == 1 2298 const char* _formatString =
2299 "(%s) %s: Moved file %s to file %s successfully";
2301 const char* _formatString =
2302 "%s: Moved file %s to file %s successfully";
2309 this->m_objName.toChar(),
2311 "MoveFileSucceeded ",
2316 this->m_LogText_OutputPort[0].invoke(
2331 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2332 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2340 if (this->m_eventOut_OutputPort[0].isConnected()) {
2344 #if FW_AMPCS_COMPATIBLE 2346 _status = _logBuff.
serialize(static_cast<U8>(1));
2349 static_cast<FwAssertArgType>(_status)
2356 static_cast<FwAssertArgType>(_status)
2359 this->m_eventOut_OutputPort[0].
invoke(
2368 #if FW_ENABLE_TEXT_LOGGING 2369 if (this->m_LogText_OutputPort[0].isConnected()) {
2370 #if FW_OBJECT_NAMES == 1 2371 const char* _formatString =
2372 "(%s) %s: Removed file %s successfully";
2374 const char* _formatString =
2375 "%s: Removed file %s successfully";
2382 this->m_objName.toChar(),
2384 "RemoveFileSucceeded ",
2388 this->m_LogText_OutputPort[0].invoke(
2406 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2407 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2415 if (this->m_eventOut_OutputPort[0].isConnected()) {
2419 #if FW_AMPCS_COMPATIBLE 2421 _status = _logBuff.
serialize(static_cast<U8>(2));
2424 static_cast<FwAssertArgType>(_status)
2431 static_cast<FwAssertArgType>(_status)
2437 static_cast<FwAssertArgType>(_status)
2440 this->m_eventOut_OutputPort[0].
invoke(
2449 #if FW_ENABLE_TEXT_LOGGING 2450 if (this->m_LogText_OutputPort[0].isConnected()) {
2451 #if FW_OBJECT_NAMES == 1 2452 const char* _formatString =
2453 "(%s) %s: Appending file %s to the end of %s...";
2455 const char* _formatString =
2456 "%s: Appending file %s to the end of %s...";
2463 this->m_objName.toChar(),
2465 "AppendFileStarted ",
2470 this->m_LogText_OutputPort[0].invoke(
2485 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2486 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2494 if (this->m_eventOut_OutputPort[0].isConnected()) {
2498 #if FW_AMPCS_COMPATIBLE 2500 _status = _logBuff.
serialize(static_cast<U8>(1));
2503 static_cast<FwAssertArgType>(_status)
2510 static_cast<FwAssertArgType>(_status)
2513 this->m_eventOut_OutputPort[0].
invoke(
2522 #if FW_ENABLE_TEXT_LOGGING 2523 if (this->m_LogText_OutputPort[0].isConnected()) {
2524 #if FW_OBJECT_NAMES == 1 2525 const char* _formatString =
2526 "(%s) %s: Running shell command %s...";
2528 const char* _formatString =
2529 "%s: Running shell command %s...";
2536 this->m_objName.toChar(),
2538 "ShellCommandStarted ",
2542 this->m_LogText_OutputPort[0].invoke(
2557 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2558 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2566 if (this->m_eventOut_OutputPort[0].isConnected()) {
2570 #if FW_AMPCS_COMPATIBLE 2572 _status = _logBuff.
serialize(static_cast<U8>(1));
2575 static_cast<FwAssertArgType>(_status)
2582 static_cast<FwAssertArgType>(_status)
2585 this->m_eventOut_OutputPort[0].
invoke(
2594 #if FW_ENABLE_TEXT_LOGGING 2595 if (this->m_LogText_OutputPort[0].isConnected()) {
2596 #if FW_OBJECT_NAMES == 1 2597 const char* _formatString =
2598 "(%s) %s: Creating directory %s...";
2600 const char* _formatString =
2601 "%s: Creating directory %s...";
2608 this->m_objName.toChar(),
2610 "CreateDirectoryStarted ",
2614 this->m_LogText_OutputPort[0].invoke(
2629 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2630 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2638 if (this->m_eventOut_OutputPort[0].isConnected()) {
2642 #if FW_AMPCS_COMPATIBLE 2644 _status = _logBuff.
serialize(static_cast<U8>(1));
2647 static_cast<FwAssertArgType>(_status)
2654 static_cast<FwAssertArgType>(_status)
2657 this->m_eventOut_OutputPort[0].
invoke(
2666 #if FW_ENABLE_TEXT_LOGGING 2667 if (this->m_LogText_OutputPort[0].isConnected()) {
2668 #if FW_OBJECT_NAMES == 1 2669 const char* _formatString =
2670 "(%s) %s: Removing directory %s...";
2672 const char* _formatString =
2673 "%s: Removing directory %s...";
2680 this->m_objName.toChar(),
2682 "RemoveDirectoryStarted ",
2686 this->m_LogText_OutputPort[0].invoke(
2704 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2705 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2713 if (this->m_eventOut_OutputPort[0].isConnected()) {
2717 #if FW_AMPCS_COMPATIBLE 2719 _status = _logBuff.
serialize(static_cast<U8>(2));
2722 static_cast<FwAssertArgType>(_status)
2729 static_cast<FwAssertArgType>(_status)
2735 static_cast<FwAssertArgType>(_status)
2738 this->m_eventOut_OutputPort[0].
invoke(
2747 #if FW_ENABLE_TEXT_LOGGING 2748 if (this->m_LogText_OutputPort[0].isConnected()) {
2749 #if FW_OBJECT_NAMES == 1 2750 const char* _formatString =
2751 "(%s) %s: Moving file %s to file %s...";
2753 const char* _formatString =
2754 "%s: Moving file %s to file %s...";
2761 this->m_objName.toChar(),
2768 this->m_LogText_OutputPort[0].invoke(
2783 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2784 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2792 if (this->m_eventOut_OutputPort[0].isConnected()) {
2796 #if FW_AMPCS_COMPATIBLE 2798 _status = _logBuff.
serialize(static_cast<U8>(1));
2801 static_cast<FwAssertArgType>(_status)
2808 static_cast<FwAssertArgType>(_status)
2811 this->m_eventOut_OutputPort[0].
invoke(
2820 #if FW_ENABLE_TEXT_LOGGING 2821 if (this->m_LogText_OutputPort[0].isConnected()) {
2822 #if FW_OBJECT_NAMES == 1 2823 const char* _formatString =
2824 "(%s) %s: Removing file %s...";
2826 const char* _formatString =
2827 "%s: Removing file %s...";
2834 this->m_objName.toChar(),
2836 "RemoveFileStarted ",
2840 this->m_LogText_OutputPort[0].invoke(
2858 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2859 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2867 if (this->m_eventOut_OutputPort[0].isConnected()) {
2871 #if FW_AMPCS_COMPATIBLE 2873 _status = _logBuff.
serialize(static_cast<U8>(2));
2876 static_cast<FwAssertArgType>(_status)
2883 static_cast<FwAssertArgType>(_status)
2886 #if FW_AMPCS_COMPATIBLE 2889 static_cast<U8>(
sizeof(
U64))
2893 static_cast<FwAssertArgType>(_status)
2899 static_cast<FwAssertArgType>(_status)
2902 this->m_eventOut_OutputPort[0].
invoke(
2911 #if FW_ENABLE_TEXT_LOGGING 2912 if (this->m_LogText_OutputPort[0].isConnected()) {
2913 #if FW_OBJECT_NAMES == 1 2914 const char* _formatString =
2915 "(%s) %s: The size of file %s is %" PRIu64
" B";
2917 const char* _formatString =
2918 "%s: The size of file %s is %" PRIu64
" B";
2925 this->m_objName.toChar(),
2927 "FileSizeSucceeded ",
2932 this->m_LogText_OutputPort[0].invoke(
2950 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2951 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2959 if (this->m_eventOut_OutputPort[0].isConnected()) {
2963 #if FW_AMPCS_COMPATIBLE 2965 _status = _logBuff.
serialize(static_cast<U8>(2));
2968 static_cast<FwAssertArgType>(_status)
2975 static_cast<FwAssertArgType>(_status)
2978 #if FW_AMPCS_COMPATIBLE 2981 static_cast<U8>(
sizeof(U32))
2985 static_cast<FwAssertArgType>(_status)
2991 static_cast<FwAssertArgType>(_status)
2994 this->m_eventOut_OutputPort[0].
invoke(
3003 #if FW_ENABLE_TEXT_LOGGING 3004 if (this->m_LogText_OutputPort[0].isConnected()) {
3005 #if FW_OBJECT_NAMES == 1 3006 const char* _formatString =
3007 "(%s) %s: Failed to get the size of file %s, returned status %" PRIu32
"";
3009 const char* _formatString =
3010 "%s: Failed to get the size of file %s, returned status %" PRIu32
"";
3017 this->m_objName.toChar(),
3024 this->m_LogText_OutputPort[0].invoke(
3039 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3040 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3048 if (this->m_eventOut_OutputPort[0].isConnected()) {
3052 #if FW_AMPCS_COMPATIBLE 3054 _status = _logBuff.
serialize(static_cast<U8>(1));
3057 static_cast<FwAssertArgType>(_status)
3064 static_cast<FwAssertArgType>(_status)
3067 this->m_eventOut_OutputPort[0].
invoke(
3076 #if FW_ENABLE_TEXT_LOGGING 3077 if (this->m_LogText_OutputPort[0].isConnected()) {
3078 #if FW_OBJECT_NAMES == 1 3079 const char* _formatString =
3080 "(%s) %s: Checking size of file %s...";
3082 const char* _formatString =
3083 "%s: Checking size of file %s...";
3090 this->m_objName.toChar(),
3096 this->m_LogText_OutputPort[0].invoke(
3116 if (this->m_tlmOut_OutputPort[0].isConnected()) {
3118 this->m_timeCaller_OutputPort[0].isConnected() &&
3121 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
3128 static_cast<FwAssertArgType>(_stat)
3135 this->m_tlmOut_OutputPort[0].
invoke(
3149 if (this->m_tlmOut_OutputPort[0].isConnected()) {
3151 this->m_timeCaller_OutputPort[0].isConnected() &&
3154 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
3161 static_cast<FwAssertArgType>(_stat)
3168 this->m_tlmOut_OutputPort[0].
invoke(
3183 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3185 this->m_timeCaller_OutputPort[0].
invoke(_time);
3200 ComponentIpcSerializableBuffer _msg;
3210 static_cast<FwAssertArgType>(_msgStatus)
3220 static_cast<FwAssertArgType>(_deserStatus)
3223 MsgTypeEnum _msgType =
static_cast<MsgTypeEnum
>(_desMsg);
3225 if (_msgType == FILEMANAGER_COMPONENT_EXIT) {
3230 _deserStatus = _msg.deserialize(portNum);
3233 static_cast<FwAssertArgType>(_deserStatus)
3241 _deserStatus = _msg.deserialize(key);
3244 static_cast<FwAssertArgType>(_deserStatus)
3256 case CMD_CREATEDIRECTORY: {
3259 _deserStatus = _msg.deserialize(_opCode);
3262 static_cast<FwAssertArgType>(_deserStatus)
3267 _deserStatus = _msg.deserialize(_cmdSeq);
3270 static_cast<FwAssertArgType>(_deserStatus)
3275 _deserStatus = _msg.deserialize(args);
3278 static_cast<FwAssertArgType>(_deserStatus)
3288 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3301 #if FW_CMD_CHECK_RESIDUAL 3303 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3321 case CMD_MOVEFILE: {
3324 _deserStatus = _msg.deserialize(_opCode);
3327 static_cast<FwAssertArgType>(_deserStatus)
3332 _deserStatus = _msg.deserialize(_cmdSeq);
3335 static_cast<FwAssertArgType>(_deserStatus)
3340 _deserStatus = _msg.deserialize(args);
3343 static_cast<FwAssertArgType>(_deserStatus)
3353 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3368 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3381 #if FW_CMD_CHECK_RESIDUAL 3383 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3402 case CMD_REMOVEDIRECTORY: {
3405 _deserStatus = _msg.deserialize(_opCode);
3408 static_cast<FwAssertArgType>(_deserStatus)
3413 _deserStatus = _msg.deserialize(_cmdSeq);
3416 static_cast<FwAssertArgType>(_deserStatus)
3421 _deserStatus = _msg.deserialize(args);
3424 static_cast<FwAssertArgType>(_deserStatus)
3434 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3447 #if FW_CMD_CHECK_RESIDUAL 3449 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3467 case CMD_REMOVEFILE: {
3470 _deserStatus = _msg.deserialize(_opCode);
3473 static_cast<FwAssertArgType>(_deserStatus)
3478 _deserStatus = _msg.deserialize(_cmdSeq);
3481 static_cast<FwAssertArgType>(_deserStatus)
3486 _deserStatus = _msg.deserialize(args);
3489 static_cast<FwAssertArgType>(_deserStatus)
3499 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3514 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3527 #if FW_CMD_CHECK_RESIDUAL 3529 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3548 case CMD_SHELLCOMMAND: {
3551 _deserStatus = _msg.deserialize(_opCode);
3554 static_cast<FwAssertArgType>(_deserStatus)
3559 _deserStatus = _msg.deserialize(_cmdSeq);
3562 static_cast<FwAssertArgType>(_deserStatus)
3567 _deserStatus = _msg.deserialize(args);
3570 static_cast<FwAssertArgType>(_deserStatus)
3580 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3595 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3608 #if FW_CMD_CHECK_RESIDUAL 3610 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3629 case CMD_APPENDFILE: {
3632 _deserStatus = _msg.deserialize(_opCode);
3635 static_cast<FwAssertArgType>(_deserStatus)
3640 _deserStatus = _msg.deserialize(_cmdSeq);
3643 static_cast<FwAssertArgType>(_deserStatus)
3648 _deserStatus = _msg.deserialize(args);
3651 static_cast<FwAssertArgType>(_deserStatus)
3661 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3676 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3689 #if FW_CMD_CHECK_RESIDUAL 3691 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3710 case CMD_FILESIZE: {
3713 _deserStatus = _msg.deserialize(_opCode);
3716 static_cast<FwAssertArgType>(_deserStatus)
3721 _deserStatus = _msg.deserialize(_cmdSeq);
3724 static_cast<FwAssertArgType>(_deserStatus)
3729 _deserStatus = _msg.deserialize(args);
3732 static_cast<FwAssertArgType>(_deserStatus)
3742 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3755 #if FW_CMD_CHECK_RESIDUAL 3757 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3785 void FileManagerComponentBase ::
3797 const U32 idBase = callComp->
getIdBase();
3798 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
3801 switch (opCode - idBase) {
3803 compPtr->CreateDirectory_cmdHandlerBase(
3812 compPtr->MoveFile_cmdHandlerBase(
3821 compPtr->RemoveDirectory_cmdHandlerBase(
3830 compPtr->RemoveFile_cmdHandlerBase(
3839 compPtr->ShellCommand_cmdHandlerBase(
3848 compPtr->AppendFile_cmdHandlerBase(
3857 compPtr->FileSize_cmdHandlerBase(
3871 void FileManagerComponentBase ::
3880 compPtr->pingIn_handlerBase(
The File System component began deleting a directory.
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
Serialization/Deserialization operation was successful.
void log_ACTIVITY_HI_FileSizeSucceeded(const Fw::StringBase &fileName, U64 size) const
void addCallPort(InputTimePort *callPort)
Register an input port.
void AppendFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void log_ACTIVITY_HI_CreateDirectoryStarted(const Fw::StringBase &dirName) const
The File System component created a new directory without error.
void log_ACTIVITY_HI_RemoveDirectorySucceeded(const Fw::StringBase &dirName) const
virtual void MoveFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &sourceFileName, const Fw::CmdStringArg &destFileName)=0
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.
The File System component deleted an existing file without error.
Status
status returned from the queue send function
void log_WARNING_HI_FileSizeError(const Fw::StringBase &fileName, U32 status) const
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
FwIndexType getNum_cmdRegOut_OutputPorts() const
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.
Channel ID for CommandsExecuted.
The File System component deleted and existing directory without error.
virtual void RemoveFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName, bool ignoreErrors)=0
The File System component appended 2 files without error.
PlatformSizeType FwSizeType
void ShellCommand_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
FwIndexType getNum_pingIn_InputPorts() const
void invoke(U32 key) const
Invoke a port interface.
The File System component executed a shell command that returned status zero.
An error occurred while attempting to remove a directory.
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
An error occurred while attempting to remove a file.
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)
void log_ACTIVITY_HI_MoveFileStarted(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const
void addCallPort(InputCmdRegPort *callPort)
Register an input port.
PlatformIndexType FwIndexType
Os::Queue m_queue
queue object for active component
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
void log_ACTIVITY_HI_AppendFileSucceeded(const Fw::StringBase &source, const Fw::StringBase &target) const
FileManagerComponentBase(const char *compName="")
Construct FileManagerComponentBase object.
void addCallPort(InputTlmPort *callPort)
Register an input port.
void init()
Object initializer.
SerializeStatus
forward declaration for string
The File System component executed a shell command that returned status non-zero. ...
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].
FwIndexType getNum_eventOut_OutputPorts() const
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
void invoke(FwOpcodeType opCode) const
Invoke a port interface.
FwIndexType getNum_cmdResponseOut_OutputPorts() const
The File System component began deleting an existing file.
virtual void CreateDirectory_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &dirName)=0
Serializable::SizeType getBuffLeft() const
returns how much deserialization buffer is left
void RemoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void init()
Initialization function.
message to exit active component task
Append 1 file's contents to the end of another.
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.
FwIndexType getNum_timeCaller_OutputPorts() const
void init()
Initialization function.
void invoke(Fw::Time &time) const
Invoke a port interface.
const char * toChar() const
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.
No time base has been established.
void addCallPort(InputPingPort *callPort)
Register an input port.
virtual void ShellCommand_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &command, const Fw::CmdStringArg &logFileName)=0
Status send(const U8 *buffer, FwSizeType size, FwQueuePriorityType priority, BlockingType blockType) override
send a message into the queue through delegate
virtual void CreateDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CreateDirectory.
FwIndexType getNum_tlmOut_OutputPorts() const
void resetDeser()
reset deserialization to beginning
A serious but recoverable event.
Errors dispatching messages.
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.
Remove a directory, which must be empty.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
void MoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
uint8_t U8
8-bit unsigned integer
The File System component appended 2 files without error.
virtual void FileSize_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName)=0
Handler for command FileSize.
FwIndexType getNum_cmdIn_InputPorts() const
void log_ACTIVITY_HI_MoveFileSucceeded(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const
The File System component moved a file to a new location without error.
Command failed to deserialize.
void log_WARNING_HI_DirectoryRemoveError(const Fw::StringBase &dirName, U32 status) const
Important informational events.
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.
PlatformQueuePriorityType FwQueuePriorityType
void log_ACTIVITY_HI_AppendFileStarted(const Fw::StringBase &source, const Fw::StringBase &target) const
void tlmWrite_Errors(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
A message was sent requesting an exit of the loop.
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
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
The File System component began moving a file to a new location.
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void addCallPort(InputLogPort *callPort)
Register an input port.
void init()
Initialization function.
The File System component began creating a new directory.
void log_WARNING_HI_AppendFileFailed(const Fw::StringBase &source, const Fw::StringBase &target, U32 status) const
void regCommands()
Register commands with the Command Dispatcher.
Perform a Linux shell command and write the output to a log file.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
The File System component returned status non-zero when trying to append 2 files together.
message sent/received okay
virtual void AppendFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command AppendFile.
The File System component began executing a shell command.
virtual SerializeStatus serialize(SerializeBufferBase &buffer) const
serialization function
Message will return with status when space is unavailable.
virtual void RemoveDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RemoveDirectory.
Status receive(U8 *destination, FwSizeType capacity, BlockingType blockType, FwSizeType &actualSize, FwQueuePriorityType &priority) override
receive a message from the queue through delegate
FwIndexType getNum_pingOut_OutputPorts() const
void log_WARNING_HI_ShellCommandFailed(const Fw::StringBase &command, U32 status) const
void init()
Initialization function.
An error occurred while attempting to create a directory.
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
An error occurred while attempting to move a file.
void log_WARNING_HI_FileMoveError(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName, U32 status) const
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
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
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
void log_WARNING_HI_FileRemoveError(const Fw::StringBase &fileName, U32 status) const
#define FW_LOG_STRING_MAX_SIZE
Max size of log string parameter type.
virtual const CHAR * toChar() const =0
void addCallPort(InputCmdResponsePort *callPort)
Register an input port.
virtual void AppendFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &source, const Fw::CmdStringArg &target)=0