F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
FileDispatcher.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title FileDispatcher.hpp
3 // \author tcanham
4 // \brief hpp file for FileDispatcher component implementation class
5 // ======================================================================
6 
7 #ifndef Svc_FileDispatcher_HPP
8 #define Svc_FileDispatcher_HPP
9 
11 
12 namespace Svc {
13 
15  Fw::String fileExt; // file extension for dispatch
17  bool enabled; // whether dispatching is enabled for this type
18 };
19 
23 };
24 
26  public:
27  // ----------------------------------------------------------------------
28  // Component construction and destruction
29  // ----------------------------------------------------------------------
30 
32  FileDispatcher(const char* const compName
33  );
34 
37 
39  void configure(const FileDispatcherTable& table);
40 
41  private:
42  // ----------------------------------------------------------------------
43  // Handler implementations for commands
44  // ----------------------------------------------------------------------
45 
49  void fileAnnounceRecv_handler(FwIndexType portNum,
50  Fw::StringBase& file_name
51  ) override;
52 
53  private:
54  // ----------------------------------------------------------------------
55  // Handler implementations for commands
56  // ----------------------------------------------------------------------
57 
59  void ENABLE_DISPATCH_cmdHandler(
60  FwOpcodeType opCode,
61  U32 cmdSeq,
63  Fw::Enabled enable
64  ) override;
65 
69  void pingIn_handler(FwIndexType portNum,
70  U32 key
71  ) override;
72 
74  FileDispatcherTable m_dispatchTable;
75 };
76 
77 } // namespace Svc
78 
79 #endif
bool enabled
FwIdType FwOpcodeType
The type of a command opcode.
PlatformSizeType FwSizeType
void configure(const FileDispatcherTable &table)
configure the component
FileDispatcherEntry entries[Svc::FileDispatcherCfg::FILE_DISPATCHER_MAX_TABLE_SIZE]
FileDispatcher(const char *const compName)
Construct FileDispatcher object.
Svc::FileDispatcherCfg::FileDispatchPort port
Enabled and disabled states.
PlatformIndexType FwIndexType
Auto-generated base for FileDispatcher component.
RateGroupDivider component implementation.
Fw::String fileExt
~FileDispatcher()
Destroy FileDispatcher object.