F´ Flight Software - C/C++ Documentation  NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FileManagerComponentAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FileManagerComponentAc.hpp
3 // \author Auto-generated
4 // \brief hpp file for FileManager component base class
5 //
6 // \copyright
7 // Copyright 2009-2015, by the California Institute of Technology.
8 // ALL RIGHTS RESERVED. United States Government Sponsorship
9 // acknowledged.
10 //
11 // ======================================================================
12 
13 #ifndef FILEMANAGER_COMP_HPP_
14 #define FILEMANAGER_COMP_HPP_
15 
16 #include <FpConfig.hpp>
20 #include <Fw/Cmd/CmdString.hpp>
21 #include <Fw/Tlm/TlmString.hpp>
22 #include <Fw/Time/TimePortAc.hpp>
23 #include <Fw/Log/LogString.hpp>
24 #include <Fw/Cmd/CmdArgBuffer.hpp>
25 #include <Fw/Log/LogBuffer.hpp>
26 #include <Fw/Time/Time.hpp>
27 #include <Fw/Tlm/TlmBuffer.hpp>
28 #include <Fw/Log/TextLogString.hpp>
29 #include <Fw/Cmd/CmdPortAc.hpp>
30 #include <Fw/Cmd/CmdRegPortAc.hpp>
32 #include <Fw/Log/LogPortAc.hpp>
33 #include <Fw/Time/TimePortAc.hpp>
34 #include <Fw/Tlm/TlmPortAc.hpp>
35 #include <Svc/Ping/PingPortAc.hpp>
36 #if FW_ENABLE_TEXT_LOGGING == 1
37 #include <Fw/Log/LogTextPortAc.hpp>
38 #endif
39 
40 namespace Svc {
41 
47  {
48 
49  // ----------------------------------------------------------------------
50  // Friend classes
51  // ----------------------------------------------------------------------
52 
56 
57  public:
58 
59  // ----------------------------------------------------------------------
60  // Getters for typed input ports
61  // ----------------------------------------------------------------------
62 
69  );
70 
77  );
78 
79  public:
80 
81  // ----------------------------------------------------------------------
82  // Connect typed input ports to typed output ports
83  // ----------------------------------------------------------------------
84 
89  Fw::InputCmdRegPort *port
90  );
91 
97  );
98 
103  Fw::InputLogPort *port
104  );
105 
110  Fw::InputTimePort *port
111  );
112 
117  Fw::InputTlmPort *port
118  );
119 
124  Svc::InputPingPort *port
125  );
126 
127 #if FW_ENABLE_TEXT_LOGGING == 1
128  void set_LogText_OutputPort(
132  Fw::InputLogTextPort *port
133  );
134 #endif
135 
136 #if FW_PORT_SERIALIZATION
137 
138  public:
139 
140  // ----------------------------------------------------------------------
141  // Connect serialization input ports to typed output ports
142  // ----------------------------------------------------------------------
143 
148  Fw::InputSerializePort *port
149  );
150 
155  Fw::InputSerializePort *port
156  );
157 
162  Fw::InputSerializePort *port
163  );
164 
169  Fw::InputSerializePort *port
170  );
171 
176  Fw::InputSerializePort *port
177  );
178 
183  Fw::InputSerializePort *port
184  );
185 
186 #if FW_ENABLE_TEXT_LOGGING == 1
187  void set_LogText_OutputPort(
191  Fw::InputSerializePort *port
192  );
193 #endif
194 
195 #endif
196 
197  public:
198 
199  // ----------------------------------------------------------------------
200  // Command registration
201  // ----------------------------------------------------------------------
202 
207  void regCommands(void);
208 
210 
211  // ----------------------------------------------------------------------
212  // Component construction, initialization, and destruction
213  // ----------------------------------------------------------------------
214 
215 #if FW_OBJECT_NAMES == 1
219  const char* compName
220  );
221 #else
225 #endif
226 
229  void init(
230  NATIVE_INT_TYPE queueDepth,
231  NATIVE_INT_TYPE instance = 0
232  );
233 
236  virtual ~FileManagerComponentBase(void);
237 
239 
240  // ----------------------------------------------------------------------
241  // Handlers to implement for typed input ports
242  // ----------------------------------------------------------------------
243 
245  //
246  virtual void pingIn_handler(
248  U32 key
249  ) = 0;
250 
252 
253  // ----------------------------------------------------------------------
254  // Port handler base-class functions for typed input ports.
255  // ----------------------------------------------------------------------
256  // Call these functions directly to bypass the corresponding ports.
257  // ----------------------------------------------------------------------
258 
261  void pingIn_handlerBase(
263  U32 key
264  );
265 
267 
268  // ----------------------------------------------------------------------
269  // Pre-message hooks for typed async input ports.
270  // ----------------------------------------------------------------------
271  // Each of these functions is invoked just before processing a message
272  // on the corresponding port. By default they do nothing. You can
273  // override them to provide specific pre-message behavior.
274  // ----------------------------------------------------------------------
275 
278  virtual void pingIn_preMsgHook(
280  U32 key
281  );
282 
284 
285  // ----------------------------------------------------------------------
286  // Invocation functions for typed output ports
287  // ----------------------------------------------------------------------
288 
291  void pingOut_out(
293  U32 key
294  );
295 
297 
298  // ----------------------------------------------------------------------
299  // Getters for numbers of input ports
300  // ----------------------------------------------------------------------
301 
306  NATIVE_INT_TYPE getNum_cmdIn_InputPorts(void);
307 
313 
314 
315  // ----------------------------------------------------------------------
316  // Enumerations for number of ports
317  // ----------------------------------------------------------------------
318 
319  enum {
322  };
323 
325 
326  // ----------------------------------------------------------------------
327  // Getters for numbers of output ports
328  // ----------------------------------------------------------------------
329 
334  NATIVE_INT_TYPE getNum_cmdRegOut_OutputPorts(void);
335 
341 
347 
353 
359 
365 
366 #if FW_ENABLE_TEXT_LOGGING == 1
367  NATIVE_INT_TYPE getNum_LogText_OutputPorts(void);
372 #endif
373 
374 
375  enum {
383  };
384 
386 
387  // ----------------------------------------------------------------------
388  // Connection status queries for output ports
389  // ----------------------------------------------------------------------
390 
395  bool isConnected_cmdRegOut_OutputPort(
397  );
398 
405  );
406 
413  );
414 
421  );
422 
429  );
430 
437  );
438 
439 #if FW_ENABLE_TEXT_LOGGING == 1
440  bool isConnected_LogText_OutputPort(
446  );
447 #endif
448 
450 
451  // ----------------------------------------------------------------------
452  // Command opcodes
453  // ----------------------------------------------------------------------
454 
455  enum {
456  OPCODE_CREATEDIRECTORY = 0x0, /* Create a directory */
457  OPCODE_MOVEFILE = 0x1, /* Move a file */
458  OPCODE_REMOVEDIRECTORY = 0x2, /* Remove a directory, which must be empty */
459  OPCODE_REMOVEFILE = 0x3, /* Remove a file */
460  OPCODE_SHELLCOMMAND = 0x4, /* Perform a Linux shell command and write the output to a log file. */
461  OPCODE_APPENDFILE = 0x5, /* Append 1 file's contents to the end of another. */
462  };
463 
465 
466  // ----------------------------------------------------------------------
467  // Command handlers to implement
468  // ----------------------------------------------------------------------
469 
471  /* Create a directory */
472  virtual void CreateDirectory_cmdHandler(
474  U32 cmdSeq,
476  ) = 0;
477 
479  /* Move a file */
480  virtual void MoveFile_cmdHandler(
482  U32 cmdSeq,
483  const Fw::CmdStringArg& sourceFileName,
484  const Fw::CmdStringArg& destFileName
485  ) = 0;
486 
488  /* Remove a directory, which must be empty */
491  U32 cmdSeq,
492  const Fw::CmdStringArg& dirName
493  ) = 0;
494 
496  /* Remove a file */
497  virtual void RemoveFile_cmdHandler(
499  U32 cmdSeq,
500  const Fw::CmdStringArg& fileName
501  ) = 0;
502 
504  /* Perform a Linux shell command and write the output to a log file. */
507  U32 cmdSeq,
508  const Fw::CmdStringArg& command,
509  const Fw::CmdStringArg& logFileName
510  ) = 0;
511 
513  /* Append 1 file's contents to the end of another. */
514  virtual void AppendFile_cmdHandler(
516  U32 cmdSeq,
517  const Fw::CmdStringArg& source,
518  const Fw::CmdStringArg& target
519  ) = 0;
520 
522 
523  // ----------------------------------------------------------------------
524  // Pre-message hooks for async commands.
525  // ----------------------------------------------------------------------
526  // Each of these functions is invoked just before processing the
527  // corresponding command. By default they do nothing. You can
528  // override them to provide specific pre-command behavior.
529  // ----------------------------------------------------------------------
530 
533  virtual void CreateDirectory_preMsgHook(
535  U32 cmdSeq
536  );
537 
540  virtual void MoveFile_preMsgHook(
542  U32 cmdSeq
543  );
544 
547  virtual void RemoveDirectory_preMsgHook(
549  U32 cmdSeq
550  );
551 
554  virtual void RemoveFile_preMsgHook(
556  U32 cmdSeq
557  );
558 
561  virtual void ShellCommand_preMsgHook(
563  U32 cmdSeq
564  );
565 
568  virtual void AppendFile_preMsgHook(
570  U32 cmdSeq
571  );
572 
574 
575  // ----------------------------------------------------------------------
576  // Command handler base-class functions.
577  // Call these functions directly to bypass the command input port.
578  // ----------------------------------------------------------------------
579 
582  void CreateDirectory_cmdHandlerBase(
584  U32 cmdSeq,
586  );
587 
592  U32 cmdSeq,
594  );
595 
600  U32 cmdSeq,
602  );
603 
608  U32 cmdSeq,
610  );
611 
616  U32 cmdSeq,
618  );
619 
624  U32 cmdSeq,
626  );
627 
629 
630  // ----------------------------------------------------------------------
631  // Command response
632  // ----------------------------------------------------------------------
633 
636  void cmdResponse_out(
638  U32 cmdSeq,
640  );
641 
643 
644  // ----------------------------------------------------------------------
645  // Event IDs
646  // ----------------------------------------------------------------------
647 
648  enum {
649  EVENTID_DIRECTORYCREATEERROR = 0x0, /* An error occurred while attempting to create a directory */
650  EVENTID_DIRECTORYREMOVEERROR = 0x1, /* An error occurred while attempting to remove a directory */
651  EVENTID_FILEMOVEERROR = 0x2, /* An error occurred while attempting to move a file */
652  EVENTID_FILEREMOVEERROR = 0x3, /* An error occurred while attempting to remove a file */
653  EVENTID_SHELLCOMMANDFAILED = 0x4, /* The File System component executed a shell command that returned status non-zero */
654  EVENTID_APPENDFILEFAILED = 0x5, /* The File System component returned status non-zero when trying to append 2 files together */
655  EVENTID_APPENDFILESUCCEEDED = 0x6, /* The File System component appended 2 files without error */
656  EVENTID_SHELLCOMMANDSUCCEEDED = 0x7, /* The File System component executed a shell command that returned status zero */
657  EVENTID_CREATEDIRECTORYSUCCEEDED = 0x8, /* The File System component created a new directory without error */
658  EVENTID_REMOVEDIRECTORYSUCCEEDED = 0x9, /* The File System component deleted and existing directory without error */
659  EVENTID_MOVEFILESUCCEEDED = 0xA, /* The File System component moved a file to a new location without error */
660  EVENTID_REMOVEFILESUCCEEDED = 0xB, /* The File System component deleted an existing file without error */
661  EVENTID_APPENDFILESTARTED = 0xC, /* The File System component appended 2 files without error */
662  EVENTID_SHELLCOMMANDSTARTED = 0xD, /* The File System component began executing a shell command */
663  EVENTID_CREATEDIRECTORYSTARTED = 0xE, /* The File System component began creating a new directory */
664  EVENTID_REMOVEDIRECTORYSTARTED = 0xF, /* The File System component began deleting a directory */
665  EVENTID_MOVEFILESTARTED = 0x10, /* The File System component began moving a file to a new location */
666  EVENTID_REMOVEFILESTARTED = 0x11, /* The File System component began deleting an existing file */
667  };
668 
669  PROTECTED:
670 
671  // ----------------------------------------------------------------------
672  // Event logging functions
673  // ----------------------------------------------------------------------
674 
677  /* An error occurred while attempting to create a directory */
678  void log_WARNING_HI_DirectoryCreateError(
680  U32 status
681  );
682 
683 
686  /* An error occurred while attempting to remove a directory */
689  U32 status
690  );
691 
692 
695  /* An error occurred while attempting to move a file */
697  Fw::LogStringArg& sourceFileName,
698  Fw::LogStringArg& destFileName,
699  U32 status
700  );
701 
702 
705  /* An error occurred while attempting to remove a file */
707  Fw::LogStringArg& fileName,
708  U32 status
709  );
710 
711 
714  /* The File System component executed a shell command that returned status non-zero */
716  Fw::LogStringArg& command,
717  U32 status
718  );
719 
720 
723  /* The File System component returned status non-zero when trying to append 2 files together */
725  Fw::LogStringArg& source,
726  Fw::LogStringArg& target,
727  U32 status
728  );
729 
730 
733  /* The File System component appended 2 files without error */
735  Fw::LogStringArg& source,
736  Fw::LogStringArg& target
737  );
738 
739 
742  /* The File System component executed a shell command that returned status zero */
744  Fw::LogStringArg& command
745  );
746 
747 
750  /* The File System component created a new directory without error */
753  );
754 
755 
758  /* The File System component deleted and existing directory without error */
761  );
762 
763 
766  /* The File System component moved a file to a new location without error */
768  Fw::LogStringArg& sourceFileName,
769  Fw::LogStringArg& destFileName
770  );
771 
772 
775  /* The File System component deleted an existing file without error */
777  Fw::LogStringArg& fileName
778  );
779 
780 
783  /* The File System component appended 2 files without error */
785  Fw::LogStringArg& source,
786  Fw::LogStringArg& target
787  );
788 
789 
792  /* The File System component began executing a shell command */
794  Fw::LogStringArg& command
795  );
796 
797 
800  /* The File System component began creating a new directory */
803  );
804 
805 
808  /* The File System component began deleting a directory */
811  );
812 
813 
816  /* The File System component began moving a file to a new location */
818  Fw::LogStringArg& sourceFileName,
819  Fw::LogStringArg& destFileName
820  );
821 
822 
825  /* The File System component began deleting an existing file */
827  Fw::LogStringArg& fileName
828  );
829 
830 
832 
833  // ----------------------------------------------------------------------
834  // Channel IDs
835  // ----------------------------------------------------------------------
836 
837  enum {
838  CHANNELID_COMMANDSEXECUTED = 0x0,
840  };
841 
842  PROTECTED:
843 
844  // ----------------------------------------------------------------------
845  // Telemetry write functions
846  // ----------------------------------------------------------------------
847 
850  /* The total number of commands successfully executed */
851  void tlmWrite_CommandsExecuted(
852  U32 arg
853  );
854 
857  /* The total number of errors */
858  void tlmWrite_Errors(
859  U32 arg
860  );
861 
863 
864  // ----------------------------------------------------------------------
865  // Time
866  // ----------------------------------------------------------------------
867 
872  Fw::Time getTime(void);
873 
874 
876 
877  // ----------------------------------------------------------------------
878  // Typed input ports
879  // ----------------------------------------------------------------------
880 
883  Fw::InputCmdPort m_cmdIn_InputPort[NUM_CMDIN_INPUT_PORTS];
884 
888 
890 
891  // ----------------------------------------------------------------------
892  // Typed output ports
893  // ----------------------------------------------------------------------
894 
897  Fw::OutputCmdRegPort m_cmdRegOut_OutputPort[NUM_CMDREGOUT_OUTPUT_PORTS];
898 
902 
906 
910 
914 
918 
919 #if FW_ENABLE_TEXT_LOGGING == 1
920  Fw::OutputLogTextPort m_LogText_OutputPort[NUM_LOGTEXT_OUTPUT_PORTS];
923 #endif
924 
926 
927  // ----------------------------------------------------------------------
928  // Calls for messages received on typed input ports
929  // ----------------------------------------------------------------------
930 
933  static void m_p_cmdIn_in(
934  Fw::PassiveComponentBase* callComp,
937  U32 cmdSeq,
939  );
940 
943  static void m_p_pingIn_in(
944  Fw::PassiveComponentBase* callComp,
946  U32 key
947  );
948 
950 
951  // ----------------------------------------------------------------------
952  // Message dispatch functions
953  // ----------------------------------------------------------------------
954 
957  virtual MsgDispatchStatus doDispatch(void);
958 
959 
960  PRIVATE:
961  // ----------------------------------------------------------------------
962  // Counter values for event throttling
963  // ----------------------------------------------------------------------
964 
965  };
966 
967 } // end namespace Svc
968 #endif
Svc::FileManagerComponentBase::NUM_PINGIN_INPUT_PORTS
@ NUM_PINGIN_INPUT_PORTS
Definition: FileManagerComponentAc.hpp:321
Svc::FileManagerComponentBase::getNum_tlmOut_OutputPorts
NATIVE_INT_TYPE getNum_tlmOut_OutputPorts(void)
Definition: FileManagerComponentAc.cpp:603
Svc::FileManagerComponentBase::NUM_CMDREGOUT_OUTPUT_PORTS
@ NUM_CMDREGOUT_OUTPUT_PORTS
Definition: FileManagerComponentAc.hpp:376
Svc::FileManagerComponentBase::OPCODE_REMOVEDIRECTORY
PROTECTED OPCODE_REMOVEDIRECTORY
Definition: FileManagerComponentAc.hpp:458
Fw::InputTimePort
Definition: TimePortAc.hpp:28
Svc::FileManagerComponentBase::log_ACTIVITY_HI_AppendFileSucceeded
void log_ACTIVITY_HI_AppendFileSucceeded(Fw::LogStringArg &source, Fw::LogStringArg &target)
Definition: FileManagerComponentAc.cpp:1965
Fw::InputTlmPort
Definition: TlmPortAc.hpp:29
Svc::FileManagerComponentBase::status
PROTECTED U32 status
Definition: FileManagerComponentAc.hpp:681
Svc::FileManagerComponentBase::EVENTID_APPENDFILEFAILED
PROTECTED EVENTID_APPENDFILEFAILED
Definition: FileManagerComponentAc.hpp:654
LogBuffer.hpp
PRIVATE
#define PRIVATE
overridable private for unit testing
Definition: BasicTypes.hpp:118
Svc::FileManagerComponentBase::m_cmdResponseOut_OutputPort
Fw::OutputCmdResponsePort m_cmdResponseOut_OutputPort[NUM_CMDRESPONSEOUT_OUTPUT_PORTS]
Definition: FileManagerComponentAc.hpp:901
Svc::FileManagerComponentBase::RemoveDirectory_cmdHandler
virtual void RemoveDirectory_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &dirName)=0
Handler for command RemoveDirectory.
Fw::Time
Definition: Time.hpp:10
TlmPortAc.hpp
Svc::FileManagerComponentBase::EVENTID_MOVEFILESTARTED
PROTECTED EVENTID_MOVEFILESTARTED
Definition: FileManagerComponentAc.hpp:665
Svc::FileManagerComponentBase::EVENTID_APPENDFILESTARTED
PROTECTED EVENTID_APPENDFILESTARTED
Definition: FileManagerComponentAc.hpp:661
Svc::FileManagerComponentBase::getNum_pingIn_InputPorts
NATIVE_INT_TYPE getNum_pingIn_InputPorts(void)
Definition: FileManagerComponentAc.cpp:611
Svc::FileManagerComponentBase::log_ACTIVITY_HI_RemoveFileStarted
void log_ACTIVITY_HI_RemoveFileStarted(Fw::LogStringArg &fileName)
Definition: FileManagerComponentAc.cpp:2965
Fw::QueuedComponentBase::doDispatch
virtual MsgDispatchStatus doDispatch(void)=0
method to dispatch a single message in the queue.
Fw::OutputTlmPort
Definition: TlmPortAc.hpp:50
Svc::FileManagerComponentBase::OPCODE_APPENDFILE
PROTECTED OPCODE_APPENDFILE
Definition: FileManagerComponentAc.hpp:461
Svc::FileManagerComponentBase::response
PROTECTED U32 Fw::CommandResponse response
Definition: FileManagerComponentAc.hpp:640
Fw::CommandResponse
CommandResponse
Definition: CmdResponsePortAc.hpp:24
Svc::FileManagerComponentBase::set_tlmOut_OutputPort
void set_tlmOut_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputTlmPort *port)
Definition: FileManagerComponentAc.cpp:148
Svc::FileManagerComponentBase::EVENTID_SHELLCOMMANDFAILED
PROTECTED EVENTID_SHELLCOMMANDFAILED
Definition: FileManagerComponentAc.hpp:653
Svc::FileManagerComponentBase::cmdSeq
PROTECTED U32 cmdSeq
Definition: FileManagerComponentAc.hpp:474
Svc::FileManagerComponentBase::OPCODE_REMOVEFILE
PROTECTED OPCODE_REMOVEFILE
Definition: FileManagerComponentAc.hpp:459
Svc::FileManagerComponentBase::EVENTID_REMOVEDIRECTORYSTARTED
PROTECTED EVENTID_REMOVEDIRECTORYSTARTED
Definition: FileManagerComponentAc.hpp:664
Svc::FileManagerComponentBase::m_tlmOut_OutputPort
Fw::OutputTlmPort m_tlmOut_OutputPort[NUM_TLMOUT_OUTPUT_PORTS]
Definition: FileManagerComponentAc.hpp:913
Fw::LogStringArg
Definition: LogString.hpp:11
Svc::FileManagerComponentBase::log_ACTIVITY_HI_RemoveFileSucceeded
void log_ACTIVITY_HI_RemoveFileSucceeded(Fw::LogStringArg &fileName)
Definition: FileManagerComponentAc.cpp:2421
Svc::FileManagerComponentBase::RemoveFile_preMsgHook
virtual void RemoveFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Definition: FileManagerComponentAc.cpp:1082
Svc::FileManagerComponentBase::RemoveDirectory_preMsgHook
virtual void RemoveDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Definition: FileManagerComponentAc.cpp:1012
Fw::OutputCmdResponsePort
Definition: CmdResponsePortAc.hpp:58
Svc::FileManagerComponentBase::log_ACTIVITY_HI_CreateDirectoryStarted
void log_ACTIVITY_HI_CreateDirectoryStarted(Fw::LogStringArg &dirName)
Definition: FileManagerComponentAc.cpp:2693
Fw::InputCmdRegPort
Definition: CmdRegPortAc.hpp:27
Svc::FileManagerComponentBase::portNum
PRIVATE NATIVE_INT_TYPE portNum
Definition: FileManagerComponentAc.hpp:935
CmdRegPortAc.hpp
Svc::FileManagerComponentBase::set_cmdRegOut_OutputPort
void set_cmdRegOut_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputCmdRegPort *port)
Definition: FileManagerComponentAc.cpp:108
Svc::FileManagerComponentBase::EVENTID_MOVEFILESUCCEEDED
PROTECTED EVENTID_MOVEFILESUCCEEDED
Definition: FileManagerComponentAc.hpp:659
Svc::FileManagerComponentBase::AppendFile_preMsgHook
virtual void AppendFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Definition: FileManagerComponentAc.cpp:1222
Svc::FileManagerComponentBase::log_ACTIVITY_HI_MoveFileStarted
void log_ACTIVITY_HI_MoveFileStarted(Fw::LogStringArg &sourceFileName, Fw::LogStringArg &destFileName)
Definition: FileManagerComponentAc.cpp:2869
TextLogString.hpp
Svc::FileManagerComponentBase::set_pingOut_OutputPort
void set_pingOut_OutputPort(NATIVE_INT_TYPE portNum, Svc::InputPingPort *port)
Definition: FileManagerComponentAc.cpp:158
Svc::FileManagerComponentBase::NUM_TLMOUT_OUTPUT_PORTS
@ NUM_TLMOUT_OUTPUT_PORTS
Definition: FileManagerComponentAc.hpp:380
InputSerializePort.hpp
Svc::FileManagerComponentBase::EVENTID_CREATEDIRECTORYSUCCEEDED
PROTECTED EVENTID_CREATEDIRECTORYSUCCEEDED
Definition: FileManagerComponentAc.hpp:657
Fw::CmdStringArg
Definition: CmdString.hpp:11
Svc::FileManagerComponentBase::log_WARNING_HI_FileRemoveError
void log_WARNING_HI_FileRemoveError(Fw::LogStringArg &fileName, U32 status)
Definition: FileManagerComponentAc.cpp:1639
Svc::FileManagerComponentBase::EVENTID_CREATEDIRECTORYSTARTED
PROTECTED EVENTID_CREATEDIRECTORYSTARTED
Definition: FileManagerComponentAc.hpp:663
CmdPortAc.hpp
Svc::FileManagerComponentBase::EVENTID_FILEMOVEERROR
PROTECTED EVENTID_FILEMOVEERROR
Definition: FileManagerComponentAc.hpp:651
Svc::FileManagerComponentBase::FileManagerComponentBaseFriend
friend class FileManagerComponentBaseFriend
Definition: FileManagerComponentAc.hpp:55
Svc::FileManagerComponentBase::log_WARNING_HI_DirectoryRemoveError
void log_WARNING_HI_DirectoryRemoveError(Fw::LogStringArg &dirName, U32 status)
Definition: FileManagerComponentAc.cpp:1419
Fw::PassiveComponentBase
Definition: PassiveComponentBase.hpp:10
LogString.hpp
Svc::FileManagerComponentBase::RemoveDirectory_cmdHandlerBase
void RemoveDirectory_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Definition: FileManagerComponentAc.cpp:951
Svc::FileManagerComponentBase::OPCODE_MOVEFILE
PROTECTED OPCODE_MOVEFILE
Definition: FileManagerComponentAc.hpp:457
Svc::FileManagerComponentBase::EVENTID_APPENDFILESUCCEEDED
PROTECTED EVENTID_APPENDFILESUCCEEDED
Definition: FileManagerComponentAc.hpp:655
Fw::ObjBase::init
void init(void)
Object initializer.
Definition: ObjBase.cpp:26
Svc::FileManagerComponentBase::tlmWrite_Errors
void tlmWrite_Errors(U32 arg)
Definition: FileManagerComponentAc.cpp:1264
Svc::FileManagerComponentBase::isConnected_timeCaller_OutputPort
bool isConnected_timeCaller_OutputPort(NATIVE_INT_TYPE portNum)
Definition: FileManagerComponentAc.cpp:671
Svc::FileManagerComponentBase::set_cmdResponseOut_OutputPort
void set_cmdResponseOut_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputCmdResponsePort *port)
Definition: FileManagerComponentAc.cpp:118
Svc::FileManagerComponentBase::ShellCommand_preMsgHook
virtual void ShellCommand_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Definition: FileManagerComponentAc.cpp:1152
Fw::OutputLogPort
Definition: LogPortAc.hpp:61
Svc::FileManagerComponentBase::MoveFile_cmdHandler
virtual void MoveFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &sourceFileName, const Fw::CmdStringArg &destFileName)=0
Handler for command MoveFile.
Svc::InputPingPort
Definition: PingPortAc.hpp:27
ActiveComponentBase.hpp
Svc::OutputPingPort
Definition: PingPortAc.hpp:48
Svc::FileManagerComponentBase::isConnected_cmdResponseOut_OutputPort
bool isConnected_cmdResponseOut_OutputPort(NATIVE_INT_TYPE portNum)
Definition: FileManagerComponentAc.cpp:651
Svc::FileManagerComponentBase::log_ACTIVITY_HI_RemoveDirectorySucceeded
void log_ACTIVITY_HI_RemoveDirectorySucceeded(Fw::LogStringArg &dirName)
Definition: FileManagerComponentAc.cpp:2237
TlmString.hpp
Svc::FileManagerComponentBase::m_pingIn_InputPort
Svc::InputPingPort m_pingIn_InputPort[NUM_PINGIN_INPUT_PORTS]
Definition: FileManagerComponentAc.hpp:887
TlmBuffer.hpp
Svc::FileManagerComponentBase::OPCODE_SHELLCOMMAND
PROTECTED OPCODE_SHELLCOMMAND
Definition: FileManagerComponentAc.hpp:460
FwOpcodeType
#define FwOpcodeType
Type representation for a command opcode.
Definition: FpConfig.hpp:62
Svc::FileManagerComponentBase::AppendFile_cmdHandler
virtual void AppendFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &source, const Fw::CmdStringArg &target)=0
Handler for command AppendFile.
Fw::QueuedComponentBase::MsgDispatchStatus
MsgDispatchStatus
Definition: QueuedComponentBase.hpp:25
Svc::FileManagerComponentBase::args
PROTECTED U32 Fw::CmdArgBuffer & args
Definition: FileManagerComponentAc.hpp:586
Svc::FileManagerComponentBase::log_WARNING_HI_ShellCommandFailed
void log_WARNING_HI_ShellCommandFailed(Fw::LogStringArg &command, U32 status)
Definition: FileManagerComponentAc.cpp:1745
Svc::FileManagerComponentBase::NUM_LOGTEXT_OUTPUT_PORTS
@ NUM_LOGTEXT_OUTPUT_PORTS
Definition: FileManagerComponentAc.hpp:382
Svc::FileManagerComponentBase::MoveFile_preMsgHook
virtual void MoveFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Definition: FileManagerComponentAc.cpp:942
PingPortAc.hpp
Fw::CmdArgBuffer
Definition: CmdArgBuffer.hpp:22
Svc::FileManagerComponentBase::EVENTID_REMOVEFILESUCCEEDED
PROTECTED EVENTID_REMOVEFILESUCCEEDED
Definition: FileManagerComponentAc.hpp:660
CmdString.hpp
Svc::FileManagerComponentBase::log_WARNING_HI_FileMoveError
void log_WARNING_HI_FileMoveError(Fw::LogStringArg &sourceFileName, Fw::LogStringArg &destFileName, U32 status)
Definition: FileManagerComponentAc.cpp:1525
Svc::FileManagerComponentBase::m_pingOut_OutputPort
Svc::OutputPingPort m_pingOut_OutputPort[NUM_PINGOUT_OUTPUT_PORTS]
Definition: FileManagerComponentAc.hpp:917
Svc::FileManagerComponentBase::set_eventOut_OutputPort
void set_eventOut_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputLogPort *port)
Definition: FileManagerComponentAc.cpp:128
Svc::FileManagerComponentBase::m_p_pingIn_in
static void m_p_pingIn_in(Fw::PassiveComponentBase *callComp, NATIVE_INT_TYPE portNum, U32 key)
Definition: FileManagerComponentAc.cpp:3057
Fw::OutputCmdRegPort
Definition: CmdRegPortAc.hpp:48
Svc::FileManagerComponentBase::EVENTID_REMOVEDIRECTORYSUCCEEDED
PROTECTED EVENTID_REMOVEDIRECTORYSUCCEEDED
Definition: FileManagerComponentAc.hpp:658
Svc::FileManagerComponentBase::~FileManagerComponentBase
virtual ~FileManagerComponentBase(void)
Definition: FileManagerComponentAc.cpp:540
Svc::FileManagerComponentBase::getNum_cmdResponseOut_OutputPorts
NATIVE_INT_TYPE getNum_cmdResponseOut_OutputPorts(void)
Definition: FileManagerComponentAc.cpp:579
Svc::FileManagerComponentBase::get_cmdIn_InputPort
Fw::InputCmdPort * get_cmdIn_InputPort(NATIVE_INT_TYPE portNum)
Definition: FileManagerComponentAc.cpp:90
Svc::FileManagerComponentBase::log_WARNING_HI_AppendFileFailed
void log_WARNING_HI_AppendFileFailed(Fw::LogStringArg &source, Fw::LogStringArg &target, U32 status)
Definition: FileManagerComponentAc.cpp:1851
Svc::FileManagerComponentBase::EVENTID_FILEREMOVEERROR
PROTECTED EVENTID_FILEREMOVEERROR
Definition: FileManagerComponentAc.hpp:652
Fw::ActiveComponentBase
Definition: ActiveComponentBase.hpp:20
Svc::FileManagerComponentBase::log_ACTIVITY_HI_MoveFileSucceeded
void log_ACTIVITY_HI_MoveFileSucceeded(Fw::LogStringArg &sourceFileName, Fw::LogStringArg &destFileName)
Definition: FileManagerComponentAc.cpp:2325
CmdResponsePortAc.hpp
Svc::FileManagerComponentBase::PROTECTED
PROTECTED PROTECTED
Definition: FileManagerComponentAc.hpp:462
Svc::FileManagerComponentBase::key
PROTECTED U32 key
Definition: FileManagerComponentAc.hpp:249
LogTextPortAc.hpp
Svc::FileManagerComponentBase::ShellCommand_cmdHandler
virtual void ShellCommand_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &command, const Fw::CmdStringArg &logFileName)=0
Handler for command ShellCommand.
Svc::FileManagerComponentBase::get_pingIn_InputPort
Svc::InputPingPort * get_pingIn_InputPort(NATIVE_INT_TYPE portNum)
Definition: FileManagerComponentAc.cpp:97
Fw::InputCmdPort
Definition: CmdPortAc.hpp:28
Svc::FileManagerComponentBase::m_eventOut_OutputPort
Fw::OutputLogPort m_eventOut_OutputPort[NUM_EVENTOUT_OUTPUT_PORTS]
Definition: FileManagerComponentAc.hpp:905
FpConfig.hpp
ISF configuration file.
Svc::FileManagerComponentBase::NUM_PINGOUT_OUTPUT_PORTS
@ NUM_PINGOUT_OUTPUT_PORTS
Definition: FileManagerComponentAc.hpp:381
Svc::FileManagerComponentBase::RemoveFile_cmdHandler
virtual void RemoveFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName)=0
Handler for command RemoveFile.
Svc::FileManagerComponentBase::MoveFile_cmdHandlerBase
void MoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Definition: FileManagerComponentAc.cpp:881
Svc::FileManagerComponentBase::NUM_CMDRESPONSEOUT_OUTPUT_PORTS
@ NUM_CMDRESPONSEOUT_OUTPUT_PORTS
Definition: FileManagerComponentAc.hpp:377
Svc::FileManagerComponentBase::RemoveFile_cmdHandlerBase
void RemoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Definition: FileManagerComponentAc.cpp:1021
Svc::FileManagerComponentBase::getNum_eventOut_OutputPorts
NATIVE_INT_TYPE getNum_eventOut_OutputPorts(void)
Definition: FileManagerComponentAc.cpp:587
Svc::FileManagerComponentBase::opCode
PRIVATE NATIVE_INT_TYPE FwOpcodeType opCode
Definition: FileManagerComponentAc.hpp:936
Svc::FileManagerComponentBase::regCommands
void regCommands(void)
Register commands with the Command Dispatcher.
Definition: FileManagerComponentAc.cpp:264
Svc
Definition: ActiveLoggerComponentAc.cpp:22
Svc::FileManagerComponentBase::getNum_timeCaller_OutputPorts
NATIVE_INT_TYPE getNum_timeCaller_OutputPorts(void)
Definition: FileManagerComponentAc.cpp:595
Svc::FileManagerComponentBase::log_ACTIVITY_HI_ShellCommandStarted
void log_ACTIVITY_HI_ShellCommandStarted(Fw::LogStringArg &command)
Definition: FileManagerComponentAc.cpp:2605
Fw::InputCmdResponsePort
Definition: CmdResponsePortAc.hpp:37
Svc::FileManagerComponentBase::NUM_CMDIN_INPUT_PORTS
@ NUM_CMDIN_INPUT_PORTS
Definition: FileManagerComponentAc.hpp:320
Svc::FileManagerComponentBase::CHANNELID_ERRORS
PROTECTED CHANNELID_ERRORS
Channel ID for Errors.
Definition: FileManagerComponentAc.hpp:839
Svc::FileManagerComponentBase::EVENTID_SHELLCOMMANDSUCCEEDED
PROTECTED EVENTID_SHELLCOMMANDSUCCEEDED
Definition: FileManagerComponentAc.hpp:656
Svc::FileManagerComponentBase::isConnected_pingOut_OutputPort
bool isConnected_pingOut_OutputPort(NATIVE_INT_TYPE portNum)
Definition: FileManagerComponentAc.cpp:691
Fw::InputLogPort
Definition: LogPortAc.hpp:40
Fw::OutputTimePort
Definition: TimePortAc.hpp:49
Svc::FileManagerComponentBase::log_ACTIVITY_HI_ShellCommandSucceeded
void log_ACTIVITY_HI_ShellCommandSucceeded(Fw::LogStringArg &command)
Definition: FileManagerComponentAc.cpp:2061
Svc::FileManagerComponentBase::EVENTID_DIRECTORYREMOVEERROR
PROTECTED EVENTID_DIRECTORYREMOVEERROR
Definition: FileManagerComponentAc.hpp:650
Svc::FileManagerComponentBase::AppendFile_cmdHandlerBase
void AppendFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Definition: FileManagerComponentAc.cpp:1161
Svc::FileManagerComponentBase::log_ACTIVITY_HI_AppendFileStarted
void log_ACTIVITY_HI_AppendFileStarted(Fw::LogStringArg &source, Fw::LogStringArg &target)
Definition: FileManagerComponentAc.cpp:2509
Svc::FileManagerComponentBase
Auto-generated base for FileManager component.
Definition: FileManagerComponentAc.hpp:47
Svc::FileManagerComponentBase::log_ACTIVITY_HI_CreateDirectorySucceeded
void log_ACTIVITY_HI_CreateDirectorySucceeded(Fw::LogStringArg &dirName)
Definition: FileManagerComponentAc.cpp:2149
Svc::FileManagerComponentBase::EVENTID_REMOVEFILESTARTED
PROTECTED EVENTID_REMOVEFILESTARTED
Definition: FileManagerComponentAc.hpp:666
Time.hpp
Svc::FileManagerComponentBase::NUM_TIMECALLER_OUTPUT_PORTS
@ NUM_TIMECALLER_OUTPUT_PORTS
Definition: FileManagerComponentAc.hpp:379
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition: BasicTypes.hpp:29
Svc::FileManagerComponentBase::ShellCommand_cmdHandlerBase
void ShellCommand_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Definition: FileManagerComponentAc.cpp:1091
Svc::FileManagerComponentBase::log_ACTIVITY_HI_RemoveDirectoryStarted
void log_ACTIVITY_HI_RemoveDirectoryStarted(Fw::LogStringArg &dirName)
Definition: FileManagerComponentAc.cpp:2781
Svc::FileManagerComponentBase::set_timeCaller_OutputPort
void set_timeCaller_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputTimePort *port)
Definition: FileManagerComponentAc.cpp:138
Svc::FileManagerComponentBase::NUM_EVENTOUT_OUTPUT_PORTS
@ NUM_EVENTOUT_OUTPUT_PORTS
Definition: FileManagerComponentAc.hpp:378
Svc::FileManagerComponentBase::EVENTID_SHELLCOMMANDSTARTED
PROTECTED EVENTID_SHELLCOMMANDSTARTED
Definition: FileManagerComponentAc.hpp:662
Svc::FileManagerComponentBase::m_timeCaller_OutputPort
Fw::OutputTimePort m_timeCaller_OutputPort[NUM_TIMECALLER_OUTPUT_PORTS]
Definition: FileManagerComponentAc.hpp:909
OutputSerializePort.hpp
TimePortAc.hpp
LogPortAc.hpp
Fw::OutputLogTextPort
Definition: LogTextPortAc.hpp:61
Svc::FileManagerComponentBase::isConnected_tlmOut_OutputPort
bool isConnected_tlmOut_OutputPort(NATIVE_INT_TYPE portNum)
Definition: FileManagerComponentAc.cpp:681
Svc::FileManagerComponentBase::isConnected_eventOut_OutputPort
bool isConnected_eventOut_OutputPort(NATIVE_INT_TYPE portNum)
Definition: FileManagerComponentAc.cpp:661
Svc::FileManagerComponentBase::getNum_pingOut_OutputPorts
NATIVE_INT_TYPE getNum_pingOut_OutputPorts(void)
Definition: FileManagerComponentAc.cpp:619
CmdArgBuffer.hpp
Fw::InputLogTextPort
Definition: LogTextPortAc.hpp:40
Svc::FileManagerComponentBase::dirName
PROTECTED U32 const Fw::CmdStringArg & dirName
Definition: FileManagerComponentAc.hpp:476