CFDP API
UserBase
-
class UserBase
Base class which provides a user interface to interact with CFDP handlers.
This class is also used to pass the Virtual Filestore (VFS) Implementation to the CFDP handlers so the filestore operations can be mapped to the underlying filestore.
It is used by implementing it in a child class and then passing it to the CFDP handler objects. The base class provides default implementation for the user indication primitives specified in the CFDP standard. The user can override these implementations to provide custom indication handlers.
Please note that for all indication callbacks, the passed transaction ID reference will become invalid shortly after the function has been executed. If the transaction ID is to be cached or used, create an own copy of it.
- Param vfs:
Virtual Filestore Object. Will be used for all file operations
Public Functions
-
virtual void metadataRecvdIndication(const MetadataRecvdParams ¶ms) = 0
Will be called if metadata was received.
IMPORTANT: The passed struct contains the messages to the user in form of a raw C array. The TLVs in these arrays are zero-copy types, which means that they point to the raw data inside the metadata packet directly. The metadata packet will be deleted from the TC store shortly after it was processed. If some of the data is to be cached and/or used after the function call, it needs to be copied into another user-provided buffer.
- Parameters:
params –