F´ Flight Software - C/C++ Documentation devel
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 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 "FpConfig.hpp"
11#include "Fw/Cmd/CmdPortAc.hpp"
14#include "Fw/Cmd/CmdString.hpp"
16#include "Fw/Log/LogPortAc.hpp"
17#include "Fw/Log/LogString.hpp"
18#if FW_ENABLE_TEXT_LOGGING == 1
20#endif
24#include "Fw/Tlm/TlmPortAc.hpp"
25#include "Fw/Tlm/TlmString.hpp"
27
28namespace Svc {
29
36 {
37
38 // ----------------------------------------------------------------------
39 // Friend classes
40 // ----------------------------------------------------------------------
41
44
45 PROTECTED:
46
47 // ----------------------------------------------------------------------
48 // Constants
49 // ----------------------------------------------------------------------
50
52 enum {
54 };
55
57 enum {
59 };
60
62 enum {
69 };
70
72 enum {
74 };
75
77 enum {
85 };
86
88 enum {
110 };
111
113 enum {
116 };
117
118 public:
119
120 // ----------------------------------------------------------------------
121 // Component initialization
122 // ----------------------------------------------------------------------
123
125 void init(
126 NATIVE_INT_TYPE queueDepth,
127 NATIVE_INT_TYPE instance = 0
128 );
129
130 public:
131
132 // ----------------------------------------------------------------------
133 // Getters for special input ports
134 // ----------------------------------------------------------------------
135
140 NATIVE_INT_TYPE portNum
141 );
142
143 public:
144
145 // ----------------------------------------------------------------------
146 // Getters for typed input ports
147 // ----------------------------------------------------------------------
148
153 NATIVE_INT_TYPE portNum
154 );
155
156 public:
157
158 // ----------------------------------------------------------------------
159 // Connect input ports to special output ports
160 // ----------------------------------------------------------------------
161
162#if FW_ENABLE_TEXT_LOGGING == 1
163
165 void set_LogText_OutputPort(
166 NATIVE_INT_TYPE portNum,
168 );
169
170#endif
171
174 NATIVE_INT_TYPE portNum,
176 );
177
180 NATIVE_INT_TYPE portNum,
182 );
183
186 NATIVE_INT_TYPE portNum,
187 Fw::InputLogPort* port
188 );
189
192 NATIVE_INT_TYPE portNum,
193 Fw::InputTimePort* port
194 );
195
198 NATIVE_INT_TYPE portNum,
199 Fw::InputTlmPort* port
200 );
201
202 public:
203
204 // ----------------------------------------------------------------------
205 // Connect typed input ports to typed output ports
206 // ----------------------------------------------------------------------
207
210 NATIVE_INT_TYPE portNum,
211 Svc::InputPingPort* port
212 );
213
214#if FW_PORT_SERIALIZATION
215
216 public:
217
218 // ----------------------------------------------------------------------
219 // Connect serial input ports to special output ports
220 // ----------------------------------------------------------------------
221
222#if FW_ENABLE_TEXT_LOGGING == 1
223
225 void set_LogText_OutputPort(
226 NATIVE_INT_TYPE portNum,
227 Fw::InputSerializePort* port
228 );
229
230#endif
231
234 NATIVE_INT_TYPE portNum,
235 Fw::InputSerializePort* port
236 );
237
240 NATIVE_INT_TYPE portNum,
241 Fw::InputSerializePort* port
242 );
243
246 NATIVE_INT_TYPE portNum,
247 Fw::InputSerializePort* port
248 );
249
252 NATIVE_INT_TYPE portNum,
253 Fw::InputSerializePort* port
254 );
255
258 NATIVE_INT_TYPE portNum,
259 Fw::InputSerializePort* port
260 );
261
262#endif
263
264#if FW_PORT_SERIALIZATION
265
266 public:
267
268 // ----------------------------------------------------------------------
269 // Connect serial input ports to typed output ports
270 // ----------------------------------------------------------------------
271
274 NATIVE_INT_TYPE portNum,
275 Fw::InputSerializePort* port
276 );
277
278#endif
279
280 public:
281
282 // ----------------------------------------------------------------------
283 // Command registration
284 // ----------------------------------------------------------------------
285
289 void regCommands();
290
291 PROTECTED:
292
293 // ----------------------------------------------------------------------
294 // Component construction and destruction
295 // ----------------------------------------------------------------------
296
299 const char* compName = ""
300 );
301
304
305 PROTECTED:
306
307 // ----------------------------------------------------------------------
308 // Getters for numbers of special input ports
309 // ----------------------------------------------------------------------
310
315
316 PROTECTED:
317
318 // ----------------------------------------------------------------------
319 // Getters for numbers of typed input ports
320 // ----------------------------------------------------------------------
321
326
327 PROTECTED:
328
329 // ----------------------------------------------------------------------
330 // Getters for numbers of special output ports
331 // ----------------------------------------------------------------------
332
333#if FW_ENABLE_TEXT_LOGGING == 1
334
338 NATIVE_INT_TYPE getNum_LogText_OutputPorts() const;
339
340#endif
341
346
351
356
361
366
367 PROTECTED:
368
369 // ----------------------------------------------------------------------
370 // Getters for numbers of typed output ports
371 // ----------------------------------------------------------------------
372
377
378 PROTECTED:
379
380 // ----------------------------------------------------------------------
381 // Connection status queries for special output ports
382 // ----------------------------------------------------------------------
383
384#if FW_ENABLE_TEXT_LOGGING == 1
385
389 bool isConnected_LogText_OutputPort(
390 NATIVE_INT_TYPE portNum
391 );
392
393#endif
394
399 NATIVE_INT_TYPE portNum
400 );
401
406 NATIVE_INT_TYPE portNum
407 );
408
413 NATIVE_INT_TYPE portNum
414 );
415
420 NATIVE_INT_TYPE portNum
421 );
422
427 NATIVE_INT_TYPE portNum
428 );
429
430 PROTECTED:
431
432 // ----------------------------------------------------------------------
433 // Connection status queries for typed output ports
434 // ----------------------------------------------------------------------
435
440 NATIVE_INT_TYPE portNum
441 );
442
443 PROTECTED:
444
445 // ----------------------------------------------------------------------
446 // Handlers to implement for typed input ports
447 // ----------------------------------------------------------------------
448
450 virtual void pingIn_handler(
451 NATIVE_INT_TYPE portNum,
452 U32 key
453 ) = 0;
454
455 PROTECTED:
456
457 // ----------------------------------------------------------------------
458 // Port handler base-class functions for typed input ports
459 //
460 // Call these functions directly to bypass the corresponding ports
461 // ----------------------------------------------------------------------
462
465 NATIVE_INT_TYPE portNum,
466 U32 key
467 );
468
469 PROTECTED:
470
471 // ----------------------------------------------------------------------
472 // Pre-message hooks for typed async input ports
473 //
474 // Each of these functions is invoked just before processing a message
475 // on the corresponding port. By default, they do nothing. You can
476 // override them to provide specific pre-message behavior.
477 // ----------------------------------------------------------------------
478
480 virtual void pingIn_preMsgHook(
481 NATIVE_INT_TYPE portNum,
482 U32 key
483 );
484
485 PROTECTED:
486
487 // ----------------------------------------------------------------------
488 // Invocation functions for typed output ports
489 // ----------------------------------------------------------------------
490
492 void pingOut_out(
493 NATIVE_INT_TYPE portNum,
494 U32 key
495 );
496
497 PROTECTED:
498
499 // ----------------------------------------------------------------------
500 // Command response
501 // ----------------------------------------------------------------------
502
504 void cmdResponse_out(
505 FwOpcodeType opCode,
506 U32 cmdSeq,
507 Fw::CmdResponse response
508 );
509
510 PROTECTED:
511
512 // ----------------------------------------------------------------------
513 // Command handlers to implement
514 // ----------------------------------------------------------------------
515
520 FwOpcodeType opCode,
521 U32 cmdSeq,
522 const Fw::CmdStringArg& dirName
523 ) = 0;
524
529 FwOpcodeType opCode,
530 U32 cmdSeq,
531 const Fw::CmdStringArg& sourceFileName,
532 const Fw::CmdStringArg& destFileName
533 ) = 0;
534
539 FwOpcodeType opCode,
540 U32 cmdSeq,
541 const Fw::CmdStringArg& dirName
542 ) = 0;
543
548 FwOpcodeType opCode,
549 U32 cmdSeq,
550 const Fw::CmdStringArg& fileName,
551 bool ignoreErrors
552 ) = 0;
553
558 FwOpcodeType opCode,
559 U32 cmdSeq,
560 const Fw::CmdStringArg& command,
561 const Fw::CmdStringArg& logFileName
562 ) = 0;
563
568 FwOpcodeType opCode,
569 U32 cmdSeq,
570 const Fw::CmdStringArg& source,
571 const Fw::CmdStringArg& target
572 ) = 0;
573
576 FwOpcodeType opCode,
577 U32 cmdSeq,
578 const Fw::CmdStringArg& fileName
579 ) = 0;
580
581 PROTECTED:
582
583 // ----------------------------------------------------------------------
584 // Command handler base-class functions
585 //
586 // Call these functions directly to bypass the command input port
587 // ----------------------------------------------------------------------
588
593 FwOpcodeType opCode,
594 U32 cmdSeq,
595 Fw::CmdArgBuffer& args
596 );
597
602 FwOpcodeType opCode,
603 U32 cmdSeq,
604 Fw::CmdArgBuffer& args
605 );
606
611 FwOpcodeType opCode,
612 U32 cmdSeq,
613 Fw::CmdArgBuffer& args
614 );
615
620 FwOpcodeType opCode,
621 U32 cmdSeq,
622 Fw::CmdArgBuffer& args
623 );
624
629 FwOpcodeType opCode,
630 U32 cmdSeq,
631 Fw::CmdArgBuffer& args
632 );
633
638 FwOpcodeType opCode,
639 U32 cmdSeq,
640 Fw::CmdArgBuffer& args
641 );
642
645 FwOpcodeType opCode,
646 U32 cmdSeq,
647 Fw::CmdArgBuffer& args
648 );
649
650 PROTECTED:
651
652 // ----------------------------------------------------------------------
653 // Pre-message hooks for async commands
654 //
655 // Each of these functions is invoked just before processing the
656 // corresponding command. By default they do nothing. You can
657 // override them to provide specific pre-command behavior.
658 // ----------------------------------------------------------------------
659
661 virtual void CreateDirectory_preMsgHook(
662 FwOpcodeType opCode,
663 U32 cmdSeq
664 );
665
667 virtual void MoveFile_preMsgHook(
668 FwOpcodeType opCode,
669 U32 cmdSeq
670 );
671
673 virtual void RemoveDirectory_preMsgHook(
674 FwOpcodeType opCode,
675 U32 cmdSeq
676 );
677
679 virtual void RemoveFile_preMsgHook(
680 FwOpcodeType opCode,
681 U32 cmdSeq
682 );
683
685 virtual void ShellCommand_preMsgHook(
686 FwOpcodeType opCode,
687 U32 cmdSeq
688 );
689
691 virtual void AppendFile_preMsgHook(
692 FwOpcodeType opCode,
693 U32 cmdSeq
694 );
695
697 virtual void FileSize_preMsgHook(
698 FwOpcodeType opCode,
699 U32 cmdSeq
700 );
701
702 PROTECTED:
703
704 // ----------------------------------------------------------------------
705 // Event logging functions
706 // ----------------------------------------------------------------------
707
712 const Fw::LogStringArg& dirName,
713 U32 status
714 );
715
720 const Fw::LogStringArg& dirName,
721 U32 status
722 );
723
728 const Fw::LogStringArg& sourceFileName,
729 const Fw::LogStringArg& destFileName,
730 U32 status
731 );
732
737 const Fw::LogStringArg& fileName,
738 U32 status
739 );
740
745 const Fw::LogStringArg& command,
746 U32 status
747 );
748
753 const Fw::LogStringArg& source,
754 const Fw::LogStringArg& target,
755 U32 status
756 );
757
762 const Fw::LogStringArg& source,
763 const Fw::LogStringArg& target
764 );
765
770 const Fw::LogStringArg& command
771 );
772
777 const Fw::LogStringArg& dirName
778 );
779
784 const Fw::LogStringArg& dirName
785 );
786
791 const Fw::LogStringArg& sourceFileName,
792 const Fw::LogStringArg& destFileName
793 );
794
799 const Fw::LogStringArg& fileName
800 );
801
806 const Fw::LogStringArg& source,
807 const Fw::LogStringArg& target
808 );
809
814 const Fw::LogStringArg& command
815 );
816
821 const Fw::LogStringArg& dirName
822 );
823
828 const Fw::LogStringArg& dirName
829 );
830
835 const Fw::LogStringArg& sourceFileName,
836 const Fw::LogStringArg& destFileName
837 );
838
843 const Fw::LogStringArg& fileName
844 );
845
850 const Fw::LogStringArg& fileName,
851 U64 size
852 );
853
858 const Fw::LogStringArg& fileName,
859 U32 status
860 );
861
866 const Fw::LogStringArg& fileName
867 );
868
869 PROTECTED:
870
871 // ----------------------------------------------------------------------
872 // Telemetry write functions
873 // ----------------------------------------------------------------------
874
879 U32 arg,
880 Fw::Time _tlmTime = Fw::Time()
881 );
882
886 void tlmWrite_Errors(
887 U32 arg,
888 Fw::Time _tlmTime = Fw::Time()
889 );
890
891 PROTECTED:
892
893 // ----------------------------------------------------------------------
894 // Time
895 // ----------------------------------------------------------------------
896
901
902 PRIVATE:
903
904 // ----------------------------------------------------------------------
905 // Message dispatch functions
906 // ----------------------------------------------------------------------
907
909 virtual MsgDispatchStatus doDispatch();
910
911 PRIVATE:
912
913 // ----------------------------------------------------------------------
914 // Calls for messages received on special input ports
915 // ----------------------------------------------------------------------
916
918 static void m_p_cmdIn_in(
919 Fw::PassiveComponentBase* callComp,
920 NATIVE_INT_TYPE portNum,
921 FwOpcodeType opCode,
922 U32 cmdSeq,
923 Fw::CmdArgBuffer& args
924 );
925
926 PRIVATE:
927
928 // ----------------------------------------------------------------------
929 // Calls for messages received on typed input ports
930 // ----------------------------------------------------------------------
931
933 static void m_p_pingIn_in(
934 Fw::PassiveComponentBase* callComp,
935 NATIVE_INT_TYPE portNum,
936 U32 key
937 );
938
939 PRIVATE:
940
941 // ----------------------------------------------------------------------
942 // Special input ports
943 // ----------------------------------------------------------------------
944
946 Fw::InputCmdPort m_cmdIn_InputPort[NUM_CMDIN_INPUT_PORTS];
947
948 PRIVATE:
949
950 // ----------------------------------------------------------------------
951 // Typed input ports
952 // ----------------------------------------------------------------------
953
955 Svc::InputPingPort m_pingIn_InputPort[NUM_PINGIN_INPUT_PORTS];
956
957 PRIVATE:
958
959 // ----------------------------------------------------------------------
960 // Special output ports
961 // ----------------------------------------------------------------------
962
963#if FW_ENABLE_TEXT_LOGGING == 1
964
967
968#endif
969
971 Fw::OutputCmdRegPort m_cmdRegOut_OutputPort[NUM_CMDREGOUT_OUTPUT_PORTS];
972
975
977 Fw::OutputLogPort m_eventOut_OutputPort[NUM_EVENTOUT_OUTPUT_PORTS];
978
980 Fw::OutputTimePort m_timeCaller_OutputPort[NUM_TIMECALLER_OUTPUT_PORTS];
981
983 Fw::OutputTlmPort m_tlmOut_OutputPort[NUM_TLMOUT_OUTPUT_PORTS];
984
985 PRIVATE:
986
987 // ----------------------------------------------------------------------
988 // Typed output ports
989 // ----------------------------------------------------------------------
990
992 Svc::OutputPingPort m_pingOut_OutputPort[NUM_PINGOUT_OUTPUT_PORTS];
993
994 };
995
996}
997
998#endif
PlatformIntType NATIVE_INT_TYPE
Definition BasicTypes.h:51
U32 FwOpcodeType
Definition FpConfig.h:56
C++-compatible configuration header for fprime configuration.
Enum representing a command response.
void init()
Object initializer.
Definition ObjBase.cpp:27
Auto-generated base for FileManager component.
void set_timeCaller_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
NATIVE_INT_TYPE getNum_pingIn_InputPorts() const
void pingOut_out(NATIVE_INT_TYPE portNum, U32 key)
Invoke output port pingOut.
void log_ACTIVITY_HI_AppendFileSucceeded(const Fw::LogStringArg &source, const Fw::LogStringArg &target)
NATIVE_INT_TYPE getNum_tlmOut_OutputPorts() const
bool isConnected_eventOut_OutputPort(NATIVE_INT_TYPE portNum)
void log_WARNING_HI_DirectoryRemoveError(const Fw::LogStringArg &dirName, U32 status)
void log_WARNING_HI_DirectoryCreateError(const Fw::LogStringArg &dirName, U32 status)
NATIVE_INT_TYPE getNum_pingOut_OutputPorts() const
NATIVE_INT_TYPE getNum_cmdIn_InputPorts() const
virtual void FileSize_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command FileSize.
virtual void FileSize_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName)=0
Handler for command FileSize.
void ShellCommand_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void log_ACTIVITY_HI_ShellCommandSucceeded(const Fw::LogStringArg &command)
void log_WARNING_HI_FileSizeError(const Fw::LogStringArg &fileName, U32 status)
void set_cmdResponseOut_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
void log_ACTIVITY_HI_ShellCommandStarted(const Fw::LogStringArg &command)
virtual void RemoveDirectory_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &dirName)=0
@ OPCODE_REMOVEDIRECTORY
Remove a directory, which must be empty.
@ OPCODE_SHELLCOMMAND
Perform a Linux shell command and write the output to a log file.
@ OPCODE_APPENDFILE
Append 1 file's contents to the end of another.
bool isConnected_timeCaller_OutputPort(NATIVE_INT_TYPE portNum)
virtual void MoveFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &sourceFileName, const Fw::CmdStringArg &destFileName)=0
virtual void AppendFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command AppendFile.
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
void tlmWrite_CommandsExecuted(U32 arg, Fw::Time _tlmTime=Fw::Time())
void set_tlmOut_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
Fw::InputCmdPort * get_cmdIn_InputPort(NATIVE_INT_TYPE portNum)
void tlmWrite_Errors(U32 arg, Fw::Time _tlmTime=Fw::Time())
void log_ACTIVITY_HI_RemoveFileStarted(const Fw::LogStringArg &fileName)
virtual void ShellCommand_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &command, const Fw::CmdStringArg &logFileName)=0
void regCommands()
Register commands with the Command Dispatcher.
void AppendFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void FileSize_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Base-class handler function for command FileSize.
virtual void pingIn_handler(NATIVE_INT_TYPE portNum, U32 key)=0
Handler for input port pingIn.
Svc::InputPingPort * get_pingIn_InputPort(NATIVE_INT_TYPE portNum)
void log_ACTIVITY_HI_FileSizeSucceeded(const Fw::LogStringArg &fileName, U64 size)
virtual ~FileManagerComponentBase()
Destroy FileManagerComponentBase object.
virtual void CreateDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CreateDirectory.
bool isConnected_tlmOut_OutputPort(NATIVE_INT_TYPE portNum)
void pingIn_handlerBase(NATIVE_INT_TYPE portNum, U32 key)
Handler base-class function for input port pingIn.
friend class FileManagerComponentBaseFriend
Friend class for white-box testing.
void RemoveDirectory_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
virtual void AppendFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &source, const Fw::CmdStringArg &target)=0
virtual void RemoveFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RemoveFile.
void set_pingOut_OutputPort(NATIVE_INT_TYPE portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
void log_ACTIVITY_HI_FileSizeStarted(const Fw::LogStringArg &fileName)
void MoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void log_ACTIVITY_HI_RemoveFileSucceeded(const Fw::LogStringArg &fileName)
NATIVE_INT_TYPE getNum_timeCaller_OutputPorts() const
void CreateDirectory_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
NATIVE_INT_TYPE getNum_cmdResponseOut_OutputPorts() const
void log_ACTIVITY_HI_AppendFileStarted(const Fw::LogStringArg &source, const Fw::LogStringArg &target)
void set_cmdRegOut_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
void log_WARNING_HI_FileMoveError(const Fw::LogStringArg &sourceFileName, const Fw::LogStringArg &destFileName, U32 status)
bool isConnected_pingOut_OutputPort(NATIVE_INT_TYPE portNum)
@ CHANNELID_COMMANDSEXECUTED
Channel ID for CommandsExecuted.
virtual void RemoveDirectory_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command RemoveDirectory.
void log_ACTIVITY_HI_RemoveDirectoryStarted(const Fw::LogStringArg &dirName)
bool isConnected_cmdResponseOut_OutputPort(NATIVE_INT_TYPE portNum)
void log_WARNING_HI_AppendFileFailed(const Fw::LogStringArg &source, const Fw::LogStringArg &target, U32 status)
NATIVE_INT_TYPE getNum_eventOut_OutputPorts() const
void log_ACTIVITY_HI_CreateDirectorySucceeded(const Fw::LogStringArg &dirName)
FileManagerComponentBase(const char *compName="")
Construct FileManagerComponentBase object.
void RemoveFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
bool isConnected_cmdRegOut_OutputPort(NATIVE_INT_TYPE portNum)
@ EVENTID_APPENDFILESUCCEEDED
The File System component appended 2 files without error.
@ EVENTID_REMOVEFILESTARTED
The File System component began deleting an existing file.
@ EVENTID_FILESIZEERROR
Failed to get file size.
@ EVENTID_DIRECTORYREMOVEERROR
An error occurred while attempting to remove a directory.
@ EVENTID_APPENDFILESTARTED
The File System component appended 2 files without error.
@ EVENTID_SHELLCOMMANDSTARTED
The File System component began executing a shell command.
@ EVENTID_APPENDFILEFAILED
The File System component returned status non-zero when trying to append 2 files together.
@ EVENTID_MOVEFILESTARTED
The File System component began moving a file to a new location.
@ EVENTID_FILEREMOVEERROR
An error occurred while attempting to remove a file.
@ EVENTID_REMOVEDIRECTORYSTARTED
The File System component began deleting a directory.
@ EVENTID_SHELLCOMMANDFAILED
The File System component executed a shell command that returned status non-zero.
@ EVENTID_CREATEDIRECTORYSUCCEEDED
The File System component created a new directory without error.
@ EVENTID_MOVEFILESUCCEEDED
The File System component moved a file to a new location without error.
@ EVENTID_REMOVEDIRECTORYSUCCEEDED
The File System component deleted and existing directory without error.
@ EVENTID_DIRECTORYCREATEERROR
An error occurred while attempting to create a directory.
@ EVENTID_CREATEDIRECTORYSTARTED
The File System component began creating a new directory.
@ EVENTID_SHELLCOMMANDSUCCEEDED
The File System component executed a shell command that returned status zero.
@ EVENTID_FILEMOVEERROR
An error occurred while attempting to move a file.
@ EVENTID_REMOVEFILESUCCEEDED
The File System component deleted an existing file without error.
void log_ACTIVITY_HI_CreateDirectoryStarted(const Fw::LogStringArg &dirName)
virtual void RemoveFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName, bool ignoreErrors)=0
virtual void CreateDirectory_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &dirName)=0
void log_ACTIVITY_HI_RemoveDirectorySucceeded(const Fw::LogStringArg &dirName)
void set_eventOut_OutputPort(NATIVE_INT_TYPE portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
void log_ACTIVITY_HI_MoveFileSucceeded(const Fw::LogStringArg &sourceFileName, const Fw::LogStringArg &destFileName)
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.
void log_WARNING_HI_ShellCommandFailed(const Fw::LogStringArg &command, U32 status)
void log_ACTIVITY_HI_MoveFileStarted(const Fw::LogStringArg &sourceFileName, const Fw::LogStringArg &destFileName)
void log_WARNING_HI_FileRemoveError(const Fw::LogStringArg &fileName, U32 status)
virtual void pingIn_preMsgHook(NATIVE_INT_TYPE portNum, U32 key)
Pre-message hook for async input port pingIn.
NATIVE_INT_TYPE getNum_cmdRegOut_OutputPorts() const
#define U64(C)
Definition sha.h:176