9 #if FW_ENABLE_TEXT_LOGGING 40 class ComponentIpcSerializableBuffer :
50 MAX_DATA_SIZE =
sizeof(BuffUnion),
52 SERIALIZATION_SIZE = DATA_OFFSET + MAX_DATA_SIZE
56 return sizeof(m_buff);
63 const U8* getBuffAddr()
const {
69 U8 m_buff[SERIALIZATION_SIZE];
87 #if !FW_DIRECT_PORT_CALLS 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());
113 #if !FW_DIRECT_PORT_CALLS 120 this->m_pingIn_InputPort[port].
init();
125 this->m_pingIn_InputPort[port].
setPortNum(port);
127 #if FW_OBJECT_NAMES == 1 131 this->m_objName.toChar(),
134 this->m_pingIn_InputPort[port].setObjName(portName.
toChar());
139 #if !FW_DIRECT_PORT_CALLS 146 this->m_schedIn_InputPort[port].
init();
151 this->m_schedIn_InputPort[port].
setPortNum(port);
153 #if FW_OBJECT_NAMES == 1 157 this->m_objName.toChar(),
160 this->m_schedIn_InputPort[port].setObjName(portName.
toChar());
165 #if !FW_DIRECT_PORT_CALLS && FW_ENABLE_TEXT_LOGGING 169 port < static_cast<FwIndexType>(this->getNum_LogText_OutputPorts());
172 this->m_LogText_OutputPort[port].
init();
174 #if FW_OBJECT_NAMES == 1 178 this->m_objName.toChar(),
181 this->m_LogText_OutputPort[port].setObjName(portName.
toChar());
186 #if !FW_DIRECT_PORT_CALLS 193 this->m_cmdRegOut_OutputPort[port].
init();
195 #if FW_OBJECT_NAMES == 1 199 this->m_objName.toChar(),
202 this->m_cmdRegOut_OutputPort[port].setObjName(portName.
toChar());
207 #if !FW_DIRECT_PORT_CALLS 214 this->m_cmdResponseOut_OutputPort[port].
init();
216 #if FW_OBJECT_NAMES == 1 220 this->m_objName.toChar(),
223 this->m_cmdResponseOut_OutputPort[port].setObjName(portName.
toChar());
228 #if !FW_DIRECT_PORT_CALLS 235 this->m_eventOut_OutputPort[port].
init();
237 #if FW_OBJECT_NAMES == 1 241 this->m_objName.toChar(),
244 this->m_eventOut_OutputPort[port].setObjName(portName.
toChar());
249 #if !FW_DIRECT_PORT_CALLS 256 this->m_timeCaller_OutputPort[port].
init();
258 #if FW_OBJECT_NAMES == 1 262 this->m_objName.toChar(),
265 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
270 #if !FW_DIRECT_PORT_CALLS 277 this->m_tlmOut_OutputPort[port].
init();
279 #if FW_OBJECT_NAMES == 1 283 this->m_objName.toChar(),
286 this->m_tlmOut_OutputPort[port].setObjName(portName.
toChar());
291 #if !FW_DIRECT_PORT_CALLS 298 this->m_pingOut_OutputPort[port].
init();
300 #if FW_OBJECT_NAMES == 1 304 this->m_objName.toChar(),
307 this->m_pingOut_OutputPort[port].setObjName(portName.
toChar());
315 static_cast<FwSizeType>(ComponentIpcSerializableBuffer::SERIALIZATION_SIZE)
319 static_cast<FwAssertArgType>(qStat)
323 #if !FW_DIRECT_PORT_CALLS 334 static_cast<FwAssertArgType>(portNum)
337 return &this->m_cmdIn_InputPort[portNum];
342 #if !FW_DIRECT_PORT_CALLS 353 static_cast<FwAssertArgType>(portNum)
356 return &this->m_pingIn_InputPort[portNum];
364 static_cast<FwAssertArgType>(portNum)
367 return &this->m_schedIn_InputPort[portNum];
372 #if !FW_DIRECT_PORT_CALLS 378 #if FW_ENABLE_TEXT_LOGGING == 1 380 void FileManagerComponentBase ::
381 set_LogText_OutputPort(
387 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
388 static_cast<FwAssertArgType>(portNum)
391 this->m_LogText_OutputPort[portNum].addCallPort(port);
404 static_cast<FwAssertArgType>(portNum)
407 this->m_cmdRegOut_OutputPort[portNum].
addCallPort(port);
418 static_cast<FwAssertArgType>(portNum)
421 this->m_cmdResponseOut_OutputPort[portNum].
addCallPort(port);
432 static_cast<FwAssertArgType>(portNum)
435 this->m_eventOut_OutputPort[portNum].
addCallPort(port);
446 static_cast<FwAssertArgType>(portNum)
449 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
460 static_cast<FwAssertArgType>(portNum)
463 this->m_tlmOut_OutputPort[portNum].
addCallPort(port);
468 #if !FW_DIRECT_PORT_CALLS 482 static_cast<FwAssertArgType>(portNum)
485 this->m_pingOut_OutputPort[portNum].
addCallPort(port);
490 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 496 #if FW_ENABLE_TEXT_LOGGING == 1 498 void FileManagerComponentBase ::
499 set_LogText_OutputPort(
501 Fw::InputSerializePort* port
505 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
506 static_cast<FwAssertArgType>(portNum)
509 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
517 Fw::InputSerializePort* port
522 static_cast<FwAssertArgType>(portNum)
525 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
531 Fw::InputSerializePort* port
536 static_cast<FwAssertArgType>(portNum)
539 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
545 Fw::InputSerializePort* port
550 static_cast<FwAssertArgType>(portNum)
553 this->m_eventOut_OutputPort[portNum].registerSerialPort(port);
559 Fw::InputSerializePort* port
564 static_cast<FwAssertArgType>(portNum)
567 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
573 Fw::InputSerializePort* port
578 static_cast<FwAssertArgType>(portNum)
581 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
586 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 595 Fw::InputSerializePort* port
600 static_cast<FwAssertArgType>(portNum)
603 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
664 Fw::ActiveComponentBase(compName)
675 #if !FW_DIRECT_PORT_CALLS 681 #if FW_ENABLE_TEXT_LOGGING == 1 683 bool FileManagerComponentBase ::
684 isConnected_LogText_OutputPort(
FwIndexType portNum)
const 687 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
688 static_cast<FwAssertArgType>(portNum)
691 return this->m_LogText_OutputPort[portNum].isConnected();
701 static_cast<FwAssertArgType>(portNum)
704 return this->m_cmdRegOut_OutputPort[portNum].
isConnected();
712 static_cast<FwAssertArgType>(portNum)
715 return this->m_cmdResponseOut_OutputPort[portNum].
isConnected();
723 static_cast<FwAssertArgType>(portNum)
726 return this->m_eventOut_OutputPort[portNum].
isConnected();
734 static_cast<FwAssertArgType>(portNum)
737 return this->m_timeCaller_OutputPort[portNum].
isConnected();
745 static_cast<FwAssertArgType>(portNum)
748 return this->m_tlmOut_OutputPort[portNum].
isConnected();
753 #if !FW_DIRECT_PORT_CALLS 764 static_cast<FwAssertArgType>(portNum)
767 return this->m_pingOut_OutputPort[portNum].
isConnected();
788 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
791 switch (opCode - idBase) {
884 static_cast<FwAssertArgType>(portNum)
892 ComponentIpcSerializableBuffer msg;
896 _status = msg.serializeFrom(
897 static_cast<FwEnumStoreType>(PINGIN_PING)
901 static_cast<FwAssertArgType>(_status)
905 _status = msg.serializeFrom(portNum);
908 static_cast<FwAssertArgType>(_status)
912 _status = msg.serializeFrom(key);
915 static_cast<FwAssertArgType>(_status)
924 static_cast<FwAssertArgType>(qStatus)
937 static_cast<FwAssertArgType>(portNum)
964 #if !FW_DIRECT_PORT_CALLS 978 static_cast<FwAssertArgType>(portNum)
982 this->m_pingOut_OutputPort[portNum].isConnected(),
983 static_cast<FwAssertArgType>(portNum)
985 this->m_pingOut_OutputPort[portNum].
invoke(
999 ComponentIpcSerializableBuffer msg;
1003 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(INT_IF_RUN));
1006 static_cast<FwAssertArgType>(_status)
1010 _status = msg.serializeFrom(static_cast<FwIndexType>(0));
1013 static_cast<FwAssertArgType>(_status)
1020 if (qStatus == Os::Queue::Status::FULL) {
1027 static_cast<FwAssertArgType>(qStatus)
1043 this->cmdResponseOut_out(0, opCode, cmdSeq, response);
1064 ComponentIpcSerializableBuffer msg;
1068 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_CREATEDIRECTORY));
1071 static_cast<FwAssertArgType>(_status)
1077 _status = msg.serializeFrom(port);
1080 static_cast<FwAssertArgType>(_status)
1083 _status = msg.serializeFrom(opCode);
1086 static_cast<FwAssertArgType>(_status)
1089 _status = msg.serializeFrom(cmdSeq);
1092 static_cast<FwAssertArgType>(_status)
1095 _status = msg.serializeFrom(args);
1098 static_cast<FwAssertArgType>(_status)
1107 static_cast<FwAssertArgType>(qStatus)
1123 ComponentIpcSerializableBuffer msg;
1127 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_MOVEFILE));
1130 static_cast<FwAssertArgType>(_status)
1136 _status = msg.serializeFrom(port);
1139 static_cast<FwAssertArgType>(_status)
1142 _status = msg.serializeFrom(opCode);
1145 static_cast<FwAssertArgType>(_status)
1148 _status = msg.serializeFrom(cmdSeq);
1151 static_cast<FwAssertArgType>(_status)
1154 _status = msg.serializeFrom(args);
1157 static_cast<FwAssertArgType>(_status)
1166 static_cast<FwAssertArgType>(qStatus)
1182 ComponentIpcSerializableBuffer msg;
1186 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_REMOVEDIRECTORY));
1189 static_cast<FwAssertArgType>(_status)
1195 _status = msg.serializeFrom(port);
1198 static_cast<FwAssertArgType>(_status)
1201 _status = msg.serializeFrom(opCode);
1204 static_cast<FwAssertArgType>(_status)
1207 _status = msg.serializeFrom(cmdSeq);
1210 static_cast<FwAssertArgType>(_status)
1213 _status = msg.serializeFrom(args);
1216 static_cast<FwAssertArgType>(_status)
1225 static_cast<FwAssertArgType>(qStatus)
1241 ComponentIpcSerializableBuffer msg;
1245 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_REMOVEFILE));
1248 static_cast<FwAssertArgType>(_status)
1254 _status = msg.serializeFrom(port);
1257 static_cast<FwAssertArgType>(_status)
1260 _status = msg.serializeFrom(opCode);
1263 static_cast<FwAssertArgType>(_status)
1266 _status = msg.serializeFrom(cmdSeq);
1269 static_cast<FwAssertArgType>(_status)
1272 _status = msg.serializeFrom(args);
1275 static_cast<FwAssertArgType>(_status)
1284 static_cast<FwAssertArgType>(qStatus)
1300 ComponentIpcSerializableBuffer msg;
1304 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_APPENDFILE));
1307 static_cast<FwAssertArgType>(_status)
1313 _status = msg.serializeFrom(port);
1316 static_cast<FwAssertArgType>(_status)
1319 _status = msg.serializeFrom(opCode);
1322 static_cast<FwAssertArgType>(_status)
1325 _status = msg.serializeFrom(cmdSeq);
1328 static_cast<FwAssertArgType>(_status)
1331 _status = msg.serializeFrom(args);
1334 static_cast<FwAssertArgType>(_status)
1343 static_cast<FwAssertArgType>(qStatus)
1359 ComponentIpcSerializableBuffer msg;
1363 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_FILESIZE));
1366 static_cast<FwAssertArgType>(_status)
1372 _status = msg.serializeFrom(port);
1375 static_cast<FwAssertArgType>(_status)
1378 _status = msg.serializeFrom(opCode);
1381 static_cast<FwAssertArgType>(_status)
1384 _status = msg.serializeFrom(cmdSeq);
1387 static_cast<FwAssertArgType>(_status)
1390 _status = msg.serializeFrom(args);
1393 static_cast<FwAssertArgType>(_status)
1402 static_cast<FwAssertArgType>(qStatus)
1418 ComponentIpcSerializableBuffer msg;
1422 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_LISTDIRECTORY));
1425 static_cast<FwAssertArgType>(_status)
1431 _status = msg.serializeFrom(port);
1434 static_cast<FwAssertArgType>(_status)
1437 _status = msg.serializeFrom(opCode);
1440 static_cast<FwAssertArgType>(_status)
1443 _status = msg.serializeFrom(cmdSeq);
1446 static_cast<FwAssertArgType>(_status)
1449 _status = msg.serializeFrom(args);
1452 static_cast<FwAssertArgType>(_status)
1461 static_cast<FwAssertArgType>(qStatus)
1477 ComponentIpcSerializableBuffer msg;
1481 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_CALCULATECRC));
1484 static_cast<FwAssertArgType>(_status)
1490 _status = msg.serializeFrom(port);
1493 static_cast<FwAssertArgType>(_status)
1496 _status = msg.serializeFrom(opCode);
1499 static_cast<FwAssertArgType>(_status)
1502 _status = msg.serializeFrom(cmdSeq);
1505 static_cast<FwAssertArgType>(_status)
1508 _status = msg.serializeFrom(args);
1511 static_cast<FwAssertArgType>(_status)
1520 static_cast<FwAssertArgType>(qStatus)
1633 this->timeCaller_out(0, _logTime);
1643 #if FW_AMPCS_COMPATIBLE 1648 static_cast<FwAssertArgType>(_status)
1658 static_cast<FwAssertArgType>(_status)
1661 #if FW_AMPCS_COMPATIBLE 1664 static_cast<U8>(
sizeof(U32))
1668 static_cast<FwAssertArgType>(_status)
1674 static_cast<FwAssertArgType>(_status)
1687 #if FW_ENABLE_TEXT_LOGGING 1688 if (this->isConnected_LogText_OutputPort(0)) {
1689 #if FW_OBJECT_NAMES == 1 1690 const char* _formatString =
1691 "(%s) %s: Could not create directory %s, returned status %" PRIu32
"";
1693 const char* _formatString =
1694 "%s: Could not create directory %s, returned status %" PRIu32
"";
1701 this->m_objName.toChar(),
1703 "DirectoryCreateError ",
1728 this->timeCaller_out(0, _logTime);
1738 #if FW_AMPCS_COMPATIBLE 1743 static_cast<FwAssertArgType>(_status)
1753 static_cast<FwAssertArgType>(_status)
1756 #if FW_AMPCS_COMPATIBLE 1759 static_cast<U8>(
sizeof(U32))
1763 static_cast<FwAssertArgType>(_status)
1769 static_cast<FwAssertArgType>(_status)
1782 #if FW_ENABLE_TEXT_LOGGING 1783 if (this->isConnected_LogText_OutputPort(0)) {
1784 #if FW_OBJECT_NAMES == 1 1785 const char* _formatString =
1786 "(%s) %s: Could not remove directory %s, returned status %" PRIu32
"";
1788 const char* _formatString =
1789 "%s: Could not remove directory %s, returned status %" PRIu32
"";
1796 this->m_objName.toChar(),
1798 "DirectoryRemoveError ",
1824 this->timeCaller_out(0, _logTime);
1834 #if FW_AMPCS_COMPATIBLE 1839 static_cast<FwAssertArgType>(_status)
1849 static_cast<FwAssertArgType>(_status)
1858 static_cast<FwAssertArgType>(_status)
1861 #if FW_AMPCS_COMPATIBLE 1864 static_cast<U8>(
sizeof(U32))
1868 static_cast<FwAssertArgType>(_status)
1874 static_cast<FwAssertArgType>(_status)
1887 #if FW_ENABLE_TEXT_LOGGING 1888 if (this->isConnected_LogText_OutputPort(0)) {
1889 #if FW_OBJECT_NAMES == 1 1890 const char* _formatString =
1891 "(%s) %s: Could not move file %s to file %s, returned status %" PRIu32
"";
1893 const char* _formatString =
1894 "%s: Could not move file %s to file %s, returned status %" PRIu32
"";
1901 this->m_objName.toChar(),
1929 this->timeCaller_out(0, _logTime);
1939 #if FW_AMPCS_COMPATIBLE 1944 static_cast<FwAssertArgType>(_status)
1954 static_cast<FwAssertArgType>(_status)
1957 #if FW_AMPCS_COMPATIBLE 1960 static_cast<U8>(
sizeof(U32))
1964 static_cast<FwAssertArgType>(_status)
1970 static_cast<FwAssertArgType>(_status)
1983 #if FW_ENABLE_TEXT_LOGGING 1984 if (this->isConnected_LogText_OutputPort(0)) {
1985 #if FW_OBJECT_NAMES == 1 1986 const char* _formatString =
1987 "(%s) %s: Could not remove file %s, returned status %" PRIu32
"";
1989 const char* _formatString =
1990 "%s: Could not remove file %s, returned status %" PRIu32
"";
1997 this->m_objName.toChar(),
2025 this->timeCaller_out(0, _logTime);
2035 #if FW_AMPCS_COMPATIBLE 2040 static_cast<FwAssertArgType>(_status)
2050 static_cast<FwAssertArgType>(_status)
2059 static_cast<FwAssertArgType>(_status)
2062 #if FW_AMPCS_COMPATIBLE 2065 static_cast<U8>(
sizeof(U32))
2069 static_cast<FwAssertArgType>(_status)
2075 static_cast<FwAssertArgType>(_status)
2088 #if FW_ENABLE_TEXT_LOGGING 2089 if (this->isConnected_LogText_OutputPort(0)) {
2090 #if FW_OBJECT_NAMES == 1 2091 const char* _formatString =
2092 "(%s) %s: Appending %s onto %s failed with status %" PRIu32
"";
2094 const char* _formatString =
2095 "%s: Appending %s onto %s failed with status %" PRIu32
"";
2102 this->m_objName.toChar(),
2104 "AppendFileFailed ",
2130 this->timeCaller_out(0, _logTime);
2140 #if FW_AMPCS_COMPATIBLE 2145 static_cast<FwAssertArgType>(_status)
2155 static_cast<FwAssertArgType>(_status)
2164 static_cast<FwAssertArgType>(_status)
2177 #if FW_ENABLE_TEXT_LOGGING 2178 if (this->isConnected_LogText_OutputPort(0)) {
2179 #if FW_OBJECT_NAMES == 1 2180 const char* _formatString =
2181 "(%s) %s: Appended %s to the end of %s";
2183 const char* _formatString =
2184 "%s: Appended %s to the end of %s";
2191 this->m_objName.toChar(),
2193 "AppendFileSucceeded ",
2215 this->timeCaller_out(0, _logTime);
2225 #if FW_AMPCS_COMPATIBLE 2230 static_cast<FwAssertArgType>(_status)
2240 static_cast<FwAssertArgType>(_status)
2253 #if FW_ENABLE_TEXT_LOGGING 2254 if (this->isConnected_LogText_OutputPort(0)) {
2255 #if FW_OBJECT_NAMES == 1 2256 const char* _formatString =
2257 "(%s) %s: Created directory %s successfully";
2259 const char* _formatString =
2260 "%s: Created directory %s successfully";
2267 this->m_objName.toChar(),
2269 "CreateDirectorySucceeded ",
2290 this->timeCaller_out(0, _logTime);
2300 #if FW_AMPCS_COMPATIBLE 2305 static_cast<FwAssertArgType>(_status)
2315 static_cast<FwAssertArgType>(_status)
2328 #if FW_ENABLE_TEXT_LOGGING 2329 if (this->isConnected_LogText_OutputPort(0)) {
2330 #if FW_OBJECT_NAMES == 1 2331 const char* _formatString =
2332 "(%s) %s: Removed directory %s successfully";
2334 const char* _formatString =
2335 "%s: Removed directory %s successfully";
2342 this->m_objName.toChar(),
2344 "RemoveDirectorySucceeded ",
2368 this->timeCaller_out(0, _logTime);
2378 #if FW_AMPCS_COMPATIBLE 2383 static_cast<FwAssertArgType>(_status)
2393 static_cast<FwAssertArgType>(_status)
2402 static_cast<FwAssertArgType>(_status)
2415 #if FW_ENABLE_TEXT_LOGGING 2416 if (this->isConnected_LogText_OutputPort(0)) {
2417 #if FW_OBJECT_NAMES == 1 2418 const char* _formatString =
2419 "(%s) %s: Moved file %s to file %s successfully";
2421 const char* _formatString =
2422 "%s: Moved file %s to file %s successfully";
2429 this->m_objName.toChar(),
2431 "MoveFileSucceeded ",
2453 this->timeCaller_out(0, _logTime);
2463 #if FW_AMPCS_COMPATIBLE 2468 static_cast<FwAssertArgType>(_status)
2478 static_cast<FwAssertArgType>(_status)
2491 #if FW_ENABLE_TEXT_LOGGING 2492 if (this->isConnected_LogText_OutputPort(0)) {
2493 #if FW_OBJECT_NAMES == 1 2494 const char* _formatString =
2495 "(%s) %s: Removed file %s successfully";
2497 const char* _formatString =
2498 "%s: Removed file %s successfully";
2505 this->m_objName.toChar(),
2507 "RemoveFileSucceeded ",
2531 this->timeCaller_out(0, _logTime);
2541 #if FW_AMPCS_COMPATIBLE 2546 static_cast<FwAssertArgType>(_status)
2556 static_cast<FwAssertArgType>(_status)
2565 static_cast<FwAssertArgType>(_status)
2578 #if FW_ENABLE_TEXT_LOGGING 2579 if (this->isConnected_LogText_OutputPort(0)) {
2580 #if FW_OBJECT_NAMES == 1 2581 const char* _formatString =
2582 "(%s) %s: Appending file %s to the end of %s...";
2584 const char* _formatString =
2585 "%s: Appending file %s to the end of %s...";
2592 this->m_objName.toChar(),
2594 "AppendFileStarted ",
2616 this->timeCaller_out(0, _logTime);
2626 #if FW_AMPCS_COMPATIBLE 2631 static_cast<FwAssertArgType>(_status)
2641 static_cast<FwAssertArgType>(_status)
2654 #if FW_ENABLE_TEXT_LOGGING 2655 if (this->isConnected_LogText_OutputPort(0)) {
2656 #if FW_OBJECT_NAMES == 1 2657 const char* _formatString =
2658 "(%s) %s: Creating directory %s...";
2660 const char* _formatString =
2661 "%s: Creating directory %s...";
2668 this->m_objName.toChar(),
2670 "CreateDirectoryStarted ",
2691 this->timeCaller_out(0, _logTime);
2701 #if FW_AMPCS_COMPATIBLE 2706 static_cast<FwAssertArgType>(_status)
2716 static_cast<FwAssertArgType>(_status)
2729 #if FW_ENABLE_TEXT_LOGGING 2730 if (this->isConnected_LogText_OutputPort(0)) {
2731 #if FW_OBJECT_NAMES == 1 2732 const char* _formatString =
2733 "(%s) %s: Removing directory %s...";
2735 const char* _formatString =
2736 "%s: Removing directory %s...";
2743 this->m_objName.toChar(),
2745 "RemoveDirectoryStarted ",
2769 this->timeCaller_out(0, _logTime);
2779 #if FW_AMPCS_COMPATIBLE 2784 static_cast<FwAssertArgType>(_status)
2794 static_cast<FwAssertArgType>(_status)
2803 static_cast<FwAssertArgType>(_status)
2816 #if FW_ENABLE_TEXT_LOGGING 2817 if (this->isConnected_LogText_OutputPort(0)) {
2818 #if FW_OBJECT_NAMES == 1 2819 const char* _formatString =
2820 "(%s) %s: Moving file %s to file %s...";
2822 const char* _formatString =
2823 "%s: Moving file %s to file %s...";
2830 this->m_objName.toChar(),
2854 this->timeCaller_out(0, _logTime);
2864 #if FW_AMPCS_COMPATIBLE 2869 static_cast<FwAssertArgType>(_status)
2879 static_cast<FwAssertArgType>(_status)
2892 #if FW_ENABLE_TEXT_LOGGING 2893 if (this->isConnected_LogText_OutputPort(0)) {
2894 #if FW_OBJECT_NAMES == 1 2895 const char* _formatString =
2896 "(%s) %s: Removing file %s...";
2898 const char* _formatString =
2899 "%s: Removing file %s...";
2906 this->m_objName.toChar(),
2908 "RemoveFileStarted ",
2932 this->timeCaller_out(0, _logTime);
2942 #if FW_AMPCS_COMPATIBLE 2947 static_cast<FwAssertArgType>(_status)
2957 static_cast<FwAssertArgType>(_status)
2960 #if FW_AMPCS_COMPATIBLE 2967 static_cast<FwAssertArgType>(_status)
2973 static_cast<FwAssertArgType>(_status)
2986 #if FW_ENABLE_TEXT_LOGGING 2987 if (this->isConnected_LogText_OutputPort(0)) {
2988 #if FW_OBJECT_NAMES == 1 2989 const char* _formatString =
2990 "(%s) %s: The size of file %s is %" PRIu64
" B";
2992 const char* _formatString =
2993 "%s: The size of file %s is %" PRIu64
" B";
3000 this->m_objName.toChar(),
3002 "FileSizeSucceeded ",
3027 this->timeCaller_out(0, _logTime);
3037 #if FW_AMPCS_COMPATIBLE 3042 static_cast<FwAssertArgType>(_status)
3052 static_cast<FwAssertArgType>(_status)
3055 #if FW_AMPCS_COMPATIBLE 3058 static_cast<U8>(
sizeof(U32))
3062 static_cast<FwAssertArgType>(_status)
3068 static_cast<FwAssertArgType>(_status)
3081 #if FW_ENABLE_TEXT_LOGGING 3082 if (this->isConnected_LogText_OutputPort(0)) {
3083 #if FW_OBJECT_NAMES == 1 3084 const char* _formatString =
3085 "(%s) %s: Failed to get the size of file %s, returned status %" PRIu32
"";
3087 const char* _formatString =
3088 "%s: Failed to get the size of file %s, returned status %" PRIu32
"";
3095 this->m_objName.toChar(),
3119 this->timeCaller_out(0, _logTime);
3129 #if FW_AMPCS_COMPATIBLE 3134 static_cast<FwAssertArgType>(_status)
3144 static_cast<FwAssertArgType>(_status)
3157 #if FW_ENABLE_TEXT_LOGGING 3158 if (this->isConnected_LogText_OutputPort(0)) {
3159 #if FW_OBJECT_NAMES == 1 3160 const char* _formatString =
3161 "(%s) %s: Checking size of file %s...";
3163 const char* _formatString =
3164 "%s: Checking size of file %s...";
3171 this->m_objName.toChar(),
3194 this->timeCaller_out(0, _logTime);
3204 #if FW_AMPCS_COMPATIBLE 3209 static_cast<FwAssertArgType>(_status)
3219 static_cast<FwAssertArgType>(_status)
3232 #if FW_ENABLE_TEXT_LOGGING 3233 if (this->isConnected_LogText_OutputPort(0)) {
3234 #if FW_OBJECT_NAMES == 1 3235 const char* _formatString =
3236 "(%s) %s: Listing contents of directory %s...";
3238 const char* _formatString =
3239 "%s: Listing contents of directory %s...";
3246 this->m_objName.toChar(),
3248 "ListDirectoryStarted ",
3272 this->timeCaller_out(0, _logTime);
3282 #if FW_AMPCS_COMPATIBLE 3287 static_cast<FwAssertArgType>(_status)
3297 static_cast<FwAssertArgType>(_status)
3300 #if FW_AMPCS_COMPATIBLE 3303 static_cast<U8>(
sizeof(U32))
3307 static_cast<FwAssertArgType>(_status)
3313 static_cast<FwAssertArgType>(_status)
3326 #if FW_ENABLE_TEXT_LOGGING 3327 if (this->isConnected_LogText_OutputPort(0)) {
3328 #if FW_OBJECT_NAMES == 1 3329 const char* _formatString =
3330 "(%s) %s: Directory %s contains %" PRIu32
" files";
3332 const char* _formatString =
3333 "%s: Directory %s contains %" PRIu32
" files";
3340 this->m_objName.toChar(),
3342 "ListDirectorySucceeded ",
3367 this->timeCaller_out(0, _logTime);
3377 #if FW_AMPCS_COMPATIBLE 3382 static_cast<FwAssertArgType>(_status)
3392 static_cast<FwAssertArgType>(_status)
3395 #if FW_AMPCS_COMPATIBLE 3398 static_cast<U8>(
sizeof(U32))
3402 static_cast<FwAssertArgType>(_status)
3408 static_cast<FwAssertArgType>(_status)
3421 #if FW_ENABLE_TEXT_LOGGING 3422 if (this->isConnected_LogText_OutputPort(0)) {
3423 #if FW_OBJECT_NAMES == 1 3424 const char* _formatString =
3425 "(%s) %s: Failed to list directory %s, returned status %" PRIu32
"";
3427 const char* _formatString =
3428 "%s: Failed to list directory %s, returned status %" PRIu32
"";
3435 this->m_objName.toChar(),
3437 "ListDirectoryError ",
3463 this->timeCaller_out(0, _logTime);
3473 #if FW_AMPCS_COMPATIBLE 3478 static_cast<FwAssertArgType>(_status)
3488 static_cast<FwAssertArgType>(_status)
3497 static_cast<FwAssertArgType>(_status)
3500 #if FW_AMPCS_COMPATIBLE 3507 static_cast<FwAssertArgType>(_status)
3513 static_cast<FwAssertArgType>(_status)
3526 #if FW_ENABLE_TEXT_LOGGING 3527 if (this->isConnected_LogText_OutputPort(0)) {
3528 #if FW_OBJECT_NAMES == 1 3529 const char* _formatString =
3530 "(%s) %s: Directory %s: %s (%" PRIu64
" bytes)";
3532 const char* _formatString =
3533 "%s: Directory %s: %s (%" PRIu64
" bytes)";
3540 this->m_objName.toChar(),
3542 "DirectoryListing ",
3568 this->timeCaller_out(0, _logTime);
3578 #if FW_AMPCS_COMPATIBLE 3583 static_cast<FwAssertArgType>(_status)
3593 static_cast<FwAssertArgType>(_status)
3602 static_cast<FwAssertArgType>(_status)
3615 #if FW_ENABLE_TEXT_LOGGING 3616 if (this->isConnected_LogText_OutputPort(0)) {
3617 #if FW_OBJECT_NAMES == 1 3618 const char* _formatString =
3619 "(%s) %s: Directory %s: %s";
3621 const char* _formatString =
3622 "%s: Directory %s: %s";
3629 this->m_objName.toChar(),
3631 "DirectoryListingSubdir ",
3653 this->timeCaller_out(0, _logTime);
3663 #if FW_AMPCS_COMPATIBLE 3668 static_cast<FwAssertArgType>(_status)
3678 static_cast<FwAssertArgType>(_status)
3691 #if FW_ENABLE_TEXT_LOGGING 3692 if (this->isConnected_LogText_OutputPort(0)) {
3693 #if FW_OBJECT_NAMES == 1 3694 const char* _formatString =
3695 "(%s) %s: Started CRC calculation for file %s";
3697 const char* _formatString =
3698 "%s: Started CRC calculation for file %s";
3705 this->m_objName.toChar(),
3707 "CalculateCrcStarted ",
3731 this->timeCaller_out(0, _logTime);
3741 #if FW_AMPCS_COMPATIBLE 3746 static_cast<FwAssertArgType>(_status)
3756 static_cast<FwAssertArgType>(_status)
3759 #if FW_AMPCS_COMPATIBLE 3762 static_cast<U8>(
sizeof(U32))
3766 static_cast<FwAssertArgType>(_status)
3772 static_cast<FwAssertArgType>(_status)
3785 #if FW_ENABLE_TEXT_LOGGING 3786 if (this->isConnected_LogText_OutputPort(0)) {
3787 #if FW_OBJECT_NAMES == 1 3788 const char* _formatString =
3789 "(%s) %s: Failed CRC calculation for file %s, returned status %" PRIu32
"";
3791 const char* _formatString =
3792 "%s: Failed CRC calculation for file %s, returned status %" PRIu32
"";
3799 this->m_objName.toChar(),
3801 "CalculateCrcFailed ",
3826 this->timeCaller_out(0, _logTime);
3836 #if FW_AMPCS_COMPATIBLE 3841 static_cast<FwAssertArgType>(_status)
3851 static_cast<FwAssertArgType>(_status)
3854 #if FW_AMPCS_COMPATIBLE 3857 static_cast<U8>(
sizeof(U32))
3861 static_cast<FwAssertArgType>(_status)
3867 static_cast<FwAssertArgType>(_status)
3880 #if FW_ENABLE_TEXT_LOGGING 3881 if (this->isConnected_LogText_OutputPort(0)) {
3882 #if FW_OBJECT_NAMES == 1 3883 const char* _formatString =
3884 "(%s) %s: %s has CRC value 0x%" PRIx32
"";
3886 const char* _formatString =
3887 "%s: %s has CRC value 0x%" PRIx32
"";
3894 this->m_objName.toChar(),
3896 "CalculateCrcSucceeded ",
3928 this->timeCaller_out(0, _tlmTime);
3958 static_cast<FwAssertArgType>(_stat)
3980 static_cast<FwAssertArgType>(_stat)
4000 this->timeCaller_out(0, _time);
4015 ComponentIpcSerializableBuffer _msg;
4025 static_cast<FwAssertArgType>(_msgStatus)
4035 static_cast<FwAssertArgType>(_deserStatus)
4038 MsgTypeEnum _msgType =
static_cast<MsgTypeEnum
>(_desMsg);
4040 if (_msgType == FILEMANAGER_COMPONENT_EXIT) {
4045 _deserStatus = _msg.deserializeTo(portNum);
4048 static_cast<FwAssertArgType>(_deserStatus)
4056 _deserStatus = _msg.deserializeTo(key);
4059 static_cast<FwAssertArgType>(_deserStatus)
4071 case CMD_CREATEDIRECTORY: {
4074 _deserStatus = _msg.deserializeTo(_opCode);
4077 static_cast<FwAssertArgType>(_deserStatus)
4082 _deserStatus = _msg.deserializeTo(_cmdSeq);
4085 static_cast<FwAssertArgType>(_deserStatus)
4090 _deserStatus = _msg.deserializeTo(args);
4093 static_cast<FwAssertArgType>(_deserStatus)
4116 #if FW_CMD_CHECK_RESIDUAL 4136 case CMD_MOVEFILE: {
4139 _deserStatus = _msg.deserializeTo(_opCode);
4142 static_cast<FwAssertArgType>(_deserStatus)
4147 _deserStatus = _msg.deserializeTo(_cmdSeq);
4150 static_cast<FwAssertArgType>(_deserStatus)
4155 _deserStatus = _msg.deserializeTo(args);
4158 static_cast<FwAssertArgType>(_deserStatus)
4196 #if FW_CMD_CHECK_RESIDUAL 4217 case CMD_REMOVEDIRECTORY: {
4220 _deserStatus = _msg.deserializeTo(_opCode);
4223 static_cast<FwAssertArgType>(_deserStatus)
4228 _deserStatus = _msg.deserializeTo(_cmdSeq);
4231 static_cast<FwAssertArgType>(_deserStatus)
4236 _deserStatus = _msg.deserializeTo(args);
4239 static_cast<FwAssertArgType>(_deserStatus)
4262 #if FW_CMD_CHECK_RESIDUAL 4282 case CMD_REMOVEFILE: {
4285 _deserStatus = _msg.deserializeTo(_opCode);
4288 static_cast<FwAssertArgType>(_deserStatus)
4293 _deserStatus = _msg.deserializeTo(_cmdSeq);
4296 static_cast<FwAssertArgType>(_deserStatus)
4301 _deserStatus = _msg.deserializeTo(args);
4304 static_cast<FwAssertArgType>(_deserStatus)
4342 #if FW_CMD_CHECK_RESIDUAL 4363 case CMD_APPENDFILE: {
4366 _deserStatus = _msg.deserializeTo(_opCode);
4369 static_cast<FwAssertArgType>(_deserStatus)
4374 _deserStatus = _msg.deserializeTo(_cmdSeq);
4377 static_cast<FwAssertArgType>(_deserStatus)
4382 _deserStatus = _msg.deserializeTo(args);
4385 static_cast<FwAssertArgType>(_deserStatus)
4423 #if FW_CMD_CHECK_RESIDUAL 4444 case CMD_FILESIZE: {
4447 _deserStatus = _msg.deserializeTo(_opCode);
4450 static_cast<FwAssertArgType>(_deserStatus)
4455 _deserStatus = _msg.deserializeTo(_cmdSeq);
4458 static_cast<FwAssertArgType>(_deserStatus)
4463 _deserStatus = _msg.deserializeTo(args);
4466 static_cast<FwAssertArgType>(_deserStatus)
4489 #if FW_CMD_CHECK_RESIDUAL 4509 case CMD_LISTDIRECTORY: {
4512 _deserStatus = _msg.deserializeTo(_opCode);
4515 static_cast<FwAssertArgType>(_deserStatus)
4520 _deserStatus = _msg.deserializeTo(_cmdSeq);
4523 static_cast<FwAssertArgType>(_deserStatus)
4528 _deserStatus = _msg.deserializeTo(args);
4531 static_cast<FwAssertArgType>(_deserStatus)
4554 #if FW_CMD_CHECK_RESIDUAL 4574 case CMD_CALCULATECRC: {
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)
4619 #if FW_CMD_CHECK_RESIDUAL 4643 _msg.getDeserializeSizeLeft() == 0,
4664 void FileManagerComponentBase ::
4675 compPtr->cmdIn_handlerBase(
4687 void FileManagerComponentBase ::
4696 compPtr->pingIn_handlerBase(
4702 void FileManagerComponentBase ::
4711 compPtr->schedIn_handlerBase(
4717 #if !FW_DIRECT_PORT_CALLS 4723 #if FW_ENABLE_TEXT_LOGGING 4725 void FileManagerComponentBase ::
4735 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
4736 static_cast<FwAssertArgType>(portNum)
4740 this->m_LogText_OutputPort[portNum].isConnected(),
4741 static_cast<FwAssertArgType>(portNum)
4743 this->m_LogText_OutputPort[portNum].invoke(
4753 void FileManagerComponentBase ::
4761 static_cast<FwAssertArgType>(portNum)
4765 this->m_cmdRegOut_OutputPort[portNum].isConnected(),
4766 static_cast<FwAssertArgType>(portNum)
4768 this->m_cmdRegOut_OutputPort[portNum].
invoke(
4773 void FileManagerComponentBase ::
4783 static_cast<FwAssertArgType>(portNum)
4787 this->m_cmdResponseOut_OutputPort[portNum].isConnected(),
4788 static_cast<FwAssertArgType>(portNum)
4790 this->m_cmdResponseOut_OutputPort[portNum].
invoke(
4797 void FileManagerComponentBase ::
4808 static_cast<FwAssertArgType>(portNum)
4812 this->m_eventOut_OutputPort[portNum].isConnected(),
4813 static_cast<FwAssertArgType>(portNum)
4815 this->m_eventOut_OutputPort[portNum].
invoke(
4823 void FileManagerComponentBase ::
4831 static_cast<FwAssertArgType>(portNum)
4835 this->m_timeCaller_OutputPort[portNum].isConnected(),
4836 static_cast<FwAssertArgType>(portNum)
4838 this->m_timeCaller_OutputPort[portNum].
invoke(
4843 void FileManagerComponentBase ::
4853 static_cast<FwAssertArgType>(portNum)
4857 this->m_tlmOut_OutputPort[portNum].isConnected(),
4858 static_cast<FwAssertArgType>(portNum)
4860 this->m_tlmOut_OutputPort[portNum].
invoke(
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.
An error occurred while attempting to remove a directory.
static constexpr FwSizeType CAPACITY
void log_WARNING_HI_ListDirectoryError(const Fw::StringBase &dirName, U32 status) const
The File System component began deleting an existing file.
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.
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 created a new directory without error.
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.
The File System component moved a file to a new location without error.
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.
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
void cmdIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Handler base-class function for input port cmdIn.
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
void invoke(U32 key) const
Invoke a port connection.
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)
void log_ACTIVITY_HI_ListDirectoryStarted(const Fw::StringBase &dirName) const
The File System component began moving a file to a new location.
bool isConnected_tlmOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_pingOut_OutputPorts()
void init()
Initialization function.
Enum representing a command response.
virtual void RemoveFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RemoveFile.
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.
bool isConnected_pingOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_eventOut_OutputPorts()
Os::Queue m_queue
queue object for active component
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
void pingOut_out(FwIndexType portNum, U32 key) const
Invoke output port pingOut.
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 ListDirectory_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void init()
Object initializer.
Channel ID for CommandsExecuted.
SerializeStatus
forward declaration for string
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].
FwIdType FwEventIdType
The type of an event identifier.
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const
void invoke(FwOpcodeType opCode) const
Invoke a port connection.
static constexpr FwSizeType CAPACITY
virtual void CreateDirectory_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &dirName)=0
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)
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 RemoveDirectory_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Directory listing subdirectory entry.
#define FW_MIN(a, b)
MIN macro (deprecated in C++, use std::min)
The File System component deleted and existing directory without error.
void init()
Initialization function.
static constexpr FwIndexType getNum_schedIn_InputPorts()
void invoke(Fw::Time &time) const
Invoke a port connection.
An error occurred while attempting to move a file.
Serializable::SizeType getDeserializeSizeLeft() const override
Get remaining deserialization buffer size.
List the contents of a directory.
const char * toChar() const
Convert to a C-style char*.
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke a port connection.
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
The File System component returned status non-zero when trying to append 2 files together.
virtual void CreateDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CreateDirectory.
void resetDeser() override
Reset deserialization pointer to beginning of buffer.
The File System component began creating a new directory.
Directory listing completed successfully.
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_timeCaller_OutputPort(FwIndexType portNum) const
void invoke(FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
Invoke a port connection.
void log_ACTIVITY_HI_FileSizeStarted(const Fw::StringBase &fileName) const
Enum representing event severity.
virtual ~FileManagerComponentBase()
Destroy FileManagerComponentBase object.
void tlmWrite(FwChanIdType id, Fw::TlmBuffer &_tlmBuff, Fw::Time _tlmTime=Fw::Time()) const
List the contents of a directory.
static constexpr FwIndexType getNum_cmdResponseOut_OutputPorts()
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
void MoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
The File System component appended 2 files without error.
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.
Starting directory listing.
void log_WARNING_HI_DirectoryRemoveError(const Fw::StringBase &dirName, U32 status) const
An error occurred while attempting to create a directory.
PlatformQueuePriorityType FwQueuePriorityType
The type of queue priorities used.
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 connection.
void log_ACTIVITY_HI_AppendFileStarted(const Fw::StringBase &source, const Fw::StringBase &target) const
bool isConnected_eventOut_OutputPort(FwIndexType portNum) 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].
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const
PlatformIndexType FwIndexType
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
The File System component appended 2 files without error.
void addCallPort(InputLogPort *callPort)
Register an input port.
message to exit active component task
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.
Append 1 file's contents to the end of another.
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.
Directory listing file entry.
Remove a directory, which must be empty.
Message will return with status when space is unavailable.
The File System component deleted an existing file without error.
Implementation of malloc based allocator.
An error occurred while attempting to remove a file.
virtual void RemoveDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RemoveDirectory.
Failed to list directory.
The File System component began deleting a directory.
void init()
Initialization function.
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
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
void log_WARNING_HI_FileRemoveError(const Fw::StringBase &fileName, U32 status) const
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.
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