![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for FileManager component. More...
#include <Svc/FileManager/FileManagerComponentAc.hpp>
Classes | |
| struct | ContainerId |
| The container ids. More... | |
| struct | ContainerPriority |
| The container default priorities. More... | |
| class | DpContainer |
| A data product container. More... | |
| struct | RecordId |
| The record ids. More... | |
Public Member Functions | |
| void | init (FwSizeType queueDepth, FwEnumStoreType instance=0) |
| Initialize FileManagerComponentBase object. More... | |
| Fw::InputCmdPort * | get_cmdIn_InputPort (FwIndexType portNum) |
| Svc::InputPingPort * | get_pingIn_InputPort (FwIndexType portNum) |
| Svc::InputSchedPort * | get_schedIn_InputPort (FwIndexType portNum) |
| void | set_cmdRegOut_OutputPort (FwIndexType portNum, Fw::InputCmdRegPort *port) |
| Connect port to cmdRegOut[portNum]. More... | |
| void | set_cmdResponseOut_OutputPort (FwIndexType portNum, Fw::InputCmdResponsePort *port) |
| Connect port to cmdResponseOut[portNum]. More... | |
| void | set_eventOut_OutputPort (FwIndexType portNum, Fw::InputLogPort *port) |
| Connect port to eventOut[portNum]. More... | |
| void | set_productGetOut_OutputPort (FwIndexType portNum, Fw::InputDpGetPort *port) |
| Connect port to productGetOut[portNum]. More... | |
| void | set_productSendOut_OutputPort (FwIndexType portNum, Fw::InputDpSendPort *port) |
| Connect port to productSendOut[portNum]. More... | |
| void | set_timeCaller_OutputPort (FwIndexType portNum, Fw::InputTimePort *port) |
| Connect port to timeCaller[portNum]. More... | |
| void | set_tlmOut_OutputPort (FwIndexType portNum, Fw::InputTlmPort *port) |
| Connect port to tlmOut[portNum]. More... | |
| void | set_pingOut_OutputPort (FwIndexType portNum, Svc::InputPingPort *port) |
| Connect port to pingOut[portNum]. More... | |
| void | regCommands () |
| Register commands with the Command Dispatcher. More... | |
Public Member Functions inherited from Fw::ActiveComponentBase | |
| void | start (FwTaskPriorityType priority=Os::Task::TASK_PRIORITY_DEFAULT, FwSizeType stackSize=Os::Task::TASK_DEFAULT, FwSizeType cpuAffinity=Os::Task::TASK_DEFAULT, FwTaskIdType identifier=static_cast< FwTaskIdType >(Os::Task::TASK_DEFAULT)) |
| called by instantiator when task is to be started More... | |
| void | exit () |
| exit task in active component More... | |
| Os::Task::Status | join () |
| Join the thread. More... | |
| DEPRECATED (Os::Task::Status join(void **value_ptr), "Switch to .join()") | |
| Join to thread with discarded value_ptr. More... | |
Public Member Functions inherited from Fw::QueuedComponentBase | |
| void | deinit () override |
| Allows de-initialization on teardown. More... | |
Public Member Functions inherited from Fw::PassiveComponentBase | |
| void | setIdBase (const FwIdType) |
| Set the ID base. More... | |
| FwIdType | getIdBase () const |
Protected Member Functions | |
| FileManagerComponentBase (const char *compName="") | |
| Construct FileManagerComponentBase object. More... | |
| virtual | ~FileManagerComponentBase () |
| Destroy FileManagerComponentBase object. More... | |
| bool | isConnected_cmdRegOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_cmdResponseOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_eventOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_productGetOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_productSendOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_timeCaller_OutputPort (FwIndexType portNum) const |
| bool | isConnected_tlmOut_OutputPort (FwIndexType portNum) const |
| bool | isConnected_pingOut_OutputPort (FwIndexType portNum) const |
| void | cmdIn_handlerBase (FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| Handler base-class function for input port cmdIn. More... | |
| virtual void | pingIn_handler (FwIndexType portNum, U32 key)=0 |
| Handler for input port pingIn. More... | |
| virtual void | schedIn_handler (FwIndexType portNum, U32 context)=0 |
| Handler for input port schedIn. More... | |
| void | pingIn_handlerBase (FwIndexType portNum, U32 key) |
| Handler base-class function for input port pingIn. More... | |
| void | schedIn_handlerBase (FwIndexType portNum, U32 context) |
| Handler base-class function for input port schedIn. More... | |
| virtual void | pingIn_preMsgHook (FwIndexType portNum, U32 key) |
| Pre-message hook for async input port pingIn. More... | |
| void | pingOut_out (FwIndexType portNum, U32 key) const |
| Invoke output port pingOut. More... | |
| virtual void | run_internalInterfaceHandler ()=0 |
| Internal interface handler for run. More... | |
| void | run_internalInterfaceInvoke () |
| Internal interface base-class function for run. More... | |
| void | cmdResponse_out (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response) |
| Emit command response. More... | |
| virtual void | CreateDirectory_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &dirName)=0 |
| virtual void | MoveFile_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &sourceFileName, const Fw::CmdStringArg &destFileName)=0 |
| virtual void | RemoveDirectory_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &dirName)=0 |
| virtual void | RemoveFile_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName, bool ignoreErrors)=0 |
| virtual void | AppendFile_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &source, const Fw::CmdStringArg &target)=0 |
| virtual void | FileSize_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName)=0 |
| virtual void | ListDirectory_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &dirName)=0 |
| virtual void | CalculateCrc_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &filename)=0 |
| virtual void | GenerateDp_cmdHandler (FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &fileName, U32 chunkSize, U64 beginOffset, U64 endOffset, U32 priority, const Svc::FileManager_GenerateDpMode &mode)=0 |
| void | CreateDirectory_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | MoveFile_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | RemoveDirectory_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | RemoveFile_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | AppendFile_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | FileSize_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | ListDirectory_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | CalculateCrc_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| void | GenerateDp_cmdHandlerBase (FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args) |
| virtual void | CreateDirectory_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command CreateDirectory. More... | |
| virtual void | MoveFile_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command MoveFile. More... | |
| virtual void | RemoveDirectory_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command RemoveDirectory. More... | |
| virtual void | RemoveFile_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command RemoveFile. More... | |
| virtual void | AppendFile_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command AppendFile. More... | |
| virtual void | FileSize_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command FileSize. More... | |
| virtual void | ListDirectory_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command ListDirectory. More... | |
| virtual void | CalculateCrc_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command CalculateCrc. More... | |
| virtual void | GenerateDp_preMsgHook (FwOpcodeType opCode, U32 cmdSeq) |
| Pre-message hook for command GenerateDp. More... | |
| void | log_WARNING_HI_DirectoryCreateError (const Fw::StringBase &dirName, U32 status) const |
| void | log_WARNING_HI_DirectoryRemoveError (const Fw::StringBase &dirName, U32 status) const |
| void | log_WARNING_HI_FileMoveError (const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName, U32 status) const |
| void | log_WARNING_HI_FileRemoveError (const Fw::StringBase &fileName, U32 status) const |
| void | log_WARNING_HI_AppendFileFailed (const Fw::StringBase &source, const Fw::StringBase &target, U32 status) const |
| void | log_ACTIVITY_HI_AppendFileSucceeded (const Fw::StringBase &source, const Fw::StringBase &target) const |
| void | log_ACTIVITY_HI_CreateDirectorySucceeded (const Fw::StringBase &dirName) const |
| void | log_ACTIVITY_HI_RemoveDirectorySucceeded (const Fw::StringBase &dirName) const |
| void | log_ACTIVITY_HI_MoveFileSucceeded (const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const |
| void | log_ACTIVITY_HI_RemoveFileSucceeded (const Fw::StringBase &fileName) const |
| void | log_ACTIVITY_HI_AppendFileStarted (const Fw::StringBase &source, const Fw::StringBase &target) const |
| void | log_ACTIVITY_HI_CreateDirectoryStarted (const Fw::StringBase &dirName) const |
| void | log_ACTIVITY_HI_RemoveDirectoryStarted (const Fw::StringBase &dirName) const |
| void | log_ACTIVITY_HI_MoveFileStarted (const Fw::StringBase &sourceFileName, const Fw::StringBase &destFileName) const |
| void | log_ACTIVITY_HI_RemoveFileStarted (const Fw::StringBase &fileName) const |
| void | log_ACTIVITY_HI_FileSizeSucceeded (const Fw::StringBase &fileName, FwSizeType size) const |
| void | log_WARNING_HI_FileSizeError (const Fw::StringBase &fileName, U32 status) const |
| void | log_ACTIVITY_HI_FileSizeStarted (const Fw::StringBase &fileName) const |
| void | log_ACTIVITY_HI_ListDirectoryStarted (const Fw::StringBase &dirName) const |
| void | log_ACTIVITY_HI_ListDirectorySucceeded (const Fw::StringBase &dirName, U32 fileCount) const |
| void | log_WARNING_HI_ListDirectoryError (const Fw::StringBase &dirName, U32 status) const |
| void | log_ACTIVITY_HI_DirectoryListing (const Fw::StringBase &dirName, const Fw::StringBase &fileName, FwSizeType fileSize) const |
| void | log_ACTIVITY_HI_DirectoryListingSubdir (const Fw::StringBase &dirName, const Fw::StringBase &subdirName) const |
| void | log_ACTIVITY_HI_CalculateCrcStarted (const Fw::StringBase &fileName) const |
| void | log_WARNING_HI_CalculateCrcFailed (const Fw::StringBase &fileName, U32 status) const |
| void | log_ACTIVITY_HI_CalculateCrcSucceeded (const Fw::StringBase &fileName, U32 crc) const |
| void | log_WARNING_HI_FileNameFormatError (const Fw::StringBase &fileName, const Fw::StringFormatStatus &status) const |
| void | log_ACTIVITY_HI_GenerateDpStarted (const Fw::StringBase &fileName, U64 bytesToWrite) const |
| void | log_ACTIVITY_HI_GenerateDpComplete (const Fw::StringBase &fileName, U32 chunks) const |
| void | log_WARNING_HI_GenerateDpFailed (const Fw::StringBase &fileName, const Svc::FileManager_GenerateDpStage &stage, U32 status) const |
| void | log_WARNING_HI_GenerateDpBufferFailed (const Fw::StringBase &fileName) const |
| void | log_WARNING_HI_GenerateDpInvalidRange (const Fw::StringBase &fileName, U64 beginOffset, U64 endOffset, U64 fileSize) const |
| void | log_WARNING_HI_PathOutsideSandbox (const Fw::StringBase &path, const Fw::StringBase &sandboxDir) const |
| void | tlmWrite (FwChanIdType id, Fw::TlmBuffer &_tlmBuff, Fw::Time _tlmTime=Fw::Time()) const |
| void | tlmWrite_CommandsExecuted (U32 arg, Fw::Time _tlmTime=Fw::Time()) const |
| void | tlmWrite_Errors (U32 arg, Fw::Time _tlmTime=Fw::Time()) const |
| Fw::Success::T | dpGet_FileDpContainer (FwSizeType dataSize, DpContainer &container) |
| void | dpSend (DpContainer &container, Fw::Time timeTag=Fw::ZERO_TIME) |
| Send a data product. More... | |
| Fw::Time | getTime () const |
Protected Member Functions inherited from Fw::ActiveComponentBase | |
| ActiveComponentBase (const char *name) | |
| Constructor. More... | |
| virtual | ~ActiveComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType instance) |
| initialization code More... | |
| virtual void | preamble () |
| A function that will be called before the event loop is entered. More... | |
| MsgDispatchStatus | dispatch () |
| The function that will dispatching messages. More... | |
| virtual void | finalizer () |
| A function that will be called after exiting the loop. More... | |
Protected Member Functions inherited from Fw::QueuedComponentBase | |
| QueuedComponentBase (const char *name) | |
| Constructor. More... | |
| virtual | ~QueuedComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType instance) |
| initialization function More... | |
| Os::Queue::Status | createQueue (FwSizeType depth, FwSizeType msgSize) |
| MsgDispatchStatus | dispatchAvailableMessages () |
| dispatches all messages currently in the queue, returning status of the dispatch More... | |
| FwSizeType | getNumMsgsDropped () |
| return number of messages dropped More... | |
| void | incNumMsgDropped () |
| increment the number of messages dropped More... | |
Protected Member Functions inherited from Fw::PassiveComponentBase | |
| PassiveComponentBase (const char *name) | |
| Named constructor. More... | |
| virtual | ~PassiveComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType instance) |
| Initialization function. More... | |
| FwEnumStoreType | getInstance () const |
Protected Member Functions inherited from Fw::ObjBase | |
| ObjBase (const char *name) | |
| ObjBase constructor. More... | |
| virtual | ~ObjBase () |
| Destructor. More... | |
| void | init () |
| Object initializer. More... | |
Static Protected Member Functions | |
| static constexpr FwSizeType | SIZE_OF_FileChunkDataRecord_RECORD (FwSizeType arraySize) |
| Record sizes. More... | |
| static constexpr FwIndexType | getNum_cmdIn_InputPorts () |
| static constexpr FwIndexType | getNum_pingIn_InputPorts () |
| static constexpr FwIndexType | getNum_schedIn_InputPorts () |
| static constexpr FwIndexType | getNum_cmdRegOut_OutputPorts () |
| static constexpr FwIndexType | getNum_cmdResponseOut_OutputPorts () |
| static constexpr FwIndexType | getNum_eventOut_OutputPorts () |
| static constexpr FwIndexType | getNum_productGetOut_OutputPorts () |
| static constexpr FwIndexType | getNum_productSendOut_OutputPorts () |
| static constexpr FwIndexType | getNum_timeCaller_OutputPorts () |
| static constexpr FwIndexType | getNum_tlmOut_OutputPorts () |
| static constexpr FwIndexType | getNum_pingOut_OutputPorts () |
Static Protected Attributes | |
| static constexpr FwSizeType | SIZE_OF_FileChunkHeaderRecord_RECORD |
Friends | |
| class | FileManagerTesterBase |
| Friend class tester to support autocoded test harness. More... | |
| class | FileManagerTester |
| Friend class tester implementation to support white-box testing. More... | |
Additional Inherited Members | |
Public Types inherited from Fw::ActiveComponentBase | |
| enum | { ACTIVE_COMPONENT_EXIT } |
Public Types inherited from Fw::QueuedComponentBase | |
| enum | MsgDispatchStatus { MSG_DISPATCH_OK, MSG_DISPATCH_EMPTY, MSG_DISPATCH_ERROR, MSG_DISPATCH_EXIT } |
Protected Attributes inherited from Fw::ActiveComponentBase | |
| Os::Task | m_task |
| task object for active component More... | |
Protected Attributes inherited from Fw::QueuedComponentBase | |
| Os::Queue | m_queue |
| queue object for active component More... | |
Auto-generated base for FileManager component.
A component for managing files
Definition at line 49 of file FileManagerComponentAc.hpp.
|
protected |
Enumerations for numbers of special input ports.
| Enumerator | |
|---|---|
| NUM_CMDIN_INPUT_PORTS | |
Definition at line 69 of file FileManagerComponentAc.hpp.
|
protected |
Enumerations for numbers of typed input ports.
| Enumerator | |
|---|---|
| NUM_PINGIN_INPUT_PORTS | |
| NUM_SCHEDIN_INPUT_PORTS | |
Definition at line 74 of file FileManagerComponentAc.hpp.
|
protected |
Enumerations for numbers of special output ports.
Definition at line 80 of file FileManagerComponentAc.hpp.
|
protected |
Enumerations for numbers of typed output ports.
| Enumerator | |
|---|---|
| NUM_PINGOUT_OUTPUT_PORTS | |
Definition at line 92 of file FileManagerComponentAc.hpp.
|
protected |
Command opcodes.
Definition at line 97 of file FileManagerComponentAc.hpp.
|
protected |
Event IDs.
Definition at line 113 of file FileManagerComponentAc.hpp.
|
protected |
Channel IDs.
| Enumerator | |
|---|---|
| CHANNELID_COMMANDSEXECUTED | Channel ID for CommandsExecuted. |
| CHANNELID_ERRORS | Channel ID for Errors. |
Definition at line 150 of file FileManagerComponentAc.hpp.
|
protected |
Construct FileManagerComponentBase object.
| compName | The component name |
Definition at line 820 of file FileManagerComponentAc.cpp.
|
protectedvirtual |
Destroy FileManagerComponentBase object.
Definition at line 827 of file FileManagerComponentAc.cpp.
|
protectedpure virtual |
Handler for command AppendFile
Append 1 file's contents to the end of another.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| source | The name of the file to take content from |
| target | The name of the file to append to |
|
protected |
Base-class handler function for command AppendFile
Append 1 file's contents to the end of another.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 1482 of file FileManagerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command AppendFile.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1829 of file FileManagerComponentAc.cpp.
|
protectedpure virtual |
Handler for command CalculateCrc
Calculate the CRC of a file
| opCode | The opcode |
| cmdSeq | The command sequence number |
| filename | The file to CRC |
|
protected |
Base-class handler function for command CalculateCrc
Calculate the CRC of a file
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 1659 of file FileManagerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command CalculateCrc.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1862 of file FileManagerComponentAc.cpp.
|
protected |
Handler base-class function for input port cmdIn.
| portNum | The port number |
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 958 of file FileManagerComponentAc.cpp.
|
protected |
Emit command response.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| response | The command response |
Definition at line 1229 of file FileManagerComponentAc.cpp.
|
protectedpure virtual |
Handler for command CreateDirectory
Create a directory
| opCode | The opcode |
| cmdSeq | The command sequence number |
| dirName | The directory to create |
|
protected |
Base-class handler function for command CreateDirectory
Create a directory
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 1246 of file FileManagerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command CreateDirectory.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1785 of file FileManagerComponentAc.cpp.
|
inlineprotected |
Get a buffer and use it to initialize container FileDpContainer
| dataSize | The data size (input) |
| container | The container (output) |
Definition at line 1339 of file FileManagerComponentAc.hpp.
|
protected |
Send a data product.
| container | The data product container |
| timeTag | The time tag |
Definition at line 4957 of file FileManagerComponentAc.cpp.
|
protectedpure virtual |
Handler for command FileSize
Get the size of a file
| opCode | The opcode |
| cmdSeq | The command sequence number |
| fileName | The file to get the size of |
|
protected |
Base-class handler function for command FileSize
Get the size of a file
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 1541 of file FileManagerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command FileSize.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1840 of file FileManagerComponentAc.cpp.
|
protectedpure virtual |
Handler for command GenerateDp
Generate a data product from a file, split into chunks. Each chunk is emitted as a FileChunkHeaderRecord (file name, offset, data size) followed by a FileChunkDataRecord containing the chunk bytes, so ground tools can reassemble the original file regardless of DP buffer sizing.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| fileName | The file to package as a data product |
| chunkSize | The maximum number of file bytes per chunk |
| beginOffset | The offset in the file at which to start |
| endOffset | The offset in the file at which to stop, exclusive; 0 means the end of the file |
| priority | The container priority; 0 means the configured default |
| mode | Whether to pace the chunks with the rate group or emit them immediately |
|
protected |
Base-class handler function for command GenerateDp
Generate a data product from a file, split into chunks. Each chunk is emitted as a FileChunkHeaderRecord (file name, offset, data size) followed by a FileChunkDataRecord containing the chunk bytes, so ground tools can reassemble the original file regardless of DP buffer sizing.
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 1718 of file FileManagerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command GenerateDp.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1873 of file FileManagerComponentAc.cpp.
| Fw::InputCmdPort * Svc::FileManagerComponentBase::get_cmdIn_InputPort | ( | FwIndexType | portNum | ) |
Get special input port at index
| portNum | The port number |
Definition at line 440 of file FileManagerComponentAc.cpp.
| Svc::InputPingPort * Svc::FileManagerComponentBase::get_pingIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 459 of file FileManagerComponentAc.cpp.
| Svc::InputSchedPort * Svc::FileManagerComponentBase::get_schedIn_InputPort | ( | FwIndexType | portNum | ) |
Get typed input port at index
| portNum | The port number |
Definition at line 470 of file FileManagerComponentAc.cpp.
|
inlinestaticprotected |
Get the number of cmdIn input ports
Definition at line 470 of file FileManagerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of cmdRegOut output ports
Definition at line 514 of file FileManagerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of cmdResponseOut output ports
Definition at line 521 of file FileManagerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of eventOut output ports
Definition at line 528 of file FileManagerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of pingIn input ports
Definition at line 483 of file FileManagerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of pingOut output ports
Definition at line 569 of file FileManagerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of productGetOut output ports
Definition at line 535 of file FileManagerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of productSendOut output ports
Definition at line 542 of file FileManagerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of schedIn input ports
Definition at line 490 of file FileManagerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of timeCaller output ports
Definition at line 549 of file FileManagerComponentAc.hpp.
|
inlinestaticprotected |
Get the number of tlmOut output ports
Definition at line 556 of file FileManagerComponentAc.hpp.
|
protected |
| void Svc::FileManagerComponentBase::init | ( | FwSizeType | queueDepth, |
| FwEnumStoreType | instance = 0 |
||
| ) |
Initialize FileManagerComponentBase object.
| queueDepth | The queue depth |
| instance | The instance number |
Definition at line 147 of file FileManagerComponentAc.cpp.
|
protected |
Check whether port cmdRegOut is connected
| portNum | The port number |
Definition at line 854 of file FileManagerComponentAc.cpp.
|
protected |
Check whether port cmdResponseOut is connected
| portNum | The port number |
Definition at line 865 of file FileManagerComponentAc.cpp.
|
protected |
Check whether port eventOut is connected
| portNum | The port number |
Definition at line 876 of file FileManagerComponentAc.cpp.
|
protected |
Check whether port pingOut is connected
| portNum | The port number |
Definition at line 939 of file FileManagerComponentAc.cpp.
|
protected |
Check whether port productGetOut is connected
| portNum | The port number |
Definition at line 887 of file FileManagerComponentAc.cpp.
|
protected |
Check whether port productSendOut is connected
| portNum | The port number |
Definition at line 898 of file FileManagerComponentAc.cpp.
|
protected |
Check whether port timeCaller is connected
| portNum | The port number |
Definition at line 909 of file FileManagerComponentAc.cpp.
|
protected |
Check whether port tlmOut is connected
| portNum | The port number |
Definition at line 920 of file FileManagerComponentAc.cpp.
|
protectedpure virtual |
Handler for command ListDirectory
List the contents of a directory
| opCode | The opcode |
| cmdSeq | The command sequence number |
| dirName | The directory to list |
|
protected |
Base-class handler function for command ListDirectory
List the contents of a directory
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 1600 of file FileManagerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command ListDirectory.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1851 of file FileManagerComponentAc.cpp.
|
protected |
Log event AppendFileStarted
The File System component appended 2 files without error
| source | The name of the file being read from |
| target | The name of the file to append to |
Definition at line 2786 of file FileManagerComponentAc.cpp.
|
protected |
Log event AppendFileSucceeded
The File System component appended 2 files without error
| source | The name of the file being read from |
| target | The name of the file to append to |
Definition at line 2385 of file FileManagerComponentAc.cpp.
|
protected |
Log event CalculateCrcStarted
CRC started
| fileName | The name of the file being read from |
Definition at line 3911 of file FileManagerComponentAc.cpp.
|
protected |
Log event CalculateCrcSucceeded
CRC succeeded
| fileName | The name of the file being read from |
| crc | The computed CRC value |
Definition at line 4081 of file FileManagerComponentAc.cpp.
|
protected |
Log event CreateDirectoryStarted
The File System component began creating a new directory
| dirName | The name of the directory |
Definition at line 2874 of file FileManagerComponentAc.cpp.
|
protected |
Log event CreateDirectorySucceeded
The File System component created a new directory without error
| dirName | The name of the directory |
Definition at line 2473 of file FileManagerComponentAc.cpp.
|
protected |
Log event DirectoryListing
Directory listing file entry
| dirName | The name of the directory |
| fileName | The name of the file |
| fileSize | The size of the file in bytes |
Definition at line 3717 of file FileManagerComponentAc.cpp.
|
protected |
Log event DirectoryListingSubdir
Directory listing subdirectory entry
| dirName | The name of the directory |
| subdirName | The name of the subdirectory |
Definition at line 3823 of file FileManagerComponentAc.cpp.
|
protected |
Log event FileSizeStarted
Checking file size
| fileName | The name of the file |
Definition at line 3377 of file FileManagerComponentAc.cpp.
|
protected |
Log event FileSizeSucceeded
File size response
| fileName | The name of the file |
| size | The size of the file in bytes |
Definition at line 3187 of file FileManagerComponentAc.cpp.
|
protected |
Log event GenerateDpComplete
File data product generation completed
| fileName | The file that was packaged |
| chunks | The number of chunks emitted |
Definition at line 4369 of file FileManagerComponentAc.cpp.
|
protected |
Log event GenerateDpStarted
File data product generation started
| fileName | The file being packaged |
| bytesToWrite | The number of file bytes that will be written |
Definition at line 4274 of file FileManagerComponentAc.cpp.
|
protected |
Log event ListDirectoryStarted
Starting directory listing
| dirName | The name of the directory |
Definition at line 3452 of file FileManagerComponentAc.cpp.
|
protected |
Log event ListDirectorySucceeded
Directory listing completed successfully
| dirName | The name of the directory |
| fileCount | The number of files found |
Definition at line 3527 of file FileManagerComponentAc.cpp.
|
protected |
Log event MoveFileStarted
The File System component began moving a file to a new location
| sourceFileName | The name of the source file |
| destFileName | The name of the destination file |
Definition at line 3024 of file FileManagerComponentAc.cpp.
|
protected |
Log event MoveFileSucceeded
The File System component moved a file to a new location without error
| sourceFileName | The name of the source file |
| destFileName | The name of the destination file |
Definition at line 2623 of file FileManagerComponentAc.cpp.
|
protected |
Log event RemoveDirectoryStarted
The File System component began deleting a directory
| dirName | The name of the directory |
Definition at line 2949 of file FileManagerComponentAc.cpp.
|
protected |
Log event RemoveDirectorySucceeded
The File System component deleted and existing directory without error
| dirName | The name of the directory |
Definition at line 2548 of file FileManagerComponentAc.cpp.
|
protected |
Log event RemoveFileStarted
The File System component began deleting an existing file
| fileName | The name of the file |
Definition at line 3112 of file FileManagerComponentAc.cpp.
|
protected |
Log event RemoveFileSucceeded
The File System component deleted an existing file without error
| fileName | The name of the file |
Definition at line 2711 of file FileManagerComponentAc.cpp.
|
protected |
Log event AppendFileFailed
The File System component returned status non-zero when trying to append 2 files together
| source | The name of the file being read from |
| target | The name of the file to append to |
| status | The error status |
Definition at line 2279 of file FileManagerComponentAc.cpp.
|
protected |
Log event CalculateCrcFailed
CRC failed
| fileName | The name of the file being read from |
| status | The error status |
Definition at line 3986 of file FileManagerComponentAc.cpp.
|
protected |
Log event DirectoryCreateError
An error occurred while attempting to create a directory
| dirName | The name of the directory |
| status | The error status |
Definition at line 1888 of file FileManagerComponentAc.cpp.
|
protected |
Log event DirectoryRemoveError
An error occurred while attempting to remove a directory
| dirName | The name of the directory |
| status | The error status |
Definition at line 1983 of file FileManagerComponentAc.cpp.
|
protected |
Log event FileMoveError
An error occurred while attempting to move a file
| sourceFileName | The name of the source file |
| destFileName | The name of the destination file |
| status | The error status |
Definition at line 2078 of file FileManagerComponentAc.cpp.
|
protected |
Log event FileNameFormatError
Error formatting a file path
| fileName | The file whose full path failed to format |
| status | The status returned from the format operation |
Definition at line 4176 of file FileManagerComponentAc.cpp.
|
protected |
Log event FileRemoveError
An error occurred while attempting to remove a file
| fileName | The name of the file |
| status | The error status |
Definition at line 2184 of file FileManagerComponentAc.cpp.
|
protected |
Log event FileSizeError
Failed to get file size
| fileName | The name of the file |
| status | The error status |
Definition at line 3282 of file FileManagerComponentAc.cpp.
|
protected |
Log event GenerateDpBufferFailed
Data product container allocation failed
| fileName | The file being packaged |
Definition at line 4580 of file FileManagerComponentAc.cpp.
|
protected |
Log event GenerateDpFailed
File data product generation failed
| fileName | The file being packaged |
| stage | Where the failure occurred |
| status | The error status |
Definition at line 4464 of file FileManagerComponentAc.cpp.
|
protected |
Log event GenerateDpInvalidRange
Invalid offset range requested for data product generation
| fileName | The file being packaged |
| beginOffset | The requested begin offset |
| endOffset | The requested end offset |
| fileSize | The size of the file |
Definition at line 4655 of file FileManagerComponentAc.cpp.
|
protected |
Log event ListDirectoryError
Failed to list directory
| dirName | The name of the directory |
| status | The error status |
Definition at line 3622 of file FileManagerComponentAc.cpp.
|
protected |
Log event PathOutsideSandbox
A command path argument was rejected by the configured sandbox directory
| path | The rejected path |
| sandboxDir | The configured sandbox directory |
Definition at line 4786 of file FileManagerComponentAc.cpp.
|
protectedpure virtual |
Handler for command MoveFile
Move a file
| opCode | The opcode |
| cmdSeq | The command sequence number |
| sourceFileName | The source file name |
| destFileName | The destination file name |
|
protected |
Base-class handler function for command MoveFile
Move a file
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 1305 of file FileManagerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command MoveFile.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1796 of file FileManagerComponentAc.cpp.
|
protectedpure virtual |
Handler for input port pingIn.
| portNum | The port number |
| key | Value to return to pinger |
|
protected |
Handler base-class function for input port pingIn.
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 1064 of file FileManagerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for async input port pingIn.
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 1149 of file FileManagerComponentAc.cpp.
|
protected |
Invoke output port pingOut.
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 1164 of file FileManagerComponentAc.cpp.
| void Svc::FileManagerComponentBase::regCommands | ( | ) |
Register commands with the Command Dispatcher.
Connect the dispatcher first
Definition at line 765 of file FileManagerComponentAc.cpp.
|
protectedpure virtual |
Handler for command RemoveDirectory
Remove a directory, which must be empty
| opCode | The opcode |
| cmdSeq | The command sequence number |
| dirName | The directory to remove |
|
protected |
Base-class handler function for command RemoveDirectory
Remove a directory, which must be empty
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 1364 of file FileManagerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command RemoveDirectory.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1807 of file FileManagerComponentAc.cpp.
|
protectedpure virtual |
Handler for command RemoveFile
Remove a file
| opCode | The opcode |
| cmdSeq | The command sequence number |
| fileName | The file to remove |
| ignoreErrors | Ignore nonexistent files |
|
protected |
Base-class handler function for command RemoveFile
Remove a file
| opCode | The opcode |
| cmdSeq | The command sequence number |
| args | The command argument buffer |
Definition at line 1423 of file FileManagerComponentAc.cpp.
|
protectedvirtual |
Pre-message hook for command RemoveFile.
| opCode | The opcode |
| cmdSeq | The command sequence number |
Definition at line 1818 of file FileManagerComponentAc.cpp.
|
protectedpure virtual |
Internal interface handler for run.
|
protected |
Internal interface base-class function for run.
Definition at line 1190 of file FileManagerComponentAc.cpp.
|
protectedpure virtual |
Handler for input port schedIn.
| portNum | The port number |
| context | The call order |
|
protected |
Handler base-class function for input port schedIn.
| portNum | The port number |
| context | The call order |
Definition at line 1122 of file FileManagerComponentAc.cpp.
| void Svc::FileManagerComponentBase::set_cmdRegOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputCmdRegPort * | port | ||
| ) |
Connect port to cmdRegOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 507 of file FileManagerComponentAc.cpp.
| void Svc::FileManagerComponentBase::set_cmdResponseOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputCmdResponsePort * | port | ||
| ) |
Connect port to cmdResponseOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 521 of file FileManagerComponentAc.cpp.
| void Svc::FileManagerComponentBase::set_eventOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputLogPort * | port | ||
| ) |
Connect port to eventOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 535 of file FileManagerComponentAc.cpp.
| void Svc::FileManagerComponentBase::set_pingOut_OutputPort | ( | FwIndexType | portNum, |
| Svc::InputPingPort * | port | ||
| ) |
Connect port to pingOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 613 of file FileManagerComponentAc.cpp.
| void Svc::FileManagerComponentBase::set_productGetOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputDpGetPort * | port | ||
| ) |
Connect port to productGetOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 549 of file FileManagerComponentAc.cpp.
| void Svc::FileManagerComponentBase::set_productSendOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputDpSendPort * | port | ||
| ) |
Connect port to productSendOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 563 of file FileManagerComponentAc.cpp.
| void Svc::FileManagerComponentBase::set_timeCaller_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTimePort * | port | ||
| ) |
Connect port to timeCaller[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 577 of file FileManagerComponentAc.cpp.
| void Svc::FileManagerComponentBase::set_tlmOut_OutputPort | ( | FwIndexType | portNum, |
| Fw::InputTlmPort * | port | ||
| ) |
Connect port to tlmOut[portNum].
| portNum | The port number |
| port | The input port |
Definition at line 591 of file FileManagerComponentAc.cpp.
|
inlinestaticprotected |
Record sizes.
Definition at line 156 of file FileManagerComponentAc.hpp.
|
protected |
Write telemetry channel given its local id and serialized value. Warning: This is a low level telemetry interface that does not guarentee channel type safety. It is up to the caller to make sure the serialized data matches the definition in the model. Update on change semantics are ignored, this telemetry is always written
| id | The channel id |
| _tlmBuff | The serialized telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 4878 of file FileManagerComponentAc.cpp.
|
protected |
Write telemetry channel CommandsExecuted
The total number of commands successfully executed
| arg | The telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 4909 of file FileManagerComponentAc.cpp.
|
protected |
Write telemetry channel Errors
The total number of errors
| arg | The telemetry value |
| _tlmTime | Timestamp. Default: unspecified, request from getTime port |
Definition at line 4931 of file FileManagerComponentAc.cpp.
|
friend |
Friend class tester implementation to support white-box testing.
Definition at line 60 of file FileManagerComponentAc.hpp.
|
friend |
Friend class tester to support autocoded test harness.
Definition at line 58 of file FileManagerComponentAc.hpp.
|
staticprotected |
Definition at line 159 of file FileManagerComponentAc.hpp.