9 #if FW_ENABLE_TEXT_LOGGING 41 class ComponentIpcSerializableBuffer :
51 MAX_DATA_SIZE =
sizeof(BuffUnion),
53 SERIALIZATION_SIZE = DATA_OFFSET + MAX_DATA_SIZE
57 return sizeof(m_buff);
64 const U8* getBuffAddr()
const {
70 U8 m_buff[SERIALIZATION_SIZE];
94 this->m_cmdIn_InputPort[port].
init();
99 this->m_cmdIn_InputPort[port].
setPortNum(port);
101 #if FW_OBJECT_NAMES == 1 105 this->m_objName.toChar(),
108 this->m_cmdIn_InputPort[port].setObjName(portName.
toChar());
118 this->m_pingIn_InputPort[port].
init();
123 this->m_pingIn_InputPort[port].
setPortNum(port);
125 #if FW_OBJECT_NAMES == 1 129 this->m_objName.toChar(),
132 this->m_pingIn_InputPort[port].setObjName(portName.
toChar());
142 this->m_schedIn_InputPort[port].
init();
147 this->m_schedIn_InputPort[port].
setPortNum(port);
149 #if FW_OBJECT_NAMES == 1 153 this->m_objName.toChar(),
156 this->m_schedIn_InputPort[port].setObjName(portName.
toChar());
160 #if FW_ENABLE_TEXT_LOGGING == 1 164 port < static_cast<FwIndexType>(this->getNum_LogText_OutputPorts());
167 this->m_LogText_OutputPort[port].
init();
169 #if FW_OBJECT_NAMES == 1 173 this->m_objName.toChar(),
176 this->m_LogText_OutputPort[port].setObjName(portName.
toChar());
187 this->m_cmdRegOut_OutputPort[port].
init();
189 #if FW_OBJECT_NAMES == 1 193 this->m_objName.toChar(),
196 this->m_cmdRegOut_OutputPort[port].setObjName(portName.
toChar());
206 this->m_cmdResponseOut_OutputPort[port].
init();
208 #if FW_OBJECT_NAMES == 1 212 this->m_objName.toChar(),
215 this->m_cmdResponseOut_OutputPort[port].setObjName(portName.
toChar());
225 this->m_eventOut_OutputPort[port].
init();
227 #if FW_OBJECT_NAMES == 1 231 this->m_objName.toChar(),
234 this->m_eventOut_OutputPort[port].setObjName(portName.
toChar());
244 this->m_timeCaller_OutputPort[port].
init();
246 #if FW_OBJECT_NAMES == 1 250 this->m_objName.toChar(),
253 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
263 this->m_tlmOut_OutputPort[port].
init();
265 #if FW_OBJECT_NAMES == 1 269 this->m_objName.toChar(),
272 this->m_tlmOut_OutputPort[port].setObjName(portName.
toChar());
282 this->m_pingOut_OutputPort[port].
init();
284 #if FW_OBJECT_NAMES == 1 288 this->m_objName.toChar(),
291 this->m_pingOut_OutputPort[port].setObjName(portName.
toChar());
298 static_cast<FwSizeType>(ComponentIpcSerializableBuffer::SERIALIZATION_SIZE)
302 static_cast<FwAssertArgType>(qStat)
315 static_cast<FwAssertArgType>(portNum)
318 return &this->m_cmdIn_InputPort[portNum];
330 static_cast<FwAssertArgType>(portNum)
333 return &this->m_pingIn_InputPort[portNum];
341 static_cast<FwAssertArgType>(portNum)
344 return &this->m_schedIn_InputPort[portNum];
351 #if FW_ENABLE_TEXT_LOGGING == 1 353 void FileManagerComponentBase ::
354 set_LogText_OutputPort(
360 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
361 static_cast<FwAssertArgType>(portNum)
364 this->m_LogText_OutputPort[portNum].addCallPort(port);
377 static_cast<FwAssertArgType>(portNum)
380 this->m_cmdRegOut_OutputPort[portNum].
addCallPort(port);
391 static_cast<FwAssertArgType>(portNum)
394 this->m_cmdResponseOut_OutputPort[portNum].
addCallPort(port);
405 static_cast<FwAssertArgType>(portNum)
408 this->m_eventOut_OutputPort[portNum].
addCallPort(port);
419 static_cast<FwAssertArgType>(portNum)
422 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
433 static_cast<FwAssertArgType>(portNum)
436 this->m_tlmOut_OutputPort[portNum].
addCallPort(port);
451 static_cast<FwAssertArgType>(portNum)
454 this->m_pingOut_OutputPort[portNum].
addCallPort(port);
457 #if FW_PORT_SERIALIZATION 463 #if FW_ENABLE_TEXT_LOGGING == 1 465 void FileManagerComponentBase ::
466 set_LogText_OutputPort(
468 Fw::InputSerializePort* port
472 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
473 static_cast<FwAssertArgType>(portNum)
476 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
484 Fw::InputSerializePort* port
489 static_cast<FwAssertArgType>(portNum)
492 this->m_cmdRegOut_OutputPort[portNum].registerSerialPort(port);
498 Fw::InputSerializePort* port
503 static_cast<FwAssertArgType>(portNum)
506 this->m_cmdResponseOut_OutputPort[portNum].registerSerialPort(port);
512 Fw::InputSerializePort* port
517 static_cast<FwAssertArgType>(portNum)
520 this->m_eventOut_OutputPort[portNum].registerSerialPort(port);
526 Fw::InputSerializePort* port
531 static_cast<FwAssertArgType>(portNum)
534 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
540 Fw::InputSerializePort* port
545 static_cast<FwAssertArgType>(portNum)
548 this->m_tlmOut_OutputPort[portNum].registerSerialPort(port);
553 #if FW_PORT_SERIALIZATION 562 Fw::InputSerializePort* port
567 static_cast<FwAssertArgType>(portNum)
570 this->m_pingOut_OutputPort[portNum].registerSerialPort(port);
582 FW_ASSERT(this->m_cmdRegOut_OutputPort[0].isConnected());
584 this->m_cmdRegOut_OutputPort[0].
invoke(
588 this->m_cmdRegOut_OutputPort[0].
invoke(
592 this->m_cmdRegOut_OutputPort[0].
invoke(
596 this->m_cmdRegOut_OutputPort[0].
invoke(
600 this->m_cmdRegOut_OutputPort[0].
invoke(
604 this->m_cmdRegOut_OutputPort[0].
invoke(
608 this->m_cmdRegOut_OutputPort[0].
invoke(
612 this->m_cmdRegOut_OutputPort[0].
invoke(
623 Fw::ActiveComponentBase(compName)
638 #if FW_ENABLE_TEXT_LOGGING == 1 640 bool FileManagerComponentBase ::
641 isConnected_LogText_OutputPort(
FwIndexType portNum)
644 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
645 static_cast<FwAssertArgType>(portNum)
648 return this->m_LogText_OutputPort[portNum].isConnected();
658 static_cast<FwAssertArgType>(portNum)
661 return this->m_cmdRegOut_OutputPort[portNum].
isConnected();
669 static_cast<FwAssertArgType>(portNum)
672 return this->m_cmdResponseOut_OutputPort[portNum].
isConnected();
680 static_cast<FwAssertArgType>(portNum)
683 return this->m_eventOut_OutputPort[portNum].
isConnected();
691 static_cast<FwAssertArgType>(portNum)
694 return this->m_timeCaller_OutputPort[portNum].
isConnected();
702 static_cast<FwAssertArgType>(portNum)
705 return this->m_tlmOut_OutputPort[portNum].
isConnected();
717 static_cast<FwAssertArgType>(portNum)
720 return this->m_pingOut_OutputPort[portNum].
isConnected();
738 static_cast<FwAssertArgType>(portNum)
746 ComponentIpcSerializableBuffer msg;
750 _status = msg.serializeFrom(
751 static_cast<FwEnumStoreType>(PINGIN_PING)
755 static_cast<FwAssertArgType>(_status)
759 _status = msg.serializeFrom(portNum);
762 static_cast<FwAssertArgType>(_status)
766 _status = msg.serializeFrom(key);
769 static_cast<FwAssertArgType>(_status)
778 static_cast<FwAssertArgType>(qStatus)
791 static_cast<FwAssertArgType>(portNum)
799 ComponentIpcSerializableBuffer msg;
803 _status = msg.serializeFrom(
804 static_cast<FwEnumStoreType>(SCHEDIN_SCHED)
808 static_cast<FwAssertArgType>(_status)
812 _status = msg.serializeFrom(portNum);
815 static_cast<FwAssertArgType>(_status)
819 _status = msg.serializeFrom(context);
822 static_cast<FwAssertArgType>(_status)
831 static_cast<FwAssertArgType>(qStatus)
873 static_cast<FwAssertArgType>(portNum)
877 this->m_pingOut_OutputPort[portNum].isConnected(),
878 static_cast<FwAssertArgType>(portNum)
880 this->m_pingOut_OutputPort[portNum].
invoke(
896 FW_ASSERT(this->m_cmdResponseOut_OutputPort[0].isConnected());
897 this->m_cmdResponseOut_OutputPort[0].
invoke(opCode, cmdSeq, response);
918 ComponentIpcSerializableBuffer msg;
922 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_CREATEDIRECTORY));
925 static_cast<FwAssertArgType>(_status)
931 _status = msg.serializeFrom(port);
934 static_cast<FwAssertArgType>(_status)
937 _status = msg.serializeFrom(opCode);
940 static_cast<FwAssertArgType>(_status)
943 _status = msg.serializeFrom(cmdSeq);
946 static_cast<FwAssertArgType>(_status)
949 _status = msg.serializeFrom(args);
952 static_cast<FwAssertArgType>(_status)
961 static_cast<FwAssertArgType>(qStatus)
977 ComponentIpcSerializableBuffer msg;
981 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_MOVEFILE));
984 static_cast<FwAssertArgType>(_status)
990 _status = msg.serializeFrom(port);
993 static_cast<FwAssertArgType>(_status)
996 _status = msg.serializeFrom(opCode);
999 static_cast<FwAssertArgType>(_status)
1002 _status = msg.serializeFrom(cmdSeq);
1005 static_cast<FwAssertArgType>(_status)
1008 _status = msg.serializeFrom(args);
1011 static_cast<FwAssertArgType>(_status)
1020 static_cast<FwAssertArgType>(qStatus)
1036 ComponentIpcSerializableBuffer msg;
1040 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_REMOVEDIRECTORY));
1043 static_cast<FwAssertArgType>(_status)
1049 _status = msg.serializeFrom(port);
1052 static_cast<FwAssertArgType>(_status)
1055 _status = msg.serializeFrom(opCode);
1058 static_cast<FwAssertArgType>(_status)
1061 _status = msg.serializeFrom(cmdSeq);
1064 static_cast<FwAssertArgType>(_status)
1067 _status = msg.serializeFrom(args);
1070 static_cast<FwAssertArgType>(_status)
1079 static_cast<FwAssertArgType>(qStatus)
1095 ComponentIpcSerializableBuffer msg;
1099 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_REMOVEFILE));
1102 static_cast<FwAssertArgType>(_status)
1108 _status = msg.serializeFrom(port);
1111 static_cast<FwAssertArgType>(_status)
1114 _status = msg.serializeFrom(opCode);
1117 static_cast<FwAssertArgType>(_status)
1120 _status = msg.serializeFrom(cmdSeq);
1123 static_cast<FwAssertArgType>(_status)
1126 _status = msg.serializeFrom(args);
1129 static_cast<FwAssertArgType>(_status)
1138 static_cast<FwAssertArgType>(qStatus)
1154 ComponentIpcSerializableBuffer msg;
1158 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_SHELLCOMMAND));
1161 static_cast<FwAssertArgType>(_status)
1167 _status = msg.serializeFrom(port);
1170 static_cast<FwAssertArgType>(_status)
1173 _status = msg.serializeFrom(opCode);
1176 static_cast<FwAssertArgType>(_status)
1179 _status = msg.serializeFrom(cmdSeq);
1182 static_cast<FwAssertArgType>(_status)
1185 _status = msg.serializeFrom(args);
1188 static_cast<FwAssertArgType>(_status)
1197 static_cast<FwAssertArgType>(qStatus)
1213 ComponentIpcSerializableBuffer msg;
1217 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_APPENDFILE));
1220 static_cast<FwAssertArgType>(_status)
1226 _status = msg.serializeFrom(port);
1229 static_cast<FwAssertArgType>(_status)
1232 _status = msg.serializeFrom(opCode);
1235 static_cast<FwAssertArgType>(_status)
1238 _status = msg.serializeFrom(cmdSeq);
1241 static_cast<FwAssertArgType>(_status)
1244 _status = msg.serializeFrom(args);
1247 static_cast<FwAssertArgType>(_status)
1256 static_cast<FwAssertArgType>(qStatus)
1272 ComponentIpcSerializableBuffer msg;
1276 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_FILESIZE));
1279 static_cast<FwAssertArgType>(_status)
1285 _status = msg.serializeFrom(port);
1288 static_cast<FwAssertArgType>(_status)
1291 _status = msg.serializeFrom(opCode);
1294 static_cast<FwAssertArgType>(_status)
1297 _status = msg.serializeFrom(cmdSeq);
1300 static_cast<FwAssertArgType>(_status)
1303 _status = msg.serializeFrom(args);
1306 static_cast<FwAssertArgType>(_status)
1315 static_cast<FwAssertArgType>(qStatus)
1331 ComponentIpcSerializableBuffer msg;
1335 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_LISTDIRECTORY));
1338 static_cast<FwAssertArgType>(_status)
1344 _status = msg.serializeFrom(port);
1347 static_cast<FwAssertArgType>(_status)
1350 _status = msg.serializeFrom(opCode);
1353 static_cast<FwAssertArgType>(_status)
1356 _status = msg.serializeFrom(cmdSeq);
1359 static_cast<FwAssertArgType>(_status)
1362 _status = msg.serializeFrom(args);
1365 static_cast<FwAssertArgType>(_status)
1374 static_cast<FwAssertArgType>(qStatus)
1486 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1487 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1495 if (this->m_eventOut_OutputPort[0].isConnected()) {
1499 #if FW_AMPCS_COMPATIBLE 1504 static_cast<FwAssertArgType>(_status)
1511 static_cast<FwAssertArgType>(_status)
1514 #if FW_AMPCS_COMPATIBLE 1517 static_cast<U8>(
sizeof(U32))
1521 static_cast<FwAssertArgType>(_status)
1527 static_cast<FwAssertArgType>(_status)
1530 this->m_eventOut_OutputPort[0].
invoke(
1539 #if FW_ENABLE_TEXT_LOGGING 1540 if (this->m_LogText_OutputPort[0].isConnected()) {
1541 #if FW_OBJECT_NAMES == 1 1542 const char* _formatString =
1543 "(%s) %s: Could not create directory %s, returned status %" PRIu32
"";
1545 const char* _formatString =
1546 "%s: Could not create directory %s, returned status %" PRIu32
"";
1553 this->m_objName.toChar(),
1555 "DirectoryCreateError ",
1560 this->m_LogText_OutputPort[0].invoke(
1578 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1579 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1587 if (this->m_eventOut_OutputPort[0].isConnected()) {
1591 #if FW_AMPCS_COMPATIBLE 1596 static_cast<FwAssertArgType>(_status)
1603 static_cast<FwAssertArgType>(_status)
1606 #if FW_AMPCS_COMPATIBLE 1609 static_cast<U8>(
sizeof(U32))
1613 static_cast<FwAssertArgType>(_status)
1619 static_cast<FwAssertArgType>(_status)
1622 this->m_eventOut_OutputPort[0].
invoke(
1631 #if FW_ENABLE_TEXT_LOGGING 1632 if (this->m_LogText_OutputPort[0].isConnected()) {
1633 #if FW_OBJECT_NAMES == 1 1634 const char* _formatString =
1635 "(%s) %s: Could not remove directory %s, returned status %" PRIu32
"";
1637 const char* _formatString =
1638 "%s: Could not remove directory %s, returned status %" PRIu32
"";
1645 this->m_objName.toChar(),
1647 "DirectoryRemoveError ",
1652 this->m_LogText_OutputPort[0].invoke(
1671 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1672 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1680 if (this->m_eventOut_OutputPort[0].isConnected()) {
1684 #if FW_AMPCS_COMPATIBLE 1689 static_cast<FwAssertArgType>(_status)
1696 static_cast<FwAssertArgType>(_status)
1702 static_cast<FwAssertArgType>(_status)
1705 #if FW_AMPCS_COMPATIBLE 1708 static_cast<U8>(
sizeof(U32))
1712 static_cast<FwAssertArgType>(_status)
1718 static_cast<FwAssertArgType>(_status)
1721 this->m_eventOut_OutputPort[0].
invoke(
1730 #if FW_ENABLE_TEXT_LOGGING 1731 if (this->m_LogText_OutputPort[0].isConnected()) {
1732 #if FW_OBJECT_NAMES == 1 1733 const char* _formatString =
1734 "(%s) %s: Could not move file %s to file %s, returned status %" PRIu32
"";
1736 const char* _formatString =
1737 "%s: Could not move file %s to file %s, returned status %" PRIu32
"";
1744 this->m_objName.toChar(),
1752 this->m_LogText_OutputPort[0].invoke(
1770 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1771 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1779 if (this->m_eventOut_OutputPort[0].isConnected()) {
1783 #if FW_AMPCS_COMPATIBLE 1788 static_cast<FwAssertArgType>(_status)
1795 static_cast<FwAssertArgType>(_status)
1798 #if FW_AMPCS_COMPATIBLE 1801 static_cast<U8>(
sizeof(U32))
1805 static_cast<FwAssertArgType>(_status)
1811 static_cast<FwAssertArgType>(_status)
1814 this->m_eventOut_OutputPort[0].
invoke(
1823 #if FW_ENABLE_TEXT_LOGGING 1824 if (this->m_LogText_OutputPort[0].isConnected()) {
1825 #if FW_OBJECT_NAMES == 1 1826 const char* _formatString =
1827 "(%s) %s: Could not remove file %s, returned status %" PRIu32
"";
1829 const char* _formatString =
1830 "%s: Could not remove file %s, returned status %" PRIu32
"";
1837 this->m_objName.toChar(),
1844 this->m_LogText_OutputPort[0].invoke(
1862 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1863 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1871 if (this->m_eventOut_OutputPort[0].isConnected()) {
1875 #if FW_AMPCS_COMPATIBLE 1880 static_cast<FwAssertArgType>(_status)
1887 static_cast<FwAssertArgType>(_status)
1890 #if FW_AMPCS_COMPATIBLE 1893 static_cast<U8>(
sizeof(U32))
1897 static_cast<FwAssertArgType>(_status)
1903 static_cast<FwAssertArgType>(_status)
1906 this->m_eventOut_OutputPort[0].
invoke(
1915 #if FW_ENABLE_TEXT_LOGGING 1916 if (this->m_LogText_OutputPort[0].isConnected()) {
1917 #if FW_OBJECT_NAMES == 1 1918 const char* _formatString =
1919 "(%s) %s: Shell command %s failed with status %" PRIu32
"";
1921 const char* _formatString =
1922 "%s: Shell command %s failed with status %" PRIu32
"";
1929 this->m_objName.toChar(),
1931 "ShellCommandFailed ",
1936 this->m_LogText_OutputPort[0].invoke(
1955 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1956 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1964 if (this->m_eventOut_OutputPort[0].isConnected()) {
1968 #if FW_AMPCS_COMPATIBLE 1973 static_cast<FwAssertArgType>(_status)
1980 static_cast<FwAssertArgType>(_status)
1986 static_cast<FwAssertArgType>(_status)
1989 #if FW_AMPCS_COMPATIBLE 1992 static_cast<U8>(
sizeof(U32))
1996 static_cast<FwAssertArgType>(_status)
2002 static_cast<FwAssertArgType>(_status)
2005 this->m_eventOut_OutputPort[0].
invoke(
2014 #if FW_ENABLE_TEXT_LOGGING 2015 if (this->m_LogText_OutputPort[0].isConnected()) {
2016 #if FW_OBJECT_NAMES == 1 2017 const char* _formatString =
2018 "(%s) %s: Appending %s onto %s failed with status %" PRIu32
"";
2020 const char* _formatString =
2021 "%s: Appending %s onto %s failed with status %" PRIu32
"";
2028 this->m_objName.toChar(),
2030 "AppendFileFailed ",
2036 this->m_LogText_OutputPort[0].invoke(
2054 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2055 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2063 if (this->m_eventOut_OutputPort[0].isConnected()) {
2067 #if FW_AMPCS_COMPATIBLE 2072 static_cast<FwAssertArgType>(_status)
2079 static_cast<FwAssertArgType>(_status)
2085 static_cast<FwAssertArgType>(_status)
2088 this->m_eventOut_OutputPort[0].
invoke(
2097 #if FW_ENABLE_TEXT_LOGGING 2098 if (this->m_LogText_OutputPort[0].isConnected()) {
2099 #if FW_OBJECT_NAMES == 1 2100 const char* _formatString =
2101 "(%s) %s: Appended %s to the end of %s";
2103 const char* _formatString =
2104 "%s: Appended %s to the end of %s";
2111 this->m_objName.toChar(),
2113 "AppendFileSucceeded ",
2118 this->m_LogText_OutputPort[0].invoke(
2133 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2134 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2142 if (this->m_eventOut_OutputPort[0].isConnected()) {
2146 #if FW_AMPCS_COMPATIBLE 2151 static_cast<FwAssertArgType>(_status)
2158 static_cast<FwAssertArgType>(_status)
2161 this->m_eventOut_OutputPort[0].
invoke(
2170 #if FW_ENABLE_TEXT_LOGGING 2171 if (this->m_LogText_OutputPort[0].isConnected()) {
2172 #if FW_OBJECT_NAMES == 1 2173 const char* _formatString =
2174 "(%s) %s: Shell command %s succeeded";
2176 const char* _formatString =
2177 "%s: Shell command %s succeeded";
2184 this->m_objName.toChar(),
2186 "ShellCommandSucceeded ",
2190 this->m_LogText_OutputPort[0].invoke(
2205 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2206 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2214 if (this->m_eventOut_OutputPort[0].isConnected()) {
2218 #if FW_AMPCS_COMPATIBLE 2223 static_cast<FwAssertArgType>(_status)
2230 static_cast<FwAssertArgType>(_status)
2233 this->m_eventOut_OutputPort[0].
invoke(
2242 #if FW_ENABLE_TEXT_LOGGING 2243 if (this->m_LogText_OutputPort[0].isConnected()) {
2244 #if FW_OBJECT_NAMES == 1 2245 const char* _formatString =
2246 "(%s) %s: Created directory %s successfully";
2248 const char* _formatString =
2249 "%s: Created directory %s successfully";
2256 this->m_objName.toChar(),
2258 "CreateDirectorySucceeded ",
2262 this->m_LogText_OutputPort[0].invoke(
2277 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2278 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2286 if (this->m_eventOut_OutputPort[0].isConnected()) {
2290 #if FW_AMPCS_COMPATIBLE 2295 static_cast<FwAssertArgType>(_status)
2302 static_cast<FwAssertArgType>(_status)
2305 this->m_eventOut_OutputPort[0].
invoke(
2314 #if FW_ENABLE_TEXT_LOGGING 2315 if (this->m_LogText_OutputPort[0].isConnected()) {
2316 #if FW_OBJECT_NAMES == 1 2317 const char* _formatString =
2318 "(%s) %s: Removed directory %s successfully";
2320 const char* _formatString =
2321 "%s: Removed directory %s successfully";
2328 this->m_objName.toChar(),
2330 "RemoveDirectorySucceeded ",
2334 this->m_LogText_OutputPort[0].invoke(
2352 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2353 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2361 if (this->m_eventOut_OutputPort[0].isConnected()) {
2365 #if FW_AMPCS_COMPATIBLE 2370 static_cast<FwAssertArgType>(_status)
2377 static_cast<FwAssertArgType>(_status)
2383 static_cast<FwAssertArgType>(_status)
2386 this->m_eventOut_OutputPort[0].
invoke(
2395 #if FW_ENABLE_TEXT_LOGGING 2396 if (this->m_LogText_OutputPort[0].isConnected()) {
2397 #if FW_OBJECT_NAMES == 1 2398 const char* _formatString =
2399 "(%s) %s: Moved file %s to file %s successfully";
2401 const char* _formatString =
2402 "%s: Moved file %s to file %s successfully";
2409 this->m_objName.toChar(),
2411 "MoveFileSucceeded ",
2416 this->m_LogText_OutputPort[0].invoke(
2431 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2432 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2440 if (this->m_eventOut_OutputPort[0].isConnected()) {
2444 #if FW_AMPCS_COMPATIBLE 2449 static_cast<FwAssertArgType>(_status)
2456 static_cast<FwAssertArgType>(_status)
2459 this->m_eventOut_OutputPort[0].
invoke(
2468 #if FW_ENABLE_TEXT_LOGGING 2469 if (this->m_LogText_OutputPort[0].isConnected()) {
2470 #if FW_OBJECT_NAMES == 1 2471 const char* _formatString =
2472 "(%s) %s: Removed file %s successfully";
2474 const char* _formatString =
2475 "%s: Removed file %s successfully";
2482 this->m_objName.toChar(),
2484 "RemoveFileSucceeded ",
2488 this->m_LogText_OutputPort[0].invoke(
2506 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2507 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2515 if (this->m_eventOut_OutputPort[0].isConnected()) {
2519 #if FW_AMPCS_COMPATIBLE 2524 static_cast<FwAssertArgType>(_status)
2531 static_cast<FwAssertArgType>(_status)
2537 static_cast<FwAssertArgType>(_status)
2540 this->m_eventOut_OutputPort[0].
invoke(
2549 #if FW_ENABLE_TEXT_LOGGING 2550 if (this->m_LogText_OutputPort[0].isConnected()) {
2551 #if FW_OBJECT_NAMES == 1 2552 const char* _formatString =
2553 "(%s) %s: Appending file %s to the end of %s...";
2555 const char* _formatString =
2556 "%s: Appending file %s to the end of %s...";
2563 this->m_objName.toChar(),
2565 "AppendFileStarted ",
2570 this->m_LogText_OutputPort[0].invoke(
2585 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2586 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2594 if (this->m_eventOut_OutputPort[0].isConnected()) {
2598 #if FW_AMPCS_COMPATIBLE 2603 static_cast<FwAssertArgType>(_status)
2610 static_cast<FwAssertArgType>(_status)
2613 this->m_eventOut_OutputPort[0].
invoke(
2622 #if FW_ENABLE_TEXT_LOGGING 2623 if (this->m_LogText_OutputPort[0].isConnected()) {
2624 #if FW_OBJECT_NAMES == 1 2625 const char* _formatString =
2626 "(%s) %s: Running shell command %s...";
2628 const char* _formatString =
2629 "%s: Running shell command %s...";
2636 this->m_objName.toChar(),
2638 "ShellCommandStarted ",
2642 this->m_LogText_OutputPort[0].invoke(
2657 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2658 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2666 if (this->m_eventOut_OutputPort[0].isConnected()) {
2670 #if FW_AMPCS_COMPATIBLE 2675 static_cast<FwAssertArgType>(_status)
2682 static_cast<FwAssertArgType>(_status)
2685 this->m_eventOut_OutputPort[0].
invoke(
2694 #if FW_ENABLE_TEXT_LOGGING 2695 if (this->m_LogText_OutputPort[0].isConnected()) {
2696 #if FW_OBJECT_NAMES == 1 2697 const char* _formatString =
2698 "(%s) %s: Creating directory %s...";
2700 const char* _formatString =
2701 "%s: Creating directory %s...";
2708 this->m_objName.toChar(),
2710 "CreateDirectoryStarted ",
2714 this->m_LogText_OutputPort[0].invoke(
2729 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2730 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2738 if (this->m_eventOut_OutputPort[0].isConnected()) {
2742 #if FW_AMPCS_COMPATIBLE 2747 static_cast<FwAssertArgType>(_status)
2754 static_cast<FwAssertArgType>(_status)
2757 this->m_eventOut_OutputPort[0].
invoke(
2766 #if FW_ENABLE_TEXT_LOGGING 2767 if (this->m_LogText_OutputPort[0].isConnected()) {
2768 #if FW_OBJECT_NAMES == 1 2769 const char* _formatString =
2770 "(%s) %s: Removing directory %s...";
2772 const char* _formatString =
2773 "%s: Removing directory %s...";
2780 this->m_objName.toChar(),
2782 "RemoveDirectoryStarted ",
2786 this->m_LogText_OutputPort[0].invoke(
2804 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2805 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2813 if (this->m_eventOut_OutputPort[0].isConnected()) {
2817 #if FW_AMPCS_COMPATIBLE 2822 static_cast<FwAssertArgType>(_status)
2829 static_cast<FwAssertArgType>(_status)
2835 static_cast<FwAssertArgType>(_status)
2838 this->m_eventOut_OutputPort[0].
invoke(
2847 #if FW_ENABLE_TEXT_LOGGING 2848 if (this->m_LogText_OutputPort[0].isConnected()) {
2849 #if FW_OBJECT_NAMES == 1 2850 const char* _formatString =
2851 "(%s) %s: Moving file %s to file %s...";
2853 const char* _formatString =
2854 "%s: Moving file %s to file %s...";
2861 this->m_objName.toChar(),
2868 this->m_LogText_OutputPort[0].invoke(
2883 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2884 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2892 if (this->m_eventOut_OutputPort[0].isConnected()) {
2896 #if FW_AMPCS_COMPATIBLE 2901 static_cast<FwAssertArgType>(_status)
2908 static_cast<FwAssertArgType>(_status)
2911 this->m_eventOut_OutputPort[0].
invoke(
2920 #if FW_ENABLE_TEXT_LOGGING 2921 if (this->m_LogText_OutputPort[0].isConnected()) {
2922 #if FW_OBJECT_NAMES == 1 2923 const char* _formatString =
2924 "(%s) %s: Removing file %s...";
2926 const char* _formatString =
2927 "%s: Removing file %s...";
2934 this->m_objName.toChar(),
2936 "RemoveFileStarted ",
2940 this->m_LogText_OutputPort[0].invoke(
2958 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2959 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2967 if (this->m_eventOut_OutputPort[0].isConnected()) {
2971 #if FW_AMPCS_COMPATIBLE 2976 static_cast<FwAssertArgType>(_status)
2983 static_cast<FwAssertArgType>(_status)
2986 #if FW_AMPCS_COMPATIBLE 2993 static_cast<FwAssertArgType>(_status)
2999 static_cast<FwAssertArgType>(_status)
3002 this->m_eventOut_OutputPort[0].
invoke(
3011 #if FW_ENABLE_TEXT_LOGGING 3012 if (this->m_LogText_OutputPort[0].isConnected()) {
3013 #if FW_OBJECT_NAMES == 1 3014 const char* _formatString =
3015 "(%s) %s: The size of file %s is %" PRIu64
" B";
3017 const char* _formatString =
3018 "%s: The size of file %s is %" PRIu64
" B";
3025 this->m_objName.toChar(),
3027 "FileSizeSucceeded ",
3032 this->m_LogText_OutputPort[0].invoke(
3050 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3051 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3059 if (this->m_eventOut_OutputPort[0].isConnected()) {
3063 #if FW_AMPCS_COMPATIBLE 3068 static_cast<FwAssertArgType>(_status)
3075 static_cast<FwAssertArgType>(_status)
3078 #if FW_AMPCS_COMPATIBLE 3081 static_cast<U8>(
sizeof(U32))
3085 static_cast<FwAssertArgType>(_status)
3091 static_cast<FwAssertArgType>(_status)
3094 this->m_eventOut_OutputPort[0].
invoke(
3103 #if FW_ENABLE_TEXT_LOGGING 3104 if (this->m_LogText_OutputPort[0].isConnected()) {
3105 #if FW_OBJECT_NAMES == 1 3106 const char* _formatString =
3107 "(%s) %s: Failed to get the size of file %s, returned status %" PRIu32
"";
3109 const char* _formatString =
3110 "%s: Failed to get the size of file %s, returned status %" PRIu32
"";
3117 this->m_objName.toChar(),
3124 this->m_LogText_OutputPort[0].invoke(
3139 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3140 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3148 if (this->m_eventOut_OutputPort[0].isConnected()) {
3152 #if FW_AMPCS_COMPATIBLE 3157 static_cast<FwAssertArgType>(_status)
3164 static_cast<FwAssertArgType>(_status)
3167 this->m_eventOut_OutputPort[0].
invoke(
3176 #if FW_ENABLE_TEXT_LOGGING 3177 if (this->m_LogText_OutputPort[0].isConnected()) {
3178 #if FW_OBJECT_NAMES == 1 3179 const char* _formatString =
3180 "(%s) %s: Checking size of file %s...";
3182 const char* _formatString =
3183 "%s: Checking size of file %s...";
3190 this->m_objName.toChar(),
3196 this->m_LogText_OutputPort[0].invoke(
3211 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3212 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3220 if (this->m_eventOut_OutputPort[0].isConnected()) {
3224 #if FW_AMPCS_COMPATIBLE 3229 static_cast<FwAssertArgType>(_status)
3236 static_cast<FwAssertArgType>(_status)
3239 this->m_eventOut_OutputPort[0].
invoke(
3248 #if FW_ENABLE_TEXT_LOGGING 3249 if (this->m_LogText_OutputPort[0].isConnected()) {
3250 #if FW_OBJECT_NAMES == 1 3251 const char* _formatString =
3252 "(%s) %s: Listing contents of directory %s...";
3254 const char* _formatString =
3255 "%s: Listing contents of directory %s...";
3262 this->m_objName.toChar(),
3264 "ListDirectoryStarted ",
3268 this->m_LogText_OutputPort[0].invoke(
3286 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3287 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3295 if (this->m_eventOut_OutputPort[0].isConnected()) {
3299 #if FW_AMPCS_COMPATIBLE 3304 static_cast<FwAssertArgType>(_status)
3311 static_cast<FwAssertArgType>(_status)
3314 #if FW_AMPCS_COMPATIBLE 3317 static_cast<U8>(
sizeof(U32))
3321 static_cast<FwAssertArgType>(_status)
3327 static_cast<FwAssertArgType>(_status)
3330 this->m_eventOut_OutputPort[0].
invoke(
3339 #if FW_ENABLE_TEXT_LOGGING 3340 if (this->m_LogText_OutputPort[0].isConnected()) {
3341 #if FW_OBJECT_NAMES == 1 3342 const char* _formatString =
3343 "(%s) %s: Directory %s contains %" PRIu32
" files";
3345 const char* _formatString =
3346 "%s: Directory %s contains %" PRIu32
" files";
3353 this->m_objName.toChar(),
3355 "ListDirectorySucceeded ",
3360 this->m_LogText_OutputPort[0].invoke(
3378 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3379 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3387 if (this->m_eventOut_OutputPort[0].isConnected()) {
3391 #if FW_AMPCS_COMPATIBLE 3396 static_cast<FwAssertArgType>(_status)
3403 static_cast<FwAssertArgType>(_status)
3406 #if FW_AMPCS_COMPATIBLE 3409 static_cast<U8>(
sizeof(U32))
3413 static_cast<FwAssertArgType>(_status)
3419 static_cast<FwAssertArgType>(_status)
3422 this->m_eventOut_OutputPort[0].
invoke(
3431 #if FW_ENABLE_TEXT_LOGGING 3432 if (this->m_LogText_OutputPort[0].isConnected()) {
3433 #if FW_OBJECT_NAMES == 1 3434 const char* _formatString =
3435 "(%s) %s: Failed to list directory %s, returned status %" PRIu32
"";
3437 const char* _formatString =
3438 "%s: Failed to list directory %s, returned status %" PRIu32
"";
3445 this->m_objName.toChar(),
3447 "ListDirectoryError ",
3452 this->m_LogText_OutputPort[0].invoke(
3471 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3472 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3480 if (this->m_eventOut_OutputPort[0].isConnected()) {
3484 #if FW_AMPCS_COMPATIBLE 3489 static_cast<FwAssertArgType>(_status)
3496 static_cast<FwAssertArgType>(_status)
3502 static_cast<FwAssertArgType>(_status)
3505 #if FW_AMPCS_COMPATIBLE 3512 static_cast<FwAssertArgType>(_status)
3518 static_cast<FwAssertArgType>(_status)
3521 this->m_eventOut_OutputPort[0].
invoke(
3530 #if FW_ENABLE_TEXT_LOGGING 3531 if (this->m_LogText_OutputPort[0].isConnected()) {
3532 #if FW_OBJECT_NAMES == 1 3533 const char* _formatString =
3534 "(%s) %s: Directory %s: %s (%" PRIu64
" bytes)";
3536 const char* _formatString =
3537 "%s: Directory %s: %s (%" PRIu64
" bytes)";
3544 this->m_objName.toChar(),
3546 "DirectoryListing ",
3552 this->m_LogText_OutputPort[0].invoke(
3570 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3571 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3579 if (this->m_eventOut_OutputPort[0].isConnected()) {
3583 #if FW_AMPCS_COMPATIBLE 3588 static_cast<FwAssertArgType>(_status)
3595 static_cast<FwAssertArgType>(_status)
3601 static_cast<FwAssertArgType>(_status)
3604 this->m_eventOut_OutputPort[0].
invoke(
3613 #if FW_ENABLE_TEXT_LOGGING 3614 if (this->m_LogText_OutputPort[0].isConnected()) {
3615 #if FW_OBJECT_NAMES == 1 3616 const char* _formatString =
3617 "(%s) %s: Directory %s: %s";
3619 const char* _formatString =
3620 "%s: Directory %s: %s";
3627 this->m_objName.toChar(),
3629 "DirectoryListingSubdir ",
3634 this->m_LogText_OutputPort[0].invoke(
3654 if (this->m_tlmOut_OutputPort[0].isConnected()) {
3656 this->m_timeCaller_OutputPort[0].isConnected() &&
3659 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
3666 static_cast<FwAssertArgType>(_stat)
3673 this->m_tlmOut_OutputPort[0].
invoke(
3687 if (this->m_tlmOut_OutputPort[0].isConnected()) {
3689 this->m_timeCaller_OutputPort[0].isConnected() &&
3692 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
3699 static_cast<FwAssertArgType>(_stat)
3706 this->m_tlmOut_OutputPort[0].
invoke(
3721 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3723 this->m_timeCaller_OutputPort[0].
invoke(_time);
3738 ComponentIpcSerializableBuffer _msg;
3748 static_cast<FwAssertArgType>(_msgStatus)
3758 static_cast<FwAssertArgType>(_deserStatus)
3761 MsgTypeEnum _msgType =
static_cast<MsgTypeEnum
>(_desMsg);
3763 if (_msgType == FILEMANAGER_COMPONENT_EXIT) {
3768 _deserStatus = _msg.deserializeTo(portNum);
3771 static_cast<FwAssertArgType>(_deserStatus)
3779 _deserStatus = _msg.deserializeTo(key);
3782 static_cast<FwAssertArgType>(_deserStatus)
3794 case SCHEDIN_SCHED: {
3797 _deserStatus = _msg.deserializeTo(context);
3800 static_cast<FwAssertArgType>(_deserStatus)
3812 case CMD_CREATEDIRECTORY: {
3815 _deserStatus = _msg.deserializeTo(_opCode);
3818 static_cast<FwAssertArgType>(_deserStatus)
3823 _deserStatus = _msg.deserializeTo(_cmdSeq);
3826 static_cast<FwAssertArgType>(_deserStatus)
3831 _deserStatus = _msg.deserializeTo(args);
3834 static_cast<FwAssertArgType>(_deserStatus)
3844 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3857 #if FW_CMD_CHECK_RESIDUAL 3859 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3877 case CMD_MOVEFILE: {
3880 _deserStatus = _msg.deserializeTo(_opCode);
3883 static_cast<FwAssertArgType>(_deserStatus)
3888 _deserStatus = _msg.deserializeTo(_cmdSeq);
3891 static_cast<FwAssertArgType>(_deserStatus)
3896 _deserStatus = _msg.deserializeTo(args);
3899 static_cast<FwAssertArgType>(_deserStatus)
3909 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3924 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3937 #if FW_CMD_CHECK_RESIDUAL 3939 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3958 case CMD_REMOVEDIRECTORY: {
3961 _deserStatus = _msg.deserializeTo(_opCode);
3964 static_cast<FwAssertArgType>(_deserStatus)
3969 _deserStatus = _msg.deserializeTo(_cmdSeq);
3972 static_cast<FwAssertArgType>(_deserStatus)
3977 _deserStatus = _msg.deserializeTo(args);
3980 static_cast<FwAssertArgType>(_deserStatus)
3990 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4003 #if FW_CMD_CHECK_RESIDUAL 4005 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4023 case CMD_REMOVEFILE: {
4026 _deserStatus = _msg.deserializeTo(_opCode);
4029 static_cast<FwAssertArgType>(_deserStatus)
4034 _deserStatus = _msg.deserializeTo(_cmdSeq);
4037 static_cast<FwAssertArgType>(_deserStatus)
4042 _deserStatus = _msg.deserializeTo(args);
4045 static_cast<FwAssertArgType>(_deserStatus)
4055 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4070 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4083 #if FW_CMD_CHECK_RESIDUAL 4085 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4104 case CMD_SHELLCOMMAND: {
4107 _deserStatus = _msg.deserializeTo(_opCode);
4110 static_cast<FwAssertArgType>(_deserStatus)
4115 _deserStatus = _msg.deserializeTo(_cmdSeq);
4118 static_cast<FwAssertArgType>(_deserStatus)
4123 _deserStatus = _msg.deserializeTo(args);
4126 static_cast<FwAssertArgType>(_deserStatus)
4136 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4151 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4164 #if FW_CMD_CHECK_RESIDUAL 4166 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4185 case CMD_APPENDFILE: {
4188 _deserStatus = _msg.deserializeTo(_opCode);
4191 static_cast<FwAssertArgType>(_deserStatus)
4196 _deserStatus = _msg.deserializeTo(_cmdSeq);
4199 static_cast<FwAssertArgType>(_deserStatus)
4204 _deserStatus = _msg.deserializeTo(args);
4207 static_cast<FwAssertArgType>(_deserStatus)
4217 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4232 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4245 #if FW_CMD_CHECK_RESIDUAL 4247 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4266 case CMD_FILESIZE: {
4269 _deserStatus = _msg.deserializeTo(_opCode);
4272 static_cast<FwAssertArgType>(_deserStatus)
4277 _deserStatus = _msg.deserializeTo(_cmdSeq);
4280 static_cast<FwAssertArgType>(_deserStatus)
4285 _deserStatus = _msg.deserializeTo(args);
4288 static_cast<FwAssertArgType>(_deserStatus)
4298 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4311 #if FW_CMD_CHECK_RESIDUAL 4313 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4331 case CMD_LISTDIRECTORY: {
4334 _deserStatus = _msg.deserializeTo(_opCode);
4337 static_cast<FwAssertArgType>(_deserStatus)
4342 _deserStatus = _msg.deserializeTo(_cmdSeq);
4345 static_cast<FwAssertArgType>(_deserStatus)
4350 _deserStatus = _msg.deserializeTo(args);
4353 static_cast<FwAssertArgType>(_deserStatus)
4363 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4376 #if FW_CMD_CHECK_RESIDUAL 4378 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4406 void FileManagerComponentBase ::
4418 const U32 idBase = callComp->
getIdBase();
4419 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
4422 switch (opCode - idBase) {
4424 compPtr->CreateDirectory_cmdHandlerBase(
4433 compPtr->MoveFile_cmdHandlerBase(
4442 compPtr->RemoveDirectory_cmdHandlerBase(
4451 compPtr->RemoveFile_cmdHandlerBase(
4460 compPtr->ShellCommand_cmdHandlerBase(
4469 compPtr->AppendFile_cmdHandlerBase(
4478 compPtr->FileSize_cmdHandlerBase(
4487 compPtr->ListDirectory_cmdHandlerBase(
4501 void FileManagerComponentBase ::
4510 compPtr->pingIn_handlerBase(
4516 void FileManagerComponentBase ::
4525 compPtr->schedIn_handlerBase(
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
Serialization/Deserialization operation was successful.
The File System component returned status non-zero when trying to append 2 files together.
void addCallPort(InputTimePort *callPort)
Register an input port.
Remove a directory, which must be empty.
Directory listing completed successfully.
void log_WARNING_HI_ListDirectoryError(const Fw::StringBase &dirName, U32 status) const
void AppendFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void log_ACTIVITY_HI_DirectoryListingSubdir(const Fw::StringBase &dirName, const Fw::StringBase &subdirName) const
void log_ACTIVITY_HI_CreateDirectoryStarted(const Fw::StringBase &dirName) const
FwIdType FwOpcodeType
The type of a command opcode.
SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG) override
Serialize an 8-bit unsigned integer value.
virtual void ListDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command ListDirectory.
void log_ACTIVITY_HI_RemoveDirectorySucceeded(const Fw::StringBase &dirName) const
void log_ACTIVITY_HI_DirectoryListing(const Fw::StringBase &dirName, const Fw::StringBase &fileName, FwSizeType fileSize) const
FwIdType getIdBase() const
virtual void MoveFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &sourceFileName, const Fw::CmdStringArg &destFileName)=0
PlatformSizeType FwSizeType
virtual void MoveFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command MoveFile.
virtual void ShellCommand_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command ShellCommand.
Status receive(U8 *destination, FwSizeType capacity, BlockingType blockType, FwSizeType &actualSize, FwQueuePriorityType &priority) override
receive a message from the queue through delegate
Status
status returned from the queue send function
void log_WARNING_HI_FileSizeError(const Fw::StringBase &fileName, U32 status) const
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 ShellCommand_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
The File System component appended 2 files without error.
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
void invoke(U32 key) const
Invoke a port interface.
virtual const CHAR * toChar() const =0
Convert to a C-style char*.
void log_ACTIVITY_HI_ListDirectoryStarted(const Fw::StringBase &dirName) const
List the contents of a directory.
static constexpr FwIndexType getNum_pingOut_OutputPorts()
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
void init()
Initialization function.
Enum representing a command response.
virtual void RemoveFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RemoveFile.
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum)
virtual void schedIn_handler(FwIndexType portNum, U32 context)=0
Handler for input port schedIn.
No time base has been established (Required)
void log_ACTIVITY_HI_MoveFileStarted(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const
void addCallPort(InputCmdRegPort *callPort)
Register an input port.
The File System component created a new directory without error.
static constexpr FwIndexType getNum_eventOut_OutputPorts()
Os::Queue m_queue
queue object for active component
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
An error occurred while attempting to move a file.
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.
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].
Directory listing subdirectory entry.
FwIdType FwEventIdType
The type of an event identifier.
An error occurred while attempting to remove a file.
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
The File System component began deleting a directory.
void invoke(FwOpcodeType opCode) const
Invoke a port interface.
The File System component executed a shell command that returned status zero.
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 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.
The File System component began executing a shell command.
Failed to list directory.
void init()
Initialization function.
The File System component began deleting an existing file.
static constexpr FwIndexType getNum_schedIn_InputPorts()
void invoke(Fw::Time &time) const
Invoke a port interface.
virtual void schedIn_preMsgHook(FwIndexType portNum, U32 context)
Pre-message hook for async input port schedIn.
Serializable::SizeType getDeserializeSizeLeft() const override
Get remaining deserialization buffer size.
The File System component deleted an existing file without error.
const char * toChar() const
Convert to a C-style char*.
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke a port interface.
virtual void FileSize_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command FileSize.
FwIdType FwChanIdType
The type of a telemetry channel identifier.
void addCallPort(InputPingPort *callPort)
Register an input port.
Status send(const U8 *buffer, FwSizeType size, FwQueuePriorityType priority, BlockingType blockType) override
send a message into the queue through delegate
virtual void ShellCommand_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &command, const Fw::CmdStringArg &logFileName)=0
virtual void CreateDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CreateDirectory.
void resetDeser() override
Reset deserialization pointer to beginning of buffer.
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.
Directory listing file entry.
bool isConnected_eventOut_OutputPort(FwIndexType portNum)
void invoke(FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
Invoke a port interface.
void log_ACTIVITY_HI_FileSizeStarted(const Fw::StringBase &fileName) const
virtual ~FileManagerComponentBase()
Destroy FileManagerComponentBase object.
static constexpr FwIndexType getNum_cmdResponseOut_OutputPorts()
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
The File System component appended 2 files without error.
void init()
Initialization function.
void MoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
The File System component moved a file to a new location without error.
An error occurred while attempting to remove a directory.
uint8_t U8
8-bit unsigned integer
void schedIn_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port schedIn.
virtual void FileSize_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName)=0
Handler for command FileSize.
void log_ACTIVITY_HI_MoveFileSucceeded(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const
Command failed to deserialize.
void log_WARNING_HI_DirectoryRemoveError(const Fw::StringBase &dirName, U32 status) const
PlatformQueuePriorityType FwQueuePriorityType
The type of queue priorities used.
Channel ID for CommandsExecuted.
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.
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.
Starting directory listing.
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
PlatformIndexType FwIndexType
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
The File System component began creating a new directory.
void addCallPort(InputLogPort *callPort)
Register an input port.
static constexpr FwIndexType getNum_pingIn_InputPorts()
void init()
Initialization function.
void log_WARNING_HI_AppendFileFailed(const Fw::StringBase &source, const Fw::StringBase &target, U32 status) const
void regCommands()
Register commands with the Command Dispatcher.
An error occurred while attempting to create a directory.
static constexpr FwIndexType getNum_cmdIn_InputPorts()
RateGroupDivider component implementation.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
message sent/received okay
SerializeStatus deserializeTo(U8 &val, Endianness mode=Endianness::BIG) override
Deserialize an 8-bit unsigned integer value.
virtual void AppendFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command AppendFile.
message to exit active component task
Message will return with status when space is unavailable.
Implementation of malloc based allocator.
virtual void RemoveDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RemoveDirectory.
void log_WARNING_HI_ShellCommandFailed(const Fw::StringBase &command, U32 status) const
The File System component began moving a file to a new location.
void init()
Initialization function.
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum)
void log_WARNING_HI_DirectoryCreateError(const Fw::StringBase &dirName, U32 status) const
Append 1 file's contents to the end of another.
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
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
Perform a Linux shell command and write the output to a log file.
void log_WARNING_HI_FileRemoveError(const Fw::StringBase &fileName, U32 status) const
The File System component deleted and existing directory without error.
static constexpr FwIndexType getNum_cmdRegOut_OutputPorts()
The File System component executed a shell command that returned status non-zero. ...
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