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 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 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 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 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 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 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 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 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 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)
845 this->m_pingOut_OutputPort[portNum].
invoke(
861 FW_ASSERT(this->m_cmdResponseOut_OutputPort[0].isConnected());
862 this->m_cmdResponseOut_OutputPort[0].
invoke(opCode, cmdSeq, response);
883 ComponentIpcSerializableBuffer msg;
887 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_CREATEDIRECTORY));
890 static_cast<FwAssertArgType>(_status)
896 _status = msg.serialize(port);
899 static_cast<FwAssertArgType>(_status)
902 _status = msg.serialize(opCode);
905 static_cast<FwAssertArgType>(_status)
908 _status = msg.serialize(cmdSeq);
911 static_cast<FwAssertArgType>(_status)
914 _status = msg.serialize(args);
917 static_cast<FwAssertArgType>(_status)
926 static_cast<FwAssertArgType>(qStatus)
942 ComponentIpcSerializableBuffer msg;
946 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_MOVEFILE));
949 static_cast<FwAssertArgType>(_status)
955 _status = msg.serialize(port);
958 static_cast<FwAssertArgType>(_status)
961 _status = msg.serialize(opCode);
964 static_cast<FwAssertArgType>(_status)
967 _status = msg.serialize(cmdSeq);
970 static_cast<FwAssertArgType>(_status)
973 _status = msg.serialize(args);
976 static_cast<FwAssertArgType>(_status)
985 static_cast<FwAssertArgType>(qStatus)
1001 ComponentIpcSerializableBuffer msg;
1005 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_REMOVEDIRECTORY));
1008 static_cast<FwAssertArgType>(_status)
1014 _status = msg.serialize(port);
1017 static_cast<FwAssertArgType>(_status)
1020 _status = msg.serialize(opCode);
1023 static_cast<FwAssertArgType>(_status)
1026 _status = msg.serialize(cmdSeq);
1029 static_cast<FwAssertArgType>(_status)
1032 _status = msg.serialize(args);
1035 static_cast<FwAssertArgType>(_status)
1044 static_cast<FwAssertArgType>(qStatus)
1060 ComponentIpcSerializableBuffer msg;
1064 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_REMOVEFILE));
1067 static_cast<FwAssertArgType>(_status)
1073 _status = msg.serialize(port);
1076 static_cast<FwAssertArgType>(_status)
1079 _status = msg.serialize(opCode);
1082 static_cast<FwAssertArgType>(_status)
1085 _status = msg.serialize(cmdSeq);
1088 static_cast<FwAssertArgType>(_status)
1091 _status = msg.serialize(args);
1094 static_cast<FwAssertArgType>(_status)
1103 static_cast<FwAssertArgType>(qStatus)
1119 ComponentIpcSerializableBuffer msg;
1123 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_SHELLCOMMAND));
1126 static_cast<FwAssertArgType>(_status)
1132 _status = msg.serialize(port);
1135 static_cast<FwAssertArgType>(_status)
1138 _status = msg.serialize(opCode);
1141 static_cast<FwAssertArgType>(_status)
1144 _status = msg.serialize(cmdSeq);
1147 static_cast<FwAssertArgType>(_status)
1150 _status = msg.serialize(args);
1153 static_cast<FwAssertArgType>(_status)
1162 static_cast<FwAssertArgType>(qStatus)
1178 ComponentIpcSerializableBuffer msg;
1182 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_APPENDFILE));
1185 static_cast<FwAssertArgType>(_status)
1191 _status = msg.serialize(port);
1194 static_cast<FwAssertArgType>(_status)
1197 _status = msg.serialize(opCode);
1200 static_cast<FwAssertArgType>(_status)
1203 _status = msg.serialize(cmdSeq);
1206 static_cast<FwAssertArgType>(_status)
1209 _status = msg.serialize(args);
1212 static_cast<FwAssertArgType>(_status)
1221 static_cast<FwAssertArgType>(qStatus)
1237 ComponentIpcSerializableBuffer msg;
1241 _status = msg.serialize(static_cast<FwEnumStoreType>(CMD_FILESIZE));
1244 static_cast<FwAssertArgType>(_status)
1250 _status = msg.serialize(port);
1253 static_cast<FwAssertArgType>(_status)
1256 _status = msg.serialize(opCode);
1259 static_cast<FwAssertArgType>(_status)
1262 _status = msg.serialize(cmdSeq);
1265 static_cast<FwAssertArgType>(_status)
1268 _status = msg.serialize(args);
1271 static_cast<FwAssertArgType>(_status)
1280 static_cast<FwAssertArgType>(qStatus)
1381 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1382 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1390 if (this->m_eventOut_OutputPort[0].isConnected()) {
1394 #if FW_AMPCS_COMPATIBLE 1396 _status = _logBuff.
serialize(static_cast<U8>(2));
1399 static_cast<FwAssertArgType>(_status)
1406 static_cast<FwAssertArgType>(_status)
1409 #if FW_AMPCS_COMPATIBLE 1412 static_cast<U8>(
sizeof(U32))
1416 static_cast<FwAssertArgType>(_status)
1422 static_cast<FwAssertArgType>(_status)
1425 this->m_eventOut_OutputPort[0].
invoke(
1434 #if FW_ENABLE_TEXT_LOGGING 1435 if (this->m_LogText_OutputPort[0].isConnected()) {
1436 #if FW_OBJECT_NAMES == 1 1437 const char* _formatString =
1438 "(%s) %s: Could not create directory %s, returned status %" PRIu32
"";
1440 const char* _formatString =
1441 "%s: Could not create directory %s, returned status %" PRIu32
"";
1448 this->m_objName.toChar(),
1450 "DirectoryCreateError ",
1455 this->m_LogText_OutputPort[0].invoke(
1473 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1474 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1482 if (this->m_eventOut_OutputPort[0].isConnected()) {
1486 #if FW_AMPCS_COMPATIBLE 1488 _status = _logBuff.
serialize(static_cast<U8>(2));
1491 static_cast<FwAssertArgType>(_status)
1498 static_cast<FwAssertArgType>(_status)
1501 #if FW_AMPCS_COMPATIBLE 1504 static_cast<U8>(
sizeof(U32))
1508 static_cast<FwAssertArgType>(_status)
1514 static_cast<FwAssertArgType>(_status)
1517 this->m_eventOut_OutputPort[0].
invoke(
1526 #if FW_ENABLE_TEXT_LOGGING 1527 if (this->m_LogText_OutputPort[0].isConnected()) {
1528 #if FW_OBJECT_NAMES == 1 1529 const char* _formatString =
1530 "(%s) %s: Could not remove directory %s, returned status %" PRIu32
"";
1532 const char* _formatString =
1533 "%s: Could not remove directory %s, returned status %" PRIu32
"";
1540 this->m_objName.toChar(),
1542 "DirectoryRemoveError ",
1547 this->m_LogText_OutputPort[0].invoke(
1566 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1567 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1575 if (this->m_eventOut_OutputPort[0].isConnected()) {
1579 #if FW_AMPCS_COMPATIBLE 1581 _status = _logBuff.
serialize(static_cast<U8>(3));
1584 static_cast<FwAssertArgType>(_status)
1591 static_cast<FwAssertArgType>(_status)
1597 static_cast<FwAssertArgType>(_status)
1600 #if FW_AMPCS_COMPATIBLE 1603 static_cast<U8>(
sizeof(U32))
1607 static_cast<FwAssertArgType>(_status)
1613 static_cast<FwAssertArgType>(_status)
1616 this->m_eventOut_OutputPort[0].
invoke(
1625 #if FW_ENABLE_TEXT_LOGGING 1626 if (this->m_LogText_OutputPort[0].isConnected()) {
1627 #if FW_OBJECT_NAMES == 1 1628 const char* _formatString =
1629 "(%s) %s: Could not move file %s to file %s, returned status %" PRIu32
"";
1631 const char* _formatString =
1632 "%s: Could not move file %s to file %s, returned status %" PRIu32
"";
1639 this->m_objName.toChar(),
1647 this->m_LogText_OutputPort[0].invoke(
1665 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1666 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1674 if (this->m_eventOut_OutputPort[0].isConnected()) {
1678 #if FW_AMPCS_COMPATIBLE 1680 _status = _logBuff.
serialize(static_cast<U8>(2));
1683 static_cast<FwAssertArgType>(_status)
1690 static_cast<FwAssertArgType>(_status)
1693 #if FW_AMPCS_COMPATIBLE 1696 static_cast<U8>(
sizeof(U32))
1700 static_cast<FwAssertArgType>(_status)
1706 static_cast<FwAssertArgType>(_status)
1709 this->m_eventOut_OutputPort[0].
invoke(
1718 #if FW_ENABLE_TEXT_LOGGING 1719 if (this->m_LogText_OutputPort[0].isConnected()) {
1720 #if FW_OBJECT_NAMES == 1 1721 const char* _formatString =
1722 "(%s) %s: Could not remove file %s, returned status %" PRIu32
"";
1724 const char* _formatString =
1725 "%s: Could not remove file %s, returned status %" PRIu32
"";
1732 this->m_objName.toChar(),
1739 this->m_LogText_OutputPort[0].invoke(
1757 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1758 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1766 if (this->m_eventOut_OutputPort[0].isConnected()) {
1770 #if FW_AMPCS_COMPATIBLE 1772 _status = _logBuff.
serialize(static_cast<U8>(2));
1775 static_cast<FwAssertArgType>(_status)
1782 static_cast<FwAssertArgType>(_status)
1785 #if FW_AMPCS_COMPATIBLE 1788 static_cast<U8>(
sizeof(U32))
1792 static_cast<FwAssertArgType>(_status)
1798 static_cast<FwAssertArgType>(_status)
1801 this->m_eventOut_OutputPort[0].
invoke(
1810 #if FW_ENABLE_TEXT_LOGGING 1811 if (this->m_LogText_OutputPort[0].isConnected()) {
1812 #if FW_OBJECT_NAMES == 1 1813 const char* _formatString =
1814 "(%s) %s: Shell command %s failed with status %" PRIu32
"";
1816 const char* _formatString =
1817 "%s: Shell command %s failed with status %" PRIu32
"";
1824 this->m_objName.toChar(),
1826 "ShellCommandFailed ",
1831 this->m_LogText_OutputPort[0].invoke(
1850 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1851 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1859 if (this->m_eventOut_OutputPort[0].isConnected()) {
1863 #if FW_AMPCS_COMPATIBLE 1865 _status = _logBuff.
serialize(static_cast<U8>(3));
1868 static_cast<FwAssertArgType>(_status)
1875 static_cast<FwAssertArgType>(_status)
1881 static_cast<FwAssertArgType>(_status)
1884 #if FW_AMPCS_COMPATIBLE 1887 static_cast<U8>(
sizeof(U32))
1891 static_cast<FwAssertArgType>(_status)
1897 static_cast<FwAssertArgType>(_status)
1900 this->m_eventOut_OutputPort[0].
invoke(
1909 #if FW_ENABLE_TEXT_LOGGING 1910 if (this->m_LogText_OutputPort[0].isConnected()) {
1911 #if FW_OBJECT_NAMES == 1 1912 const char* _formatString =
1913 "(%s) %s: Appending %s onto %s failed with status %" PRIu32
"";
1915 const char* _formatString =
1916 "%s: Appending %s onto %s failed with status %" PRIu32
"";
1923 this->m_objName.toChar(),
1925 "AppendFileFailed ",
1931 this->m_LogText_OutputPort[0].invoke(
1949 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1950 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1958 if (this->m_eventOut_OutputPort[0].isConnected()) {
1962 #if FW_AMPCS_COMPATIBLE 1964 _status = _logBuff.
serialize(static_cast<U8>(2));
1967 static_cast<FwAssertArgType>(_status)
1974 static_cast<FwAssertArgType>(_status)
1980 static_cast<FwAssertArgType>(_status)
1983 this->m_eventOut_OutputPort[0].
invoke(
1992 #if FW_ENABLE_TEXT_LOGGING 1993 if (this->m_LogText_OutputPort[0].isConnected()) {
1994 #if FW_OBJECT_NAMES == 1 1995 const char* _formatString =
1996 "(%s) %s: Appended %s to the end of %s";
1998 const char* _formatString =
1999 "%s: Appended %s to the end of %s";
2006 this->m_objName.toChar(),
2008 "AppendFileSucceeded ",
2013 this->m_LogText_OutputPort[0].invoke(
2028 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2029 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2037 if (this->m_eventOut_OutputPort[0].isConnected()) {
2041 #if FW_AMPCS_COMPATIBLE 2043 _status = _logBuff.
serialize(static_cast<U8>(1));
2046 static_cast<FwAssertArgType>(_status)
2053 static_cast<FwAssertArgType>(_status)
2056 this->m_eventOut_OutputPort[0].
invoke(
2065 #if FW_ENABLE_TEXT_LOGGING 2066 if (this->m_LogText_OutputPort[0].isConnected()) {
2067 #if FW_OBJECT_NAMES == 1 2068 const char* _formatString =
2069 "(%s) %s: Shell command %s succeeded";
2071 const char* _formatString =
2072 "%s: Shell command %s succeeded";
2079 this->m_objName.toChar(),
2081 "ShellCommandSucceeded ",
2085 this->m_LogText_OutputPort[0].invoke(
2100 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2101 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2109 if (this->m_eventOut_OutputPort[0].isConnected()) {
2113 #if FW_AMPCS_COMPATIBLE 2115 _status = _logBuff.
serialize(static_cast<U8>(1));
2118 static_cast<FwAssertArgType>(_status)
2125 static_cast<FwAssertArgType>(_status)
2128 this->m_eventOut_OutputPort[0].
invoke(
2137 #if FW_ENABLE_TEXT_LOGGING 2138 if (this->m_LogText_OutputPort[0].isConnected()) {
2139 #if FW_OBJECT_NAMES == 1 2140 const char* _formatString =
2141 "(%s) %s: Created directory %s successfully";
2143 const char* _formatString =
2144 "%s: Created directory %s successfully";
2151 this->m_objName.toChar(),
2153 "CreateDirectorySucceeded ",
2157 this->m_LogText_OutputPort[0].invoke(
2172 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2173 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2181 if (this->m_eventOut_OutputPort[0].isConnected()) {
2185 #if FW_AMPCS_COMPATIBLE 2187 _status = _logBuff.
serialize(static_cast<U8>(1));
2190 static_cast<FwAssertArgType>(_status)
2197 static_cast<FwAssertArgType>(_status)
2200 this->m_eventOut_OutputPort[0].
invoke(
2209 #if FW_ENABLE_TEXT_LOGGING 2210 if (this->m_LogText_OutputPort[0].isConnected()) {
2211 #if FW_OBJECT_NAMES == 1 2212 const char* _formatString =
2213 "(%s) %s: Removed directory %s successfully";
2215 const char* _formatString =
2216 "%s: Removed directory %s successfully";
2223 this->m_objName.toChar(),
2225 "RemoveDirectorySucceeded ",
2229 this->m_LogText_OutputPort[0].invoke(
2247 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2248 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2256 if (this->m_eventOut_OutputPort[0].isConnected()) {
2260 #if FW_AMPCS_COMPATIBLE 2262 _status = _logBuff.
serialize(static_cast<U8>(2));
2265 static_cast<FwAssertArgType>(_status)
2272 static_cast<FwAssertArgType>(_status)
2278 static_cast<FwAssertArgType>(_status)
2281 this->m_eventOut_OutputPort[0].
invoke(
2290 #if FW_ENABLE_TEXT_LOGGING 2291 if (this->m_LogText_OutputPort[0].isConnected()) {
2292 #if FW_OBJECT_NAMES == 1 2293 const char* _formatString =
2294 "(%s) %s: Moved file %s to file %s successfully";
2296 const char* _formatString =
2297 "%s: Moved file %s to file %s successfully";
2304 this->m_objName.toChar(),
2306 "MoveFileSucceeded ",
2311 this->m_LogText_OutputPort[0].invoke(
2326 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2327 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2335 if (this->m_eventOut_OutputPort[0].isConnected()) {
2339 #if FW_AMPCS_COMPATIBLE 2341 _status = _logBuff.
serialize(static_cast<U8>(1));
2344 static_cast<FwAssertArgType>(_status)
2351 static_cast<FwAssertArgType>(_status)
2354 this->m_eventOut_OutputPort[0].
invoke(
2363 #if FW_ENABLE_TEXT_LOGGING 2364 if (this->m_LogText_OutputPort[0].isConnected()) {
2365 #if FW_OBJECT_NAMES == 1 2366 const char* _formatString =
2367 "(%s) %s: Removed file %s successfully";
2369 const char* _formatString =
2370 "%s: Removed file %s successfully";
2377 this->m_objName.toChar(),
2379 "RemoveFileSucceeded ",
2383 this->m_LogText_OutputPort[0].invoke(
2401 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2402 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2410 if (this->m_eventOut_OutputPort[0].isConnected()) {
2414 #if FW_AMPCS_COMPATIBLE 2416 _status = _logBuff.
serialize(static_cast<U8>(2));
2419 static_cast<FwAssertArgType>(_status)
2426 static_cast<FwAssertArgType>(_status)
2432 static_cast<FwAssertArgType>(_status)
2435 this->m_eventOut_OutputPort[0].
invoke(
2444 #if FW_ENABLE_TEXT_LOGGING 2445 if (this->m_LogText_OutputPort[0].isConnected()) {
2446 #if FW_OBJECT_NAMES == 1 2447 const char* _formatString =
2448 "(%s) %s: Appending file %s to the end of %s...";
2450 const char* _formatString =
2451 "%s: Appending file %s to the end of %s...";
2458 this->m_objName.toChar(),
2460 "AppendFileStarted ",
2465 this->m_LogText_OutputPort[0].invoke(
2480 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2481 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2489 if (this->m_eventOut_OutputPort[0].isConnected()) {
2493 #if FW_AMPCS_COMPATIBLE 2495 _status = _logBuff.
serialize(static_cast<U8>(1));
2498 static_cast<FwAssertArgType>(_status)
2505 static_cast<FwAssertArgType>(_status)
2508 this->m_eventOut_OutputPort[0].
invoke(
2517 #if FW_ENABLE_TEXT_LOGGING 2518 if (this->m_LogText_OutputPort[0].isConnected()) {
2519 #if FW_OBJECT_NAMES == 1 2520 const char* _formatString =
2521 "(%s) %s: Running shell command %s...";
2523 const char* _formatString =
2524 "%s: Running shell command %s...";
2531 this->m_objName.toChar(),
2533 "ShellCommandStarted ",
2537 this->m_LogText_OutputPort[0].invoke(
2552 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2553 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2561 if (this->m_eventOut_OutputPort[0].isConnected()) {
2565 #if FW_AMPCS_COMPATIBLE 2567 _status = _logBuff.
serialize(static_cast<U8>(1));
2570 static_cast<FwAssertArgType>(_status)
2577 static_cast<FwAssertArgType>(_status)
2580 this->m_eventOut_OutputPort[0].
invoke(
2589 #if FW_ENABLE_TEXT_LOGGING 2590 if (this->m_LogText_OutputPort[0].isConnected()) {
2591 #if FW_OBJECT_NAMES == 1 2592 const char* _formatString =
2593 "(%s) %s: Creating directory %s...";
2595 const char* _formatString =
2596 "%s: Creating directory %s...";
2603 this->m_objName.toChar(),
2605 "CreateDirectoryStarted ",
2609 this->m_LogText_OutputPort[0].invoke(
2624 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2625 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2633 if (this->m_eventOut_OutputPort[0].isConnected()) {
2637 #if FW_AMPCS_COMPATIBLE 2639 _status = _logBuff.
serialize(static_cast<U8>(1));
2642 static_cast<FwAssertArgType>(_status)
2649 static_cast<FwAssertArgType>(_status)
2652 this->m_eventOut_OutputPort[0].
invoke(
2661 #if FW_ENABLE_TEXT_LOGGING 2662 if (this->m_LogText_OutputPort[0].isConnected()) {
2663 #if FW_OBJECT_NAMES == 1 2664 const char* _formatString =
2665 "(%s) %s: Removing directory %s...";
2667 const char* _formatString =
2668 "%s: Removing directory %s...";
2675 this->m_objName.toChar(),
2677 "RemoveDirectoryStarted ",
2681 this->m_LogText_OutputPort[0].invoke(
2699 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2700 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2708 if (this->m_eventOut_OutputPort[0].isConnected()) {
2712 #if FW_AMPCS_COMPATIBLE 2714 _status = _logBuff.
serialize(static_cast<U8>(2));
2717 static_cast<FwAssertArgType>(_status)
2724 static_cast<FwAssertArgType>(_status)
2730 static_cast<FwAssertArgType>(_status)
2733 this->m_eventOut_OutputPort[0].
invoke(
2742 #if FW_ENABLE_TEXT_LOGGING 2743 if (this->m_LogText_OutputPort[0].isConnected()) {
2744 #if FW_OBJECT_NAMES == 1 2745 const char* _formatString =
2746 "(%s) %s: Moving file %s to file %s...";
2748 const char* _formatString =
2749 "%s: Moving file %s to file %s...";
2756 this->m_objName.toChar(),
2763 this->m_LogText_OutputPort[0].invoke(
2778 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2779 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2787 if (this->m_eventOut_OutputPort[0].isConnected()) {
2791 #if FW_AMPCS_COMPATIBLE 2793 _status = _logBuff.
serialize(static_cast<U8>(1));
2796 static_cast<FwAssertArgType>(_status)
2803 static_cast<FwAssertArgType>(_status)
2806 this->m_eventOut_OutputPort[0].
invoke(
2815 #if FW_ENABLE_TEXT_LOGGING 2816 if (this->m_LogText_OutputPort[0].isConnected()) {
2817 #if FW_OBJECT_NAMES == 1 2818 const char* _formatString =
2819 "(%s) %s: Removing file %s...";
2821 const char* _formatString =
2822 "%s: Removing file %s...";
2829 this->m_objName.toChar(),
2831 "RemoveFileStarted ",
2835 this->m_LogText_OutputPort[0].invoke(
2853 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2854 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2862 if (this->m_eventOut_OutputPort[0].isConnected()) {
2866 #if FW_AMPCS_COMPATIBLE 2868 _status = _logBuff.
serialize(static_cast<U8>(2));
2871 static_cast<FwAssertArgType>(_status)
2878 static_cast<FwAssertArgType>(_status)
2881 #if FW_AMPCS_COMPATIBLE 2884 static_cast<U8>(
sizeof(
U64))
2888 static_cast<FwAssertArgType>(_status)
2894 static_cast<FwAssertArgType>(_status)
2897 this->m_eventOut_OutputPort[0].
invoke(
2906 #if FW_ENABLE_TEXT_LOGGING 2907 if (this->m_LogText_OutputPort[0].isConnected()) {
2908 #if FW_OBJECT_NAMES == 1 2909 const char* _formatString =
2910 "(%s) %s: The size of file %s is %" PRIu64
" B";
2912 const char* _formatString =
2913 "%s: The size of file %s is %" PRIu64
" B";
2920 this->m_objName.toChar(),
2922 "FileSizeSucceeded ",
2927 this->m_LogText_OutputPort[0].invoke(
2945 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2946 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2954 if (this->m_eventOut_OutputPort[0].isConnected()) {
2958 #if FW_AMPCS_COMPATIBLE 2960 _status = _logBuff.
serialize(static_cast<U8>(2));
2963 static_cast<FwAssertArgType>(_status)
2970 static_cast<FwAssertArgType>(_status)
2973 #if FW_AMPCS_COMPATIBLE 2976 static_cast<U8>(
sizeof(U32))
2980 static_cast<FwAssertArgType>(_status)
2986 static_cast<FwAssertArgType>(_status)
2989 this->m_eventOut_OutputPort[0].
invoke(
2998 #if FW_ENABLE_TEXT_LOGGING 2999 if (this->m_LogText_OutputPort[0].isConnected()) {
3000 #if FW_OBJECT_NAMES == 1 3001 const char* _formatString =
3002 "(%s) %s: Failed to get the size of file %s, returned status %" PRIu32
"";
3004 const char* _formatString =
3005 "%s: Failed to get the size of file %s, returned status %" PRIu32
"";
3012 this->m_objName.toChar(),
3019 this->m_LogText_OutputPort[0].invoke(
3034 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3035 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3043 if (this->m_eventOut_OutputPort[0].isConnected()) {
3047 #if FW_AMPCS_COMPATIBLE 3049 _status = _logBuff.
serialize(static_cast<U8>(1));
3052 static_cast<FwAssertArgType>(_status)
3059 static_cast<FwAssertArgType>(_status)
3062 this->m_eventOut_OutputPort[0].
invoke(
3071 #if FW_ENABLE_TEXT_LOGGING 3072 if (this->m_LogText_OutputPort[0].isConnected()) {
3073 #if FW_OBJECT_NAMES == 1 3074 const char* _formatString =
3075 "(%s) %s: Checking size of file %s...";
3077 const char* _formatString =
3078 "%s: Checking size of file %s...";
3085 this->m_objName.toChar(),
3091 this->m_LogText_OutputPort[0].invoke(
3111 if (this->m_tlmOut_OutputPort[0].isConnected()) {
3113 this->m_timeCaller_OutputPort[0].isConnected() &&
3116 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
3123 static_cast<FwAssertArgType>(_stat)
3130 this->m_tlmOut_OutputPort[0].
invoke(
3144 if (this->m_tlmOut_OutputPort[0].isConnected()) {
3146 this->m_timeCaller_OutputPort[0].isConnected() &&
3149 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
3156 static_cast<FwAssertArgType>(_stat)
3163 this->m_tlmOut_OutputPort[0].
invoke(
3178 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3180 this->m_timeCaller_OutputPort[0].
invoke(_time);
3195 ComponentIpcSerializableBuffer msg;
3205 static_cast<FwAssertArgType>(msgStatus)
3215 static_cast<FwAssertArgType>(deserStatus)
3218 MsgTypeEnum msgType =
static_cast<MsgTypeEnum
>(desMsg);
3220 if (msgType == FILEMANAGER_COMPONENT_EXIT) {
3225 deserStatus = msg.deserialize(portNum);
3228 static_cast<FwAssertArgType>(deserStatus)
3236 deserStatus = msg.deserialize(key);
3239 static_cast<FwAssertArgType>(deserStatus)
3251 case CMD_CREATEDIRECTORY: {
3254 deserStatus = msg.deserialize(opCode);
3257 static_cast<FwAssertArgType>(deserStatus)
3262 deserStatus = msg.deserialize(cmdSeq);
3265 static_cast<FwAssertArgType>(deserStatus)
3270 deserStatus = msg.deserialize(args);
3273 static_cast<FwAssertArgType>(deserStatus)
3283 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3296 #if FW_CMD_CHECK_RESIDUAL 3298 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3316 case CMD_MOVEFILE: {
3319 deserStatus = msg.deserialize(opCode);
3322 static_cast<FwAssertArgType>(deserStatus)
3327 deserStatus = msg.deserialize(cmdSeq);
3330 static_cast<FwAssertArgType>(deserStatus)
3335 deserStatus = msg.deserialize(args);
3338 static_cast<FwAssertArgType>(deserStatus)
3348 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3363 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3376 #if FW_CMD_CHECK_RESIDUAL 3378 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3397 case CMD_REMOVEDIRECTORY: {
3400 deserStatus = msg.deserialize(opCode);
3403 static_cast<FwAssertArgType>(deserStatus)
3408 deserStatus = msg.deserialize(cmdSeq);
3411 static_cast<FwAssertArgType>(deserStatus)
3416 deserStatus = msg.deserialize(args);
3419 static_cast<FwAssertArgType>(deserStatus)
3429 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3442 #if FW_CMD_CHECK_RESIDUAL 3444 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3462 case CMD_REMOVEFILE: {
3465 deserStatus = msg.deserialize(opCode);
3468 static_cast<FwAssertArgType>(deserStatus)
3473 deserStatus = msg.deserialize(cmdSeq);
3476 static_cast<FwAssertArgType>(deserStatus)
3481 deserStatus = msg.deserialize(args);
3484 static_cast<FwAssertArgType>(deserStatus)
3494 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3509 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3522 #if FW_CMD_CHECK_RESIDUAL 3524 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3543 case CMD_SHELLCOMMAND: {
3546 deserStatus = msg.deserialize(opCode);
3549 static_cast<FwAssertArgType>(deserStatus)
3554 deserStatus = msg.deserialize(cmdSeq);
3557 static_cast<FwAssertArgType>(deserStatus)
3562 deserStatus = msg.deserialize(args);
3565 static_cast<FwAssertArgType>(deserStatus)
3575 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3590 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3603 #if FW_CMD_CHECK_RESIDUAL 3605 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3624 case CMD_APPENDFILE: {
3627 deserStatus = msg.deserialize(opCode);
3630 static_cast<FwAssertArgType>(deserStatus)
3635 deserStatus = msg.deserialize(cmdSeq);
3638 static_cast<FwAssertArgType>(deserStatus)
3643 deserStatus = msg.deserialize(args);
3646 static_cast<FwAssertArgType>(deserStatus)
3656 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3671 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3684 #if FW_CMD_CHECK_RESIDUAL 3686 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3705 case CMD_FILESIZE: {
3708 deserStatus = msg.deserialize(opCode);
3711 static_cast<FwAssertArgType>(deserStatus)
3716 deserStatus = msg.deserialize(cmdSeq);
3719 static_cast<FwAssertArgType>(deserStatus)
3724 deserStatus = msg.deserialize(args);
3727 static_cast<FwAssertArgType>(deserStatus)
3737 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3750 #if FW_CMD_CHECK_RESIDUAL 3752 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3780 void FileManagerComponentBase ::
3792 const U32 idBase = callComp->
getIdBase();
3793 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
3796 switch (opCode - idBase) {
3798 compPtr->CreateDirectory_cmdHandlerBase(
3807 compPtr->MoveFile_cmdHandlerBase(
3816 compPtr->RemoveDirectory_cmdHandlerBase(
3825 compPtr->RemoveFile_cmdHandlerBase(
3834 compPtr->ShellCommand_cmdHandlerBase(
3843 compPtr->AppendFile_cmdHandlerBase(
3852 compPtr->FileSize_cmdHandlerBase(
3866 void FileManagerComponentBase ::
3875 compPtr->pingIn_handlerBase(
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
The File System component began moving a file to a new location.
void addCallPort(InputTimePort *callPort)
Register an input port.
The File System component began creating a new directory.
Perform a Linux shell command and write the output to a log file.
void AppendFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void log_ACTIVITY_HI_CreateDirectoryStarted(const Fw::StringBase &dirName) const
The File System component deleted and existing 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
The File System component created a new directory without error.
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.
NATIVE_UINT_TYPE SizeType
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.
virtual void RemoveFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName, bool ignoreErrors)=0
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.
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
The File System component executed a shell command that returned status zero.
An error occurred while attempting to move 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
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 began executing a shell command.
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
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.
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
An error occurred while attempting to remove a directory.
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
The File System component began deleting a directory.
A serious but recoverable event.
Errors dispatching messages.
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
The File System component moved a file to a new location without error.
Append 1 file's contents to the end of another.
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.
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
#define PRI_PlatformIntType
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
An error occurred while attempting to create a directory.
Command failed to deserialize.
void log_WARNING_HI_DirectoryRemoveError(const Fw::StringBase &dirName, U32 status) const
Remove a directory, which must be empty.
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
The File System component returned status non-zero when trying to append 2 files together.
void tlmWrite_Errors(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
message to exit active component task
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
The File System component appended 2 files without error.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void addCallPort(InputLogPort *callPort)
Register an input port.
void init()
Initialization function.
void log_WARNING_HI_AppendFileFailed(const Fw::StringBase &source, const Fw::StringBase &target, U32 status) const
void regCommands()
Register commands with the Command Dispatcher.
Channel ID for CommandsExecuted.
The File System component deleted an existing file without error.
An error occurred while attempting to remove a file.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
message sent/received okay
virtual void AppendFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command AppendFile.
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
The File System component executed a shell command that returned status non-zero. ...
void init()
Initialization function.
The File System component appended 2 files without error.
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
#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
The File System component began deleting an existing file.
#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