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)
664 #if FW_ENABLE_TEXT_LOGGING == 1 667 getNum_LogText_OutputPorts()
const 718 #if FW_ENABLE_TEXT_LOGGING == 1 720 bool FileManagerComponentBase ::
721 isConnected_LogText_OutputPort(
FwIndexType portNum)
724 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
725 static_cast<FwAssertArgType>(portNum)
728 return this->m_LogText_OutputPort[portNum].isConnected();
738 static_cast<FwAssertArgType>(portNum)
741 return this->m_cmdRegOut_OutputPort[portNum].
isConnected();
749 static_cast<FwAssertArgType>(portNum)
752 return this->m_cmdResponseOut_OutputPort[portNum].
isConnected();
760 static_cast<FwAssertArgType>(portNum)
763 return this->m_eventOut_OutputPort[portNum].
isConnected();
771 static_cast<FwAssertArgType>(portNum)
774 return this->m_timeCaller_OutputPort[portNum].
isConnected();
782 static_cast<FwAssertArgType>(portNum)
785 return this->m_tlmOut_OutputPort[portNum].
isConnected();
797 static_cast<FwAssertArgType>(portNum)
800 return this->m_pingOut_OutputPort[portNum].
isConnected();
818 static_cast<FwAssertArgType>(portNum)
826 ComponentIpcSerializableBuffer msg;
830 _status = msg.serializeFrom(
831 static_cast<FwEnumStoreType>(PINGIN_PING)
835 static_cast<FwAssertArgType>(_status)
839 _status = msg.serializeFrom(portNum);
842 static_cast<FwAssertArgType>(_status)
846 _status = msg.serializeFrom(key);
849 static_cast<FwAssertArgType>(_status)
858 static_cast<FwAssertArgType>(qStatus)
871 static_cast<FwAssertArgType>(portNum)
879 ComponentIpcSerializableBuffer msg;
883 _status = msg.serializeFrom(
884 static_cast<FwEnumStoreType>(SCHEDIN_SCHED)
888 static_cast<FwAssertArgType>(_status)
892 _status = msg.serializeFrom(portNum);
895 static_cast<FwAssertArgType>(_status)
899 _status = msg.serializeFrom(context);
902 static_cast<FwAssertArgType>(_status)
911 static_cast<FwAssertArgType>(qStatus)
953 static_cast<FwAssertArgType>(portNum)
957 this->m_pingOut_OutputPort[portNum].isConnected(),
958 static_cast<FwAssertArgType>(portNum)
960 this->m_pingOut_OutputPort[portNum].
invoke(
976 FW_ASSERT(this->m_cmdResponseOut_OutputPort[0].isConnected());
977 this->m_cmdResponseOut_OutputPort[0].
invoke(opCode, cmdSeq, response);
998 ComponentIpcSerializableBuffer msg;
1002 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_CREATEDIRECTORY));
1005 static_cast<FwAssertArgType>(_status)
1011 _status = msg.serializeFrom(port);
1014 static_cast<FwAssertArgType>(_status)
1017 _status = msg.serializeFrom(opCode);
1020 static_cast<FwAssertArgType>(_status)
1023 _status = msg.serializeFrom(cmdSeq);
1026 static_cast<FwAssertArgType>(_status)
1029 _status = msg.serializeFrom(args);
1032 static_cast<FwAssertArgType>(_status)
1041 static_cast<FwAssertArgType>(qStatus)
1057 ComponentIpcSerializableBuffer msg;
1061 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_MOVEFILE));
1064 static_cast<FwAssertArgType>(_status)
1070 _status = msg.serializeFrom(port);
1073 static_cast<FwAssertArgType>(_status)
1076 _status = msg.serializeFrom(opCode);
1079 static_cast<FwAssertArgType>(_status)
1082 _status = msg.serializeFrom(cmdSeq);
1085 static_cast<FwAssertArgType>(_status)
1088 _status = msg.serializeFrom(args);
1091 static_cast<FwAssertArgType>(_status)
1100 static_cast<FwAssertArgType>(qStatus)
1116 ComponentIpcSerializableBuffer msg;
1120 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_REMOVEDIRECTORY));
1123 static_cast<FwAssertArgType>(_status)
1129 _status = msg.serializeFrom(port);
1132 static_cast<FwAssertArgType>(_status)
1135 _status = msg.serializeFrom(opCode);
1138 static_cast<FwAssertArgType>(_status)
1141 _status = msg.serializeFrom(cmdSeq);
1144 static_cast<FwAssertArgType>(_status)
1147 _status = msg.serializeFrom(args);
1150 static_cast<FwAssertArgType>(_status)
1159 static_cast<FwAssertArgType>(qStatus)
1175 ComponentIpcSerializableBuffer msg;
1179 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_REMOVEFILE));
1182 static_cast<FwAssertArgType>(_status)
1188 _status = msg.serializeFrom(port);
1191 static_cast<FwAssertArgType>(_status)
1194 _status = msg.serializeFrom(opCode);
1197 static_cast<FwAssertArgType>(_status)
1200 _status = msg.serializeFrom(cmdSeq);
1203 static_cast<FwAssertArgType>(_status)
1206 _status = msg.serializeFrom(args);
1209 static_cast<FwAssertArgType>(_status)
1218 static_cast<FwAssertArgType>(qStatus)
1234 ComponentIpcSerializableBuffer msg;
1238 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_SHELLCOMMAND));
1241 static_cast<FwAssertArgType>(_status)
1247 _status = msg.serializeFrom(port);
1250 static_cast<FwAssertArgType>(_status)
1253 _status = msg.serializeFrom(opCode);
1256 static_cast<FwAssertArgType>(_status)
1259 _status = msg.serializeFrom(cmdSeq);
1262 static_cast<FwAssertArgType>(_status)
1265 _status = msg.serializeFrom(args);
1268 static_cast<FwAssertArgType>(_status)
1277 static_cast<FwAssertArgType>(qStatus)
1293 ComponentIpcSerializableBuffer msg;
1297 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_APPENDFILE));
1300 static_cast<FwAssertArgType>(_status)
1306 _status = msg.serializeFrom(port);
1309 static_cast<FwAssertArgType>(_status)
1312 _status = msg.serializeFrom(opCode);
1315 static_cast<FwAssertArgType>(_status)
1318 _status = msg.serializeFrom(cmdSeq);
1321 static_cast<FwAssertArgType>(_status)
1324 _status = msg.serializeFrom(args);
1327 static_cast<FwAssertArgType>(_status)
1336 static_cast<FwAssertArgType>(qStatus)
1352 ComponentIpcSerializableBuffer msg;
1356 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_FILESIZE));
1359 static_cast<FwAssertArgType>(_status)
1365 _status = msg.serializeFrom(port);
1368 static_cast<FwAssertArgType>(_status)
1371 _status = msg.serializeFrom(opCode);
1374 static_cast<FwAssertArgType>(_status)
1377 _status = msg.serializeFrom(cmdSeq);
1380 static_cast<FwAssertArgType>(_status)
1383 _status = msg.serializeFrom(args);
1386 static_cast<FwAssertArgType>(_status)
1395 static_cast<FwAssertArgType>(qStatus)
1411 ComponentIpcSerializableBuffer msg;
1415 _status = msg.serializeFrom(static_cast<FwEnumStoreType>(CMD_LISTDIRECTORY));
1418 static_cast<FwAssertArgType>(_status)
1424 _status = msg.serializeFrom(port);
1427 static_cast<FwAssertArgType>(_status)
1430 _status = msg.serializeFrom(opCode);
1433 static_cast<FwAssertArgType>(_status)
1436 _status = msg.serializeFrom(cmdSeq);
1439 static_cast<FwAssertArgType>(_status)
1442 _status = msg.serializeFrom(args);
1445 static_cast<FwAssertArgType>(_status)
1454 static_cast<FwAssertArgType>(qStatus)
1566 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1567 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1575 if (this->m_eventOut_OutputPort[0].isConnected()) {
1579 #if FW_AMPCS_COMPATIBLE 1584 static_cast<FwAssertArgType>(_status)
1591 static_cast<FwAssertArgType>(_status)
1594 #if FW_AMPCS_COMPATIBLE 1597 static_cast<U8>(
sizeof(U32))
1601 static_cast<FwAssertArgType>(_status)
1607 static_cast<FwAssertArgType>(_status)
1610 this->m_eventOut_OutputPort[0].
invoke(
1619 #if FW_ENABLE_TEXT_LOGGING 1620 if (this->m_LogText_OutputPort[0].isConnected()) {
1621 #if FW_OBJECT_NAMES == 1 1622 const char* _formatString =
1623 "(%s) %s: Could not create directory %s, returned status %" PRIu32
"";
1625 const char* _formatString =
1626 "%s: Could not create directory %s, returned status %" PRIu32
"";
1633 this->m_objName.toChar(),
1635 "DirectoryCreateError ",
1640 this->m_LogText_OutputPort[0].invoke(
1658 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1659 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1667 if (this->m_eventOut_OutputPort[0].isConnected()) {
1671 #if FW_AMPCS_COMPATIBLE 1676 static_cast<FwAssertArgType>(_status)
1683 static_cast<FwAssertArgType>(_status)
1686 #if FW_AMPCS_COMPATIBLE 1689 static_cast<U8>(
sizeof(U32))
1693 static_cast<FwAssertArgType>(_status)
1699 static_cast<FwAssertArgType>(_status)
1702 this->m_eventOut_OutputPort[0].
invoke(
1711 #if FW_ENABLE_TEXT_LOGGING 1712 if (this->m_LogText_OutputPort[0].isConnected()) {
1713 #if FW_OBJECT_NAMES == 1 1714 const char* _formatString =
1715 "(%s) %s: Could not remove directory %s, returned status %" PRIu32
"";
1717 const char* _formatString =
1718 "%s: Could not remove directory %s, returned status %" PRIu32
"";
1725 this->m_objName.toChar(),
1727 "DirectoryRemoveError ",
1732 this->m_LogText_OutputPort[0].invoke(
1751 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1752 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1760 if (this->m_eventOut_OutputPort[0].isConnected()) {
1764 #if FW_AMPCS_COMPATIBLE 1769 static_cast<FwAssertArgType>(_status)
1776 static_cast<FwAssertArgType>(_status)
1782 static_cast<FwAssertArgType>(_status)
1785 #if FW_AMPCS_COMPATIBLE 1788 static_cast<U8>(
sizeof(U32))
1792 static_cast<FwAssertArgType>(_status)
1798 static_cast<FwAssertArgType>(_status)
1801 this->m_eventOut_OutputPort[0].
invoke(
1810 #if FW_ENABLE_TEXT_LOGGING 1811 if (this->m_LogText_OutputPort[0].isConnected()) {
1812 #if FW_OBJECT_NAMES == 1 1813 const char* _formatString =
1814 "(%s) %s: Could not move file %s to file %s, returned status %" PRIu32
"";
1816 const char* _formatString =
1817 "%s: Could not move file %s to file %s, returned status %" PRIu32
"";
1824 this->m_objName.toChar(),
1832 this->m_LogText_OutputPort[0].invoke(
1850 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1851 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1859 if (this->m_eventOut_OutputPort[0].isConnected()) {
1863 #if FW_AMPCS_COMPATIBLE 1868 static_cast<FwAssertArgType>(_status)
1875 static_cast<FwAssertArgType>(_status)
1878 #if FW_AMPCS_COMPATIBLE 1881 static_cast<U8>(
sizeof(U32))
1885 static_cast<FwAssertArgType>(_status)
1891 static_cast<FwAssertArgType>(_status)
1894 this->m_eventOut_OutputPort[0].
invoke(
1903 #if FW_ENABLE_TEXT_LOGGING 1904 if (this->m_LogText_OutputPort[0].isConnected()) {
1905 #if FW_OBJECT_NAMES == 1 1906 const char* _formatString =
1907 "(%s) %s: Could not remove file %s, returned status %" PRIu32
"";
1909 const char* _formatString =
1910 "%s: Could not remove file %s, returned status %" PRIu32
"";
1917 this->m_objName.toChar(),
1924 this->m_LogText_OutputPort[0].invoke(
1942 if (this->m_timeCaller_OutputPort[0].isConnected()) {
1943 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
1951 if (this->m_eventOut_OutputPort[0].isConnected()) {
1955 #if FW_AMPCS_COMPATIBLE 1960 static_cast<FwAssertArgType>(_status)
1967 static_cast<FwAssertArgType>(_status)
1970 #if FW_AMPCS_COMPATIBLE 1973 static_cast<U8>(
sizeof(U32))
1977 static_cast<FwAssertArgType>(_status)
1983 static_cast<FwAssertArgType>(_status)
1986 this->m_eventOut_OutputPort[0].
invoke(
1995 #if FW_ENABLE_TEXT_LOGGING 1996 if (this->m_LogText_OutputPort[0].isConnected()) {
1997 #if FW_OBJECT_NAMES == 1 1998 const char* _formatString =
1999 "(%s) %s: Shell command %s failed with status %" PRIu32
"";
2001 const char* _formatString =
2002 "%s: Shell command %s failed with status %" PRIu32
"";
2009 this->m_objName.toChar(),
2011 "ShellCommandFailed ",
2016 this->m_LogText_OutputPort[0].invoke(
2035 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2036 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2044 if (this->m_eventOut_OutputPort[0].isConnected()) {
2048 #if FW_AMPCS_COMPATIBLE 2053 static_cast<FwAssertArgType>(_status)
2060 static_cast<FwAssertArgType>(_status)
2066 static_cast<FwAssertArgType>(_status)
2069 #if FW_AMPCS_COMPATIBLE 2072 static_cast<U8>(
sizeof(U32))
2076 static_cast<FwAssertArgType>(_status)
2082 static_cast<FwAssertArgType>(_status)
2085 this->m_eventOut_OutputPort[0].
invoke(
2094 #if FW_ENABLE_TEXT_LOGGING 2095 if (this->m_LogText_OutputPort[0].isConnected()) {
2096 #if FW_OBJECT_NAMES == 1 2097 const char* _formatString =
2098 "(%s) %s: Appending %s onto %s failed with status %" PRIu32
"";
2100 const char* _formatString =
2101 "%s: Appending %s onto %s failed with status %" PRIu32
"";
2108 this->m_objName.toChar(),
2110 "AppendFileFailed ",
2116 this->m_LogText_OutputPort[0].invoke(
2134 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2135 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2143 if (this->m_eventOut_OutputPort[0].isConnected()) {
2147 #if FW_AMPCS_COMPATIBLE 2152 static_cast<FwAssertArgType>(_status)
2159 static_cast<FwAssertArgType>(_status)
2165 static_cast<FwAssertArgType>(_status)
2168 this->m_eventOut_OutputPort[0].
invoke(
2177 #if FW_ENABLE_TEXT_LOGGING 2178 if (this->m_LogText_OutputPort[0].isConnected()) {
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 ",
2198 this->m_LogText_OutputPort[0].invoke(
2213 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2214 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2222 if (this->m_eventOut_OutputPort[0].isConnected()) {
2226 #if FW_AMPCS_COMPATIBLE 2231 static_cast<FwAssertArgType>(_status)
2238 static_cast<FwAssertArgType>(_status)
2241 this->m_eventOut_OutputPort[0].
invoke(
2250 #if FW_ENABLE_TEXT_LOGGING 2251 if (this->m_LogText_OutputPort[0].isConnected()) {
2252 #if FW_OBJECT_NAMES == 1 2253 const char* _formatString =
2254 "(%s) %s: Shell command %s succeeded";
2256 const char* _formatString =
2257 "%s: Shell command %s succeeded";
2264 this->m_objName.toChar(),
2266 "ShellCommandSucceeded ",
2270 this->m_LogText_OutputPort[0].invoke(
2285 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2286 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2294 if (this->m_eventOut_OutputPort[0].isConnected()) {
2298 #if FW_AMPCS_COMPATIBLE 2303 static_cast<FwAssertArgType>(_status)
2310 static_cast<FwAssertArgType>(_status)
2313 this->m_eventOut_OutputPort[0].
invoke(
2322 #if FW_ENABLE_TEXT_LOGGING 2323 if (this->m_LogText_OutputPort[0].isConnected()) {
2324 #if FW_OBJECT_NAMES == 1 2325 const char* _formatString =
2326 "(%s) %s: Created directory %s successfully";
2328 const char* _formatString =
2329 "%s: Created directory %s successfully";
2336 this->m_objName.toChar(),
2338 "CreateDirectorySucceeded ",
2342 this->m_LogText_OutputPort[0].invoke(
2357 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2358 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2366 if (this->m_eventOut_OutputPort[0].isConnected()) {
2370 #if FW_AMPCS_COMPATIBLE 2375 static_cast<FwAssertArgType>(_status)
2382 static_cast<FwAssertArgType>(_status)
2385 this->m_eventOut_OutputPort[0].
invoke(
2394 #if FW_ENABLE_TEXT_LOGGING 2395 if (this->m_LogText_OutputPort[0].isConnected()) {
2396 #if FW_OBJECT_NAMES == 1 2397 const char* _formatString =
2398 "(%s) %s: Removed directory %s successfully";
2400 const char* _formatString =
2401 "%s: Removed directory %s successfully";
2408 this->m_objName.toChar(),
2410 "RemoveDirectorySucceeded ",
2414 this->m_LogText_OutputPort[0].invoke(
2432 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2433 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2441 if (this->m_eventOut_OutputPort[0].isConnected()) {
2445 #if FW_AMPCS_COMPATIBLE 2450 static_cast<FwAssertArgType>(_status)
2457 static_cast<FwAssertArgType>(_status)
2463 static_cast<FwAssertArgType>(_status)
2466 this->m_eventOut_OutputPort[0].
invoke(
2475 #if FW_ENABLE_TEXT_LOGGING 2476 if (this->m_LogText_OutputPort[0].isConnected()) {
2477 #if FW_OBJECT_NAMES == 1 2478 const char* _formatString =
2479 "(%s) %s: Moved file %s to file %s successfully";
2481 const char* _formatString =
2482 "%s: Moved file %s to file %s successfully";
2489 this->m_objName.toChar(),
2491 "MoveFileSucceeded ",
2496 this->m_LogText_OutputPort[0].invoke(
2511 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2512 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2520 if (this->m_eventOut_OutputPort[0].isConnected()) {
2524 #if FW_AMPCS_COMPATIBLE 2529 static_cast<FwAssertArgType>(_status)
2536 static_cast<FwAssertArgType>(_status)
2539 this->m_eventOut_OutputPort[0].
invoke(
2548 #if FW_ENABLE_TEXT_LOGGING 2549 if (this->m_LogText_OutputPort[0].isConnected()) {
2550 #if FW_OBJECT_NAMES == 1 2551 const char* _formatString =
2552 "(%s) %s: Removed file %s successfully";
2554 const char* _formatString =
2555 "%s: Removed file %s successfully";
2562 this->m_objName.toChar(),
2564 "RemoveFileSucceeded ",
2568 this->m_LogText_OutputPort[0].invoke(
2586 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2587 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2595 if (this->m_eventOut_OutputPort[0].isConnected()) {
2599 #if FW_AMPCS_COMPATIBLE 2604 static_cast<FwAssertArgType>(_status)
2611 static_cast<FwAssertArgType>(_status)
2617 static_cast<FwAssertArgType>(_status)
2620 this->m_eventOut_OutputPort[0].
invoke(
2629 #if FW_ENABLE_TEXT_LOGGING 2630 if (this->m_LogText_OutputPort[0].isConnected()) {
2631 #if FW_OBJECT_NAMES == 1 2632 const char* _formatString =
2633 "(%s) %s: Appending file %s to the end of %s...";
2635 const char* _formatString =
2636 "%s: Appending file %s to the end of %s...";
2643 this->m_objName.toChar(),
2645 "AppendFileStarted ",
2650 this->m_LogText_OutputPort[0].invoke(
2665 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2666 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2674 if (this->m_eventOut_OutputPort[0].isConnected()) {
2678 #if FW_AMPCS_COMPATIBLE 2683 static_cast<FwAssertArgType>(_status)
2690 static_cast<FwAssertArgType>(_status)
2693 this->m_eventOut_OutputPort[0].
invoke(
2702 #if FW_ENABLE_TEXT_LOGGING 2703 if (this->m_LogText_OutputPort[0].isConnected()) {
2704 #if FW_OBJECT_NAMES == 1 2705 const char* _formatString =
2706 "(%s) %s: Running shell command %s...";
2708 const char* _formatString =
2709 "%s: Running shell command %s...";
2716 this->m_objName.toChar(),
2718 "ShellCommandStarted ",
2722 this->m_LogText_OutputPort[0].invoke(
2737 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2738 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2746 if (this->m_eventOut_OutputPort[0].isConnected()) {
2750 #if FW_AMPCS_COMPATIBLE 2755 static_cast<FwAssertArgType>(_status)
2762 static_cast<FwAssertArgType>(_status)
2765 this->m_eventOut_OutputPort[0].
invoke(
2774 #if FW_ENABLE_TEXT_LOGGING 2775 if (this->m_LogText_OutputPort[0].isConnected()) {
2776 #if FW_OBJECT_NAMES == 1 2777 const char* _formatString =
2778 "(%s) %s: Creating directory %s...";
2780 const char* _formatString =
2781 "%s: Creating directory %s...";
2788 this->m_objName.toChar(),
2790 "CreateDirectoryStarted ",
2794 this->m_LogText_OutputPort[0].invoke(
2809 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2810 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2818 if (this->m_eventOut_OutputPort[0].isConnected()) {
2822 #if FW_AMPCS_COMPATIBLE 2827 static_cast<FwAssertArgType>(_status)
2834 static_cast<FwAssertArgType>(_status)
2837 this->m_eventOut_OutputPort[0].
invoke(
2846 #if FW_ENABLE_TEXT_LOGGING 2847 if (this->m_LogText_OutputPort[0].isConnected()) {
2848 #if FW_OBJECT_NAMES == 1 2849 const char* _formatString =
2850 "(%s) %s: Removing directory %s...";
2852 const char* _formatString =
2853 "%s: Removing directory %s...";
2860 this->m_objName.toChar(),
2862 "RemoveDirectoryStarted ",
2866 this->m_LogText_OutputPort[0].invoke(
2884 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2885 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2893 if (this->m_eventOut_OutputPort[0].isConnected()) {
2897 #if FW_AMPCS_COMPATIBLE 2902 static_cast<FwAssertArgType>(_status)
2909 static_cast<FwAssertArgType>(_status)
2915 static_cast<FwAssertArgType>(_status)
2918 this->m_eventOut_OutputPort[0].
invoke(
2927 #if FW_ENABLE_TEXT_LOGGING 2928 if (this->m_LogText_OutputPort[0].isConnected()) {
2929 #if FW_OBJECT_NAMES == 1 2930 const char* _formatString =
2931 "(%s) %s: Moving file %s to file %s...";
2933 const char* _formatString =
2934 "%s: Moving file %s to file %s...";
2941 this->m_objName.toChar(),
2948 this->m_LogText_OutputPort[0].invoke(
2963 if (this->m_timeCaller_OutputPort[0].isConnected()) {
2964 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
2972 if (this->m_eventOut_OutputPort[0].isConnected()) {
2976 #if FW_AMPCS_COMPATIBLE 2981 static_cast<FwAssertArgType>(_status)
2988 static_cast<FwAssertArgType>(_status)
2991 this->m_eventOut_OutputPort[0].
invoke(
3000 #if FW_ENABLE_TEXT_LOGGING 3001 if (this->m_LogText_OutputPort[0].isConnected()) {
3002 #if FW_OBJECT_NAMES == 1 3003 const char* _formatString =
3004 "(%s) %s: Removing file %s...";
3006 const char* _formatString =
3007 "%s: Removing file %s...";
3014 this->m_objName.toChar(),
3016 "RemoveFileStarted ",
3020 this->m_LogText_OutputPort[0].invoke(
3038 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3039 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3047 if (this->m_eventOut_OutputPort[0].isConnected()) {
3051 #if FW_AMPCS_COMPATIBLE 3056 static_cast<FwAssertArgType>(_status)
3063 static_cast<FwAssertArgType>(_status)
3066 #if FW_AMPCS_COMPATIBLE 3073 static_cast<FwAssertArgType>(_status)
3079 static_cast<FwAssertArgType>(_status)
3082 this->m_eventOut_OutputPort[0].
invoke(
3091 #if FW_ENABLE_TEXT_LOGGING 3092 if (this->m_LogText_OutputPort[0].isConnected()) {
3093 #if FW_OBJECT_NAMES == 1 3094 const char* _formatString =
3095 "(%s) %s: The size of file %s is %" PRIu64
" B";
3097 const char* _formatString =
3098 "%s: The size of file %s is %" PRIu64
" B";
3105 this->m_objName.toChar(),
3107 "FileSizeSucceeded ",
3112 this->m_LogText_OutputPort[0].invoke(
3130 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3131 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3139 if (this->m_eventOut_OutputPort[0].isConnected()) {
3143 #if FW_AMPCS_COMPATIBLE 3148 static_cast<FwAssertArgType>(_status)
3155 static_cast<FwAssertArgType>(_status)
3158 #if FW_AMPCS_COMPATIBLE 3161 static_cast<U8>(
sizeof(U32))
3165 static_cast<FwAssertArgType>(_status)
3171 static_cast<FwAssertArgType>(_status)
3174 this->m_eventOut_OutputPort[0].
invoke(
3183 #if FW_ENABLE_TEXT_LOGGING 3184 if (this->m_LogText_OutputPort[0].isConnected()) {
3185 #if FW_OBJECT_NAMES == 1 3186 const char* _formatString =
3187 "(%s) %s: Failed to get the size of file %s, returned status %" PRIu32
"";
3189 const char* _formatString =
3190 "%s: Failed to get the size of file %s, returned status %" PRIu32
"";
3197 this->m_objName.toChar(),
3204 this->m_LogText_OutputPort[0].invoke(
3219 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3220 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3228 if (this->m_eventOut_OutputPort[0].isConnected()) {
3232 #if FW_AMPCS_COMPATIBLE 3237 static_cast<FwAssertArgType>(_status)
3244 static_cast<FwAssertArgType>(_status)
3247 this->m_eventOut_OutputPort[0].
invoke(
3256 #if FW_ENABLE_TEXT_LOGGING 3257 if (this->m_LogText_OutputPort[0].isConnected()) {
3258 #if FW_OBJECT_NAMES == 1 3259 const char* _formatString =
3260 "(%s) %s: Checking size of file %s...";
3262 const char* _formatString =
3263 "%s: Checking size of file %s...";
3270 this->m_objName.toChar(),
3276 this->m_LogText_OutputPort[0].invoke(
3291 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3292 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3300 if (this->m_eventOut_OutputPort[0].isConnected()) {
3304 #if FW_AMPCS_COMPATIBLE 3309 static_cast<FwAssertArgType>(_status)
3316 static_cast<FwAssertArgType>(_status)
3319 this->m_eventOut_OutputPort[0].
invoke(
3328 #if FW_ENABLE_TEXT_LOGGING 3329 if (this->m_LogText_OutputPort[0].isConnected()) {
3330 #if FW_OBJECT_NAMES == 1 3331 const char* _formatString =
3332 "(%s) %s: Listing contents of directory %s...";
3334 const char* _formatString =
3335 "%s: Listing contents of directory %s...";
3342 this->m_objName.toChar(),
3344 "ListDirectoryStarted ",
3348 this->m_LogText_OutputPort[0].invoke(
3366 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3367 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3375 if (this->m_eventOut_OutputPort[0].isConnected()) {
3379 #if FW_AMPCS_COMPATIBLE 3384 static_cast<FwAssertArgType>(_status)
3391 static_cast<FwAssertArgType>(_status)
3394 #if FW_AMPCS_COMPATIBLE 3397 static_cast<U8>(
sizeof(U32))
3401 static_cast<FwAssertArgType>(_status)
3407 static_cast<FwAssertArgType>(_status)
3410 this->m_eventOut_OutputPort[0].
invoke(
3419 #if FW_ENABLE_TEXT_LOGGING 3420 if (this->m_LogText_OutputPort[0].isConnected()) {
3421 #if FW_OBJECT_NAMES == 1 3422 const char* _formatString =
3423 "(%s) %s: Directory %s contains %" PRIu32
" files";
3425 const char* _formatString =
3426 "%s: Directory %s contains %" PRIu32
" files";
3433 this->m_objName.toChar(),
3435 "ListDirectorySucceeded ",
3440 this->m_LogText_OutputPort[0].invoke(
3458 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3459 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3467 if (this->m_eventOut_OutputPort[0].isConnected()) {
3471 #if FW_AMPCS_COMPATIBLE 3476 static_cast<FwAssertArgType>(_status)
3483 static_cast<FwAssertArgType>(_status)
3486 #if FW_AMPCS_COMPATIBLE 3489 static_cast<U8>(
sizeof(U32))
3493 static_cast<FwAssertArgType>(_status)
3499 static_cast<FwAssertArgType>(_status)
3502 this->m_eventOut_OutputPort[0].
invoke(
3511 #if FW_ENABLE_TEXT_LOGGING 3512 if (this->m_LogText_OutputPort[0].isConnected()) {
3513 #if FW_OBJECT_NAMES == 1 3514 const char* _formatString =
3515 "(%s) %s: Failed to list directory %s, returned status %" PRIu32
"";
3517 const char* _formatString =
3518 "%s: Failed to list directory %s, returned status %" PRIu32
"";
3525 this->m_objName.toChar(),
3527 "ListDirectoryError ",
3532 this->m_LogText_OutputPort[0].invoke(
3551 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3552 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3560 if (this->m_eventOut_OutputPort[0].isConnected()) {
3564 #if FW_AMPCS_COMPATIBLE 3569 static_cast<FwAssertArgType>(_status)
3576 static_cast<FwAssertArgType>(_status)
3582 static_cast<FwAssertArgType>(_status)
3585 #if FW_AMPCS_COMPATIBLE 3592 static_cast<FwAssertArgType>(_status)
3598 static_cast<FwAssertArgType>(_status)
3601 this->m_eventOut_OutputPort[0].
invoke(
3610 #if FW_ENABLE_TEXT_LOGGING 3611 if (this->m_LogText_OutputPort[0].isConnected()) {
3612 #if FW_OBJECT_NAMES == 1 3613 const char* _formatString =
3614 "(%s) %s: Directory %s: %s (%" PRIu64
" bytes)";
3616 const char* _formatString =
3617 "%s: Directory %s: %s (%" PRIu64
" bytes)";
3624 this->m_objName.toChar(),
3626 "DirectoryListing ",
3632 this->m_LogText_OutputPort[0].invoke(
3650 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3651 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
3659 if (this->m_eventOut_OutputPort[0].isConnected()) {
3663 #if FW_AMPCS_COMPATIBLE 3668 static_cast<FwAssertArgType>(_status)
3675 static_cast<FwAssertArgType>(_status)
3681 static_cast<FwAssertArgType>(_status)
3684 this->m_eventOut_OutputPort[0].
invoke(
3693 #if FW_ENABLE_TEXT_LOGGING 3694 if (this->m_LogText_OutputPort[0].isConnected()) {
3695 #if FW_OBJECT_NAMES == 1 3696 const char* _formatString =
3697 "(%s) %s: Directory %s: %s";
3699 const char* _formatString =
3700 "%s: Directory %s: %s";
3707 this->m_objName.toChar(),
3709 "DirectoryListingSubdir ",
3714 this->m_LogText_OutputPort[0].invoke(
3734 if (this->m_tlmOut_OutputPort[0].isConnected()) {
3736 this->m_timeCaller_OutputPort[0].isConnected() &&
3739 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
3746 static_cast<FwAssertArgType>(_stat)
3753 this->m_tlmOut_OutputPort[0].
invoke(
3767 if (this->m_tlmOut_OutputPort[0].isConnected()) {
3769 this->m_timeCaller_OutputPort[0].isConnected() &&
3772 this->m_timeCaller_OutputPort[0].
invoke(_tlmTime);
3779 static_cast<FwAssertArgType>(_stat)
3786 this->m_tlmOut_OutputPort[0].
invoke(
3801 if (this->m_timeCaller_OutputPort[0].isConnected()) {
3803 this->m_timeCaller_OutputPort[0].
invoke(_time);
3818 ComponentIpcSerializableBuffer _msg;
3828 static_cast<FwAssertArgType>(_msgStatus)
3838 static_cast<FwAssertArgType>(_deserStatus)
3841 MsgTypeEnum _msgType =
static_cast<MsgTypeEnum
>(_desMsg);
3843 if (_msgType == FILEMANAGER_COMPONENT_EXIT) {
3848 _deserStatus = _msg.deserializeTo(portNum);
3851 static_cast<FwAssertArgType>(_deserStatus)
3859 _deserStatus = _msg.deserializeTo(key);
3862 static_cast<FwAssertArgType>(_deserStatus)
3874 case SCHEDIN_SCHED: {
3877 _deserStatus = _msg.deserializeTo(context);
3880 static_cast<FwAssertArgType>(_deserStatus)
3892 case CMD_CREATEDIRECTORY: {
3895 _deserStatus = _msg.deserializeTo(_opCode);
3898 static_cast<FwAssertArgType>(_deserStatus)
3903 _deserStatus = _msg.deserializeTo(_cmdSeq);
3906 static_cast<FwAssertArgType>(_deserStatus)
3911 _deserStatus = _msg.deserializeTo(args);
3914 static_cast<FwAssertArgType>(_deserStatus)
3924 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3937 #if FW_CMD_CHECK_RESIDUAL 3939 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
3957 case CMD_MOVEFILE: {
3960 _deserStatus = _msg.deserializeTo(_opCode);
3963 static_cast<FwAssertArgType>(_deserStatus)
3968 _deserStatus = _msg.deserializeTo(_cmdSeq);
3971 static_cast<FwAssertArgType>(_deserStatus)
3976 _deserStatus = _msg.deserializeTo(args);
3979 static_cast<FwAssertArgType>(_deserStatus)
3989 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4004 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4017 #if FW_CMD_CHECK_RESIDUAL 4019 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4038 case CMD_REMOVEDIRECTORY: {
4041 _deserStatus = _msg.deserializeTo(_opCode);
4044 static_cast<FwAssertArgType>(_deserStatus)
4049 _deserStatus = _msg.deserializeTo(_cmdSeq);
4052 static_cast<FwAssertArgType>(_deserStatus)
4057 _deserStatus = _msg.deserializeTo(args);
4060 static_cast<FwAssertArgType>(_deserStatus)
4070 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4083 #if FW_CMD_CHECK_RESIDUAL 4085 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4103 case CMD_REMOVEFILE: {
4106 _deserStatus = _msg.deserializeTo(_opCode);
4109 static_cast<FwAssertArgType>(_deserStatus)
4114 _deserStatus = _msg.deserializeTo(_cmdSeq);
4117 static_cast<FwAssertArgType>(_deserStatus)
4122 _deserStatus = _msg.deserializeTo(args);
4125 static_cast<FwAssertArgType>(_deserStatus)
4135 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4150 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4163 #if FW_CMD_CHECK_RESIDUAL 4165 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4184 case CMD_SHELLCOMMAND: {
4187 _deserStatus = _msg.deserializeTo(_opCode);
4190 static_cast<FwAssertArgType>(_deserStatus)
4195 _deserStatus = _msg.deserializeTo(_cmdSeq);
4198 static_cast<FwAssertArgType>(_deserStatus)
4203 _deserStatus = _msg.deserializeTo(args);
4206 static_cast<FwAssertArgType>(_deserStatus)
4216 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4231 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4244 #if FW_CMD_CHECK_RESIDUAL 4246 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4265 case CMD_APPENDFILE: {
4268 _deserStatus = _msg.deserializeTo(_opCode);
4271 static_cast<FwAssertArgType>(_deserStatus)
4276 _deserStatus = _msg.deserializeTo(_cmdSeq);
4279 static_cast<FwAssertArgType>(_deserStatus)
4284 _deserStatus = _msg.deserializeTo(args);
4287 static_cast<FwAssertArgType>(_deserStatus)
4297 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4312 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4325 #if FW_CMD_CHECK_RESIDUAL 4327 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4346 case CMD_FILESIZE: {
4349 _deserStatus = _msg.deserializeTo(_opCode);
4352 static_cast<FwAssertArgType>(_deserStatus)
4357 _deserStatus = _msg.deserializeTo(_cmdSeq);
4360 static_cast<FwAssertArgType>(_deserStatus)
4365 _deserStatus = _msg.deserializeTo(args);
4368 static_cast<FwAssertArgType>(_deserStatus)
4378 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4391 #if FW_CMD_CHECK_RESIDUAL 4393 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4411 case CMD_LISTDIRECTORY: {
4414 _deserStatus = _msg.deserializeTo(_opCode);
4417 static_cast<FwAssertArgType>(_deserStatus)
4422 _deserStatus = _msg.deserializeTo(_cmdSeq);
4425 static_cast<FwAssertArgType>(_deserStatus)
4430 _deserStatus = _msg.deserializeTo(args);
4433 static_cast<FwAssertArgType>(_deserStatus)
4443 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4456 #if FW_CMD_CHECK_RESIDUAL 4458 if (this->m_cmdResponseOut_OutputPort[0].isConnected()) {
4486 void FileManagerComponentBase ::
4498 const U32 idBase = callComp->
getIdBase();
4499 FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
4502 switch (opCode - idBase) {
4504 compPtr->CreateDirectory_cmdHandlerBase(
4513 compPtr->MoveFile_cmdHandlerBase(
4522 compPtr->RemoveDirectory_cmdHandlerBase(
4531 compPtr->RemoveFile_cmdHandlerBase(
4540 compPtr->ShellCommand_cmdHandlerBase(
4549 compPtr->AppendFile_cmdHandlerBase(
4558 compPtr->FileSize_cmdHandlerBase(
4567 compPtr->ListDirectory_cmdHandlerBase(
4581 void FileManagerComponentBase ::
4590 compPtr->pingIn_handlerBase(
4596 void FileManagerComponentBase ::
4605 compPtr->schedIn_handlerBase(
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
Serialization/Deserialization operation was successful.
void addCallPort(InputTimePort *callPort)
Register an input port.
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.
The File System component created a new directory without error.
virtual void ListDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command ListDirectory.
void log_ACTIVITY_HI_RemoveDirectorySucceeded(const Fw::StringBase &dirName) const
The File System component moved a file to a new location without error.
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
#define FW_LOG_STRING_MAX_SIZE
Max size of log string parameter type.
FwIndexType getNum_cmdRegOut_OutputPorts() const
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
void FileSize_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Base-class handler function for command FileSize.
void log_ACTIVITY_HI_FileSizeSucceeded(const Fw::StringBase &fileName, FwSizeType size) const
The File System component appended 2 files without error.
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)
FwIndexType getNum_pingIn_InputPorts() const
void invoke(U32 key) const
Invoke a port interface.
void log_ACTIVITY_HI_ListDirectoryStarted(const Fw::StringBase &dirName) const
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
Perform a Linux shell command and write the output to a log file.
void init()
Initialization function.
Enum representing a command response.
virtual void RemoveFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RemoveFile.
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum)
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.
Remove a directory, which must be empty.
Os::Queue m_queue
queue object for active component
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
void log_ACTIVITY_HI_AppendFileSucceeded(const Fw::StringBase &source, const Fw::StringBase &target) const
FileManagerComponentBase(const char *compName="")
Construct FileManagerComponentBase object.
void addCallPort(InputTlmPort *callPort)
Register an input port.
void 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].
FwIndexType getNum_eventOut_OutputPorts() const
FwIdType FwEventIdType
The type of an event identifier.
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
List the contents of a directory.
void invoke(FwOpcodeType opCode) const
Invoke a port interface.
An error occurred while attempting to create a directory.
FwIndexType getNum_cmdResponseOut_OutputPorts() const
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) ...
Serializable::SizeType getBuffLeft() const
returns how much deserialization buffer is left
void RemoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void init()
Initialization function.
void log_ACTIVITY_HI_RemoveDirectoryStarted(const Fw::StringBase &dirName) const
Os::Queue::Status createQueue(FwSizeType depth, FwSizeType msgSize)
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
void log_ACTIVITY_HI_ShellCommandSucceeded(const Fw::StringBase &command) const
Directory listing subdirectory entry.
void RemoveDirectory_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
#define FW_MIN(a, b)
MIN macro.
FwIndexType getNum_timeCaller_OutputPorts() const
void init()
Initialization function.
void invoke(Fw::Time &time) const
Invoke a port interface.
virtual void schedIn_preMsgHook(FwIndexType portNum, U32 context)
Pre-message hook for async input port schedIn.
const char * toChar() const
void invoke(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdResponse &response) const
Invoke a port interface.
virtual void FileSize_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command FileSize.
FwIdType FwChanIdType
The type of a telemetry channel identifier.
void addCallPort(InputPingPort *callPort)
Register an input port.
The File System component deleted and existing directory without error.
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.
FwIndexType getNum_tlmOut_OutputPorts() const
void resetDeser()
reset deserialization to beginning
An error occurred while attempting to remove a file.
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.
The File System component began deleting an existing file.
bool isConnected_eventOut_OutputPort(FwIndexType portNum)
void invoke(FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val) const
Invoke a port interface.
The File System component appended 2 files without error.
void log_ACTIVITY_HI_FileSizeStarted(const Fw::StringBase &fileName) const
FwIndexType getNum_schedIn_InputPorts() const
virtual ~FileManagerComponentBase()
Destroy FileManagerComponentBase object.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
The File System component returned status non-zero when trying to append 2 files together.
void MoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
The File System component executed a shell command that returned status non-zero. ...
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.
FwIndexType getNum_cmdIn_InputPorts() const
void log_ACTIVITY_HI_MoveFileSucceeded(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const
SerializeStatus serializeTo(SerializeBufferBase &buffer) const override
serialize contents to buffer
Command failed to deserialize.
void log_WARNING_HI_DirectoryRemoveError(const Fw::StringBase &dirName, U32 status) const
Starting directory listing.
PlatformQueuePriorityType FwQueuePriorityType
The type of queue priorities used.
Important informational events.
The File System component began executing a shell command.
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port interface.
void log_ACTIVITY_HI_AppendFileStarted(const Fw::StringBase &source, const Fw::StringBase &target) const
The File System component began creating a new directory.
void tlmWrite_Errors(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
Directory listing file entry.
A message was sent requesting an exit of the loop.
void log_ACTIVITY_HI_RemoveFileStarted(const Fw::StringBase &fileName) const
Failed to list directory.
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
void log_ACTIVITY_HI_ShellCommandStarted(const Fw::StringBase &command) const
The File System component executed a shell command that returned status zero.
PlatformIndexType FwIndexType
Channel ID for CommandsExecuted.
An error occurred while attempting to move a file.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void addCallPort(InputLogPort *callPort)
Register an input port.
void init()
Initialization function.
Append 1 file's contents to the end of another.
void log_WARNING_HI_AppendFileFailed(const Fw::StringBase &source, const Fw::StringBase &target, U32 status) const
void regCommands()
Register commands with the Command Dispatcher.
RateGroupDivider component implementation.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
message sent/received okay
virtual void AppendFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command AppendFile.
SerializeStatus serializeFrom(U8 val)
serialize 8-bit unsigned int
The File System component deleted an existing file without error.
Message will return with status when space is unavailable.
virtual void RemoveDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RemoveDirectory.
FwIndexType getNum_pingOut_OutputPorts() const
void log_WARNING_HI_ShellCommandFailed(const Fw::StringBase &command, U32 status) const
void init()
Initialization function.
message to exit active component task
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum)
void log_WARNING_HI_DirectoryCreateError(const Fw::StringBase &dirName, U32 status) const
The File System component began moving a file to a new location.
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)
An error occurred while attempting to remove a directory.
virtual void RemoveDirectory_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &dirName)=0
The File System component began deleting a directory.
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
void log_WARNING_HI_FileRemoveError(const Fw::StringBase &fileName, U32 status) const
virtual const CHAR * toChar() const =0
Directory listing completed successfully.
void addCallPort(InputCmdResponsePort *callPort)
Register an input port.
virtual void AppendFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &source, const Fw::CmdStringArg &target)=0
SerializeStatus deserializeTo(U8 &val)
deserialize 8-bit unsigned int