F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FileManagerComponentAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FileManagerComponentAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for FileManager component base class
5 // ======================================================================
6 
7 #ifndef Svc_FileManagerComponentAc_HPP
8 #define Svc_FileManagerComponentAc_HPP
9 
10 #include <atomic>
11 
12 #include "Fw/Cmd/CmdPortAc.hpp"
13 #include "Fw/Cmd/CmdRegPortAc.hpp"
15 #include "Fw/Cmd/CmdString.hpp"
17 #include "Fw/FPrimeBasicTypes.hpp"
18 #include "Fw/Log/LogPortAc.hpp"
19 #include "Fw/Log/LogString.hpp"
20 #if FW_ENABLE_TEXT_LOGGING == 1
21 #include "Fw/Log/LogTextPortAc.hpp"
22 #endif
25 #include "Fw/Time/TimePortAc.hpp"
26 #include "Fw/Tlm/TlmPortAc.hpp"
27 #include "Fw/Tlm/TlmString.hpp"
28 #include "Svc/Ping/PingPortAc.hpp"
31 
32 namespace Svc {
33 
40  {
41 
42  // ----------------------------------------------------------------------
43  // Friend classes
44  // ----------------------------------------------------------------------
45 
47  friend class FileManagerTesterBase;
49  friend class FileManagerTester;
50 
51  protected:
52 
53  // ----------------------------------------------------------------------
54  // Constants
55  // ----------------------------------------------------------------------
56 
58  enum {
60  };
61 
63  enum {
66  };
67 
69  enum {
76  };
77 
79  enum {
81  };
82 
84  enum {
93  };
94 
96  enum {
123  };
124 
126  enum {
129  };
130 
131  public:
132 
133  // ----------------------------------------------------------------------
134  // Component initialization
135  // ----------------------------------------------------------------------
136 
138  void init(
139  FwSizeType queueDepth,
140  FwEnumStoreType instance = 0
141  );
142 
143  public:
144 
145  // ----------------------------------------------------------------------
146  // Getters for special input ports
147  // ----------------------------------------------------------------------
148 
153  FwIndexType portNum
154  );
155 
156  public:
157 
158  // ----------------------------------------------------------------------
159  // Getters for typed input ports
160  // ----------------------------------------------------------------------
161 
166  FwIndexType portNum
167  );
168 
173  FwIndexType portNum
174  );
175 
176  public:
177 
178  // ----------------------------------------------------------------------
179  // Connect input ports to special output ports
180  // ----------------------------------------------------------------------
181 
182 #if FW_ENABLE_TEXT_LOGGING == 1
183 
185  void set_LogText_OutputPort(
186  FwIndexType portNum,
187  Fw::InputLogTextPort* port
188  );
189 
190 #endif
191 
194  FwIndexType portNum,
195  Fw::InputCmdRegPort* port
196  );
197 
200  FwIndexType portNum,
202  );
203 
206  FwIndexType portNum,
207  Fw::InputLogPort* port
208  );
209 
212  FwIndexType portNum,
213  Fw::InputTimePort* port
214  );
215 
218  FwIndexType portNum,
219  Fw::InputTlmPort* port
220  );
221 
222  public:
223 
224  // ----------------------------------------------------------------------
225  // Connect typed input ports to typed output ports
226  // ----------------------------------------------------------------------
227 
230  FwIndexType portNum,
231  Svc::InputPingPort* port
232  );
233 
234 #if FW_PORT_SERIALIZATION
235 
236  public:
237 
238  // ----------------------------------------------------------------------
239  // Connect serial input ports to special output ports
240  // ----------------------------------------------------------------------
241 
242 #if FW_ENABLE_TEXT_LOGGING == 1
243 
245  void set_LogText_OutputPort(
246  FwIndexType portNum,
247  Fw::InputSerializePort* port
248  );
249 
250 #endif
251 
254  FwIndexType portNum,
255  Fw::InputSerializePort* port
256  );
257 
260  FwIndexType portNum,
261  Fw::InputSerializePort* port
262  );
263 
266  FwIndexType portNum,
267  Fw::InputSerializePort* port
268  );
269 
272  FwIndexType portNum,
273  Fw::InputSerializePort* port
274  );
275 
278  FwIndexType portNum,
279  Fw::InputSerializePort* port
280  );
281 
282 #endif
283 
284 #if FW_PORT_SERIALIZATION
285 
286  public:
287 
288  // ----------------------------------------------------------------------
289  // Connect serial input ports to typed output ports
290  // ----------------------------------------------------------------------
291 
294  FwIndexType portNum,
295  Fw::InputSerializePort* port
296  );
297 
298 #endif
299 
300  public:
301 
302  // ----------------------------------------------------------------------
303  // Command registration
304  // ----------------------------------------------------------------------
305 
309  void regCommands();
310 
311  protected:
312 
313  // ----------------------------------------------------------------------
314  // Component construction and destruction
315  // ----------------------------------------------------------------------
316 
319  const char* compName = ""
320  );
321 
323  virtual ~FileManagerComponentBase();
324 
325  protected:
326 
327  // ----------------------------------------------------------------------
328  // Getters for numbers of special input ports
329  // ----------------------------------------------------------------------
330 
335 
336  protected:
337 
338  // ----------------------------------------------------------------------
339  // Getters for numbers of typed input ports
340  // ----------------------------------------------------------------------
341 
346 
351 
352  protected:
353 
354  // ----------------------------------------------------------------------
355  // Getters for numbers of special output ports
356  // ----------------------------------------------------------------------
357 
358 #if FW_ENABLE_TEXT_LOGGING == 1
359 
363  FwIndexType getNum_LogText_OutputPorts() const;
364 
365 #endif
366 
371 
376 
381 
386 
391 
392  protected:
393 
394  // ----------------------------------------------------------------------
395  // Getters for numbers of typed output ports
396  // ----------------------------------------------------------------------
397 
402 
403  protected:
404 
405  // ----------------------------------------------------------------------
406  // Connection status queries for special output ports
407  // ----------------------------------------------------------------------
408 
409 #if FW_ENABLE_TEXT_LOGGING == 1
410 
414  bool isConnected_LogText_OutputPort(
415  FwIndexType portNum
416  );
417 
418 #endif
419 
424  FwIndexType portNum
425  );
426 
431  FwIndexType portNum
432  );
433 
438  FwIndexType portNum
439  );
440 
445  FwIndexType portNum
446  );
447 
452  FwIndexType portNum
453  );
454 
455  protected:
456 
457  // ----------------------------------------------------------------------
458  // Connection status queries for typed output ports
459  // ----------------------------------------------------------------------
460 
465  FwIndexType portNum
466  );
467 
468  protected:
469 
470  // ----------------------------------------------------------------------
471  // Handlers to implement for typed input ports
472  // ----------------------------------------------------------------------
473 
475  virtual void pingIn_handler(
476  FwIndexType portNum,
477  U32 key
478  ) = 0;
479 
481  virtual void schedIn_handler(
482  FwIndexType portNum,
483  U32 context
484  ) = 0;
485 
486  protected:
487 
488  // ----------------------------------------------------------------------
489  // Port handler base-class functions for typed input ports
490  //
491  // Call these functions directly to bypass the corresponding ports
492  // ----------------------------------------------------------------------
493 
495  void pingIn_handlerBase(
496  FwIndexType portNum,
497  U32 key
498  );
499 
501  void schedIn_handlerBase(
502  FwIndexType portNum,
503  U32 context
504  );
505 
506  protected:
507 
508  // ----------------------------------------------------------------------
509  // Pre-message hooks for typed async input ports
510  //
511  // Each of these functions is invoked just before processing a message
512  // on the corresponding port. By default, they do nothing. You can
513  // override them to provide specific pre-message behavior.
514  // ----------------------------------------------------------------------
515 
517  virtual void pingIn_preMsgHook(
518  FwIndexType portNum,
519  U32 key
520  );
521 
523  virtual void schedIn_preMsgHook(
524  FwIndexType portNum,
525  U32 context
526  );
527 
528  protected:
529 
530  // ----------------------------------------------------------------------
531  // Invocation functions for typed output ports
532  // ----------------------------------------------------------------------
533 
535  void pingOut_out(
536  FwIndexType portNum,
537  U32 key
538  );
539 
540  protected:
541 
542  // ----------------------------------------------------------------------
543  // Command response
544  // ----------------------------------------------------------------------
545 
547  void cmdResponse_out(
548  FwOpcodeType opCode,
549  U32 cmdSeq,
550  Fw::CmdResponse response
551  );
552 
553  protected:
554 
555  // ----------------------------------------------------------------------
556  // Command handlers to implement
557  // ----------------------------------------------------------------------
558 
562  virtual void CreateDirectory_cmdHandler(
563  FwOpcodeType opCode,
564  U32 cmdSeq,
565  const Fw::CmdStringArg& dirName
566  ) = 0;
567 
571  virtual void MoveFile_cmdHandler(
572  FwOpcodeType opCode,
573  U32 cmdSeq,
574  const Fw::CmdStringArg& sourceFileName,
575  const Fw::CmdStringArg& destFileName
576  ) = 0;
577 
581  virtual void RemoveDirectory_cmdHandler(
582  FwOpcodeType opCode,
583  U32 cmdSeq,
584  const Fw::CmdStringArg& dirName
585  ) = 0;
586 
590  virtual void RemoveFile_cmdHandler(
591  FwOpcodeType opCode,
592  U32 cmdSeq,
593  const Fw::CmdStringArg& fileName,
594  bool ignoreErrors
595  ) = 0;
596 
600  virtual void ShellCommand_cmdHandler(
601  FwOpcodeType opCode,
602  U32 cmdSeq,
603  const Fw::CmdStringArg& command,
604  const Fw::CmdStringArg& logFileName
605  ) = 0;
606 
610  virtual void AppendFile_cmdHandler(
611  FwOpcodeType opCode,
612  U32 cmdSeq,
613  const Fw::CmdStringArg& source,
614  const Fw::CmdStringArg& target
615  ) = 0;
616 
618  virtual void FileSize_cmdHandler(
619  FwOpcodeType opCode,
620  U32 cmdSeq,
621  const Fw::CmdStringArg& fileName
622  ) = 0;
623 
627  virtual void ListDirectory_cmdHandler(
628  FwOpcodeType opCode,
629  U32 cmdSeq,
630  const Fw::CmdStringArg& dirName
631  ) = 0;
632 
633  protected:
634 
635  // ----------------------------------------------------------------------
636  // Command handler base-class functions
637  //
638  // Call these functions directly to bypass the command input port
639  // ----------------------------------------------------------------------
640 
645  FwOpcodeType opCode,
646  U32 cmdSeq,
647  Fw::CmdArgBuffer& args
648  );
649 
654  FwOpcodeType opCode,
655  U32 cmdSeq,
656  Fw::CmdArgBuffer& args
657  );
658 
663  FwOpcodeType opCode,
664  U32 cmdSeq,
665  Fw::CmdArgBuffer& args
666  );
667 
672  FwOpcodeType opCode,
673  U32 cmdSeq,
674  Fw::CmdArgBuffer& args
675  );
676 
681  FwOpcodeType opCode,
682  U32 cmdSeq,
683  Fw::CmdArgBuffer& args
684  );
685 
690  FwOpcodeType opCode,
691  U32 cmdSeq,
692  Fw::CmdArgBuffer& args
693  );
694 
697  FwOpcodeType opCode,
698  U32 cmdSeq,
699  Fw::CmdArgBuffer& args
700  );
701 
706  FwOpcodeType opCode,
707  U32 cmdSeq,
708  Fw::CmdArgBuffer& args
709  );
710 
711  protected:
712 
713  // ----------------------------------------------------------------------
714  // Pre-message hooks for async commands
715  //
716  // Each of these functions is invoked just before processing the
717  // corresponding command. By default they do nothing. You can
718  // override them to provide specific pre-command behavior.
719  // ----------------------------------------------------------------------
720 
722  virtual void CreateDirectory_preMsgHook(
723  FwOpcodeType opCode,
724  U32 cmdSeq
725  );
726 
728  virtual void MoveFile_preMsgHook(
729  FwOpcodeType opCode,
730  U32 cmdSeq
731  );
732 
734  virtual void RemoveDirectory_preMsgHook(
735  FwOpcodeType opCode,
736  U32 cmdSeq
737  );
738 
740  virtual void RemoveFile_preMsgHook(
741  FwOpcodeType opCode,
742  U32 cmdSeq
743  );
744 
746  virtual void ShellCommand_preMsgHook(
747  FwOpcodeType opCode,
748  U32 cmdSeq
749  );
750 
752  virtual void AppendFile_preMsgHook(
753  FwOpcodeType opCode,
754  U32 cmdSeq
755  );
756 
758  virtual void FileSize_preMsgHook(
759  FwOpcodeType opCode,
760  U32 cmdSeq
761  );
762 
764  virtual void ListDirectory_preMsgHook(
765  FwOpcodeType opCode,
766  U32 cmdSeq
767  );
768 
769  protected:
770 
771  // ----------------------------------------------------------------------
772  // Event logging functions
773  // ----------------------------------------------------------------------
774 
779  const Fw::StringBase& dirName,
780  U32 status
781  ) const;
782 
787  const Fw::StringBase& dirName,
788  U32 status
789  ) const;
790 
795  const Fw::StringBase& sourceFileName,
796  const Fw::StringBase& destFileName,
797  U32 status
798  ) const;
799 
804  const Fw::StringBase& fileName,
805  U32 status
806  ) const;
807 
812  const Fw::StringBase& command,
813  U32 status
814  ) const;
815 
820  const Fw::StringBase& source,
821  const Fw::StringBase& target,
822  U32 status
823  ) const;
824 
829  const Fw::StringBase& source,
830  const Fw::StringBase& target
831  ) const;
832 
837  const Fw::StringBase& command
838  ) const;
839 
844  const Fw::StringBase& dirName
845  ) const;
846 
851  const Fw::StringBase& dirName
852  ) const;
853 
858  const Fw::StringBase& sourceFileName,
859  const Fw::StringBase& destFileName
860  ) const;
861 
866  const Fw::StringBase& fileName
867  ) const;
868 
873  const Fw::StringBase& source,
874  const Fw::StringBase& target
875  ) const;
876 
881  const Fw::StringBase& command
882  ) const;
883 
888  const Fw::StringBase& dirName
889  ) const;
890 
895  const Fw::StringBase& dirName
896  ) const;
897 
902  const Fw::StringBase& sourceFileName,
903  const Fw::StringBase& destFileName
904  ) const;
905 
910  const Fw::StringBase& fileName
911  ) const;
912 
917  const Fw::StringBase& fileName,
918  FwSizeType size
919  ) const;
920 
925  const Fw::StringBase& fileName,
926  U32 status
927  ) const;
928 
933  const Fw::StringBase& fileName
934  ) const;
935 
940  const Fw::StringBase& dirName
941  ) const;
942 
947  const Fw::StringBase& dirName,
948  U32 fileCount
949  ) const;
950 
955  const Fw::StringBase& dirName,
956  U32 status
957  ) const;
958 
963  const Fw::StringBase& dirName,
964  const Fw::StringBase& fileName,
965  FwSizeType fileSize
966  ) const;
967 
972  const Fw::StringBase& dirName,
973  const Fw::StringBase& subdirName
974  ) const;
975 
976  protected:
977 
978  // ----------------------------------------------------------------------
979  // Telemetry write functions
980  // ----------------------------------------------------------------------
981 
986  U32 arg,
987  Fw::Time _tlmTime = Fw::Time()
988  ) const;
989 
993  void tlmWrite_Errors(
994  U32 arg,
995  Fw::Time _tlmTime = Fw::Time()
996  ) const;
997 
998  protected:
999 
1000  // ----------------------------------------------------------------------
1001  // Time
1002  // ----------------------------------------------------------------------
1003 
1007  Fw::Time getTime() const;
1008 
1009  private:
1010 
1011  // ----------------------------------------------------------------------
1012  // Message dispatch functions
1013  // ----------------------------------------------------------------------
1014 
1016  virtual MsgDispatchStatus doDispatch();
1017 
1018  private:
1019 
1020  // ----------------------------------------------------------------------
1021  // Calls for messages received on special input ports
1022  // ----------------------------------------------------------------------
1023 
1025  static void m_p_cmdIn_in(
1026  Fw::PassiveComponentBase* callComp,
1027  FwIndexType portNum,
1028  FwOpcodeType opCode,
1029  U32 cmdSeq,
1030  Fw::CmdArgBuffer& args
1031  );
1032 
1033  private:
1034 
1035  // ----------------------------------------------------------------------
1036  // Calls for messages received on typed input ports
1037  // ----------------------------------------------------------------------
1038 
1040  static void m_p_pingIn_in(
1041  Fw::PassiveComponentBase* callComp,
1042  FwIndexType portNum,
1043  U32 key
1044  );
1045 
1047  static void m_p_schedIn_in(
1048  Fw::PassiveComponentBase* callComp,
1049  FwIndexType portNum,
1050  U32 context
1051  );
1052 
1053  private:
1054 
1055  // ----------------------------------------------------------------------
1056  // Special input ports
1057  // ----------------------------------------------------------------------
1058 
1060  Fw::InputCmdPort m_cmdIn_InputPort[NUM_CMDIN_INPUT_PORTS];
1061 
1062  private:
1063 
1064  // ----------------------------------------------------------------------
1065  // Typed input ports
1066  // ----------------------------------------------------------------------
1067 
1069  Svc::InputPingPort m_pingIn_InputPort[NUM_PINGIN_INPUT_PORTS];
1070 
1072  Svc::InputSchedPort m_schedIn_InputPort[NUM_SCHEDIN_INPUT_PORTS];
1073 
1074  private:
1075 
1076  // ----------------------------------------------------------------------
1077  // Special output ports
1078  // ----------------------------------------------------------------------
1079 
1080 #if FW_ENABLE_TEXT_LOGGING == 1
1081 
1083  Fw::OutputLogTextPort m_LogText_OutputPort[NUM_LOGTEXT_OUTPUT_PORTS];
1084 
1085 #endif
1086 
1088  Fw::OutputCmdRegPort m_cmdRegOut_OutputPort[NUM_CMDREGOUT_OUTPUT_PORTS];
1089 
1091  Fw::OutputCmdResponsePort m_cmdResponseOut_OutputPort[NUM_CMDRESPONSEOUT_OUTPUT_PORTS];
1092 
1094  Fw::OutputLogPort m_eventOut_OutputPort[NUM_EVENTOUT_OUTPUT_PORTS];
1095 
1097  Fw::OutputTimePort m_timeCaller_OutputPort[NUM_TIMECALLER_OUTPUT_PORTS];
1098 
1100  Fw::OutputTlmPort m_tlmOut_OutputPort[NUM_TLMOUT_OUTPUT_PORTS];
1101 
1102  private:
1103 
1104  // ----------------------------------------------------------------------
1105  // Typed output ports
1106  // ----------------------------------------------------------------------
1107 
1109  Svc::OutputPingPort m_pingOut_OutputPort[NUM_PINGOUT_OUTPUT_PORTS];
1110 
1111  };
1112 
1113 }
1114 
1115 #endif
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
The File System component deleted an existing file without error.
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.
An error occurred while attempting to move a file.
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
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.
The File System component began deleting an existing file.
I32 FwEnumStoreType
void log_WARNING_HI_FileSizeError(const Fw::StringBase &fileName, U32 status) const
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
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
Auto-generated base for FileManager component.
void ShellCommand_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
The File System component began creating a new directory.
void log_ACTIVITY_HI_ListDirectoryStarted(const Fw::StringBase &dirName) const
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
The File System component moved a file to a new location without error.
An error occurred while attempting to remove a file.
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.
void log_ACTIVITY_HI_MoveFileStarted(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const
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 ListDirectory_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void init()
Object initializer.
Definition: ObjBase.cpp:24
An error occurred while attempting to remove a directory.
bool isConnected_pingOut_OutputPort(FwIndexType portNum)
void log_ACTIVITY_HI_CreateDirectorySucceeded(const Fw::StringBase &dirName) const
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
The File System component created a new directory without error.
FwIndexType getNum_eventOut_OutputPorts() const
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
Perform a Linux shell command and write the output to a log file.
The File System component returned status non-zero when trying to append 2 files together.
The File System component deleted and existing directory without error.
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
void RemoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
friend class FileManagerTester
Friend class tester implementation to support white-box testing.
void log_ACTIVITY_HI_RemoveDirectoryStarted(const Fw::StringBase &dirName) const
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)
FwIndexType getNum_timeCaller_OutputPorts() const
The File System component began executing a shell command.
virtual void schedIn_preMsgHook(FwIndexType portNum, U32 context)
Pre-message hook for async input port schedIn.
virtual void FileSize_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command FileSize.
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.
The File System component appended 2 files without error.
Svc::InputSchedPort * get_schedIn_InputPort(FwIndexType portNum)
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
bool isConnected_eventOut_OutputPort(FwIndexType portNum)
void log_ACTIVITY_HI_FileSizeStarted(const Fw::StringBase &fileName) const
virtual ~FileManagerComponentBase()
Destroy FileManagerComponentBase object.
The File System component executed a shell command that returned status zero.
void MoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void schedIn_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port schedIn.
The File System component began deleting a directory.
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
void log_WARNING_HI_DirectoryRemoveError(const Fw::StringBase &dirName, U32 status) const
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
Append 1 file&#39;s contents to the end of another.
The File System component began moving a file to a new location.
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
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 appended 2 files without error.
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.
An error occurred while attempting to create a directory.
virtual void AppendFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command AppendFile.
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
The File System component executed a shell command that returned status non-zero. ...
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum)
void log_WARNING_HI_DirectoryCreateError(const Fw::StringBase &dirName, U32 status) const
void log_ACTIVITY_HI_RemoveFileSucceeded(const Fw::StringBase &fileName) const
void log_WARNING_HI_FileMoveError(const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName, U32 status) const
void tlmWrite_CommandsExecuted(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
void CreateDirectory_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
virtual void RemoveDirectory_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &dirName)=0
bool isConnected_tlmOut_OutputPort(FwIndexType portNum)
void log_WARNING_HI_FileRemoveError(const Fw::StringBase &fileName, U32 status) const
friend class FileManagerTesterBase
Friend class tester to support autocoded test harness.
virtual void AppendFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &source, const Fw::CmdStringArg &target)=0