7 #ifndef Svc_DpCatalog_HPP 8 #define Svc_DpCatalog_HPP 15 #include <config/DpCfg.hpp> 16 #include <config/DpCatalogCfg.hpp> 36 const char*
const compName
71 void fileDone_handler(
93 void BUILD_CATALOG_cmdHandler(
101 void START_XMIT_CATALOG_cmdHandler(
110 void STOP_XMIT_CATALOG_cmdHandler(
118 void CLEAR_CATALOG_cmdHandler(
128 struct DpStateEntry {
134 struct DpDstateFileEntry {
154 bool insertEntry(DpStateEntry& entry);
158 void deleteEntry(DpStateEntry& entry);
168 CheckStat checkLeftRight(
bool condition, DpBtreeNode* &node,
const DpStateEntry& newEntry);
171 void resetBinaryTree();
177 void resetTreeStack();
180 void resetStateFileData();
184 void getFileState(DpStateEntry& entry);
187 void pruneAndWriteStateFile();
194 void appendFileState(
const DpStateEntry& entry);
200 DpBtreeNode* &newNode,
201 const DpStateEntry& newEntry);
204 void sendNextEntry();
209 DpBtreeNode* findNextTreeNode();
228 DpBtreeNode* m_dpTree;
229 DpBtreeNode* m_freeListHead;
230 DpBtreeNode* m_freeListFoot;
231 DpBtreeNode** m_traverseStack;
232 DpBtreeNode* m_currentNode;
233 DpBtreeNode* m_currentXmitNode;
243 DpDstateFileEntry* m_stateFileData;
251 bool m_xmitInProgress;
Data structure representing a data product.
FwIdType FwOpcodeType
The type of a command opcode.
PlatformSizeType FwSizeType
Auto-generated base for DpCatalog component.
Wait or don't wait for something.
static const FwIndexType DP_MAX_DIRECTORIES
Enum representing a command response.
void configure(Fw::FileNameString directories[DP_MAX_DIRECTORIES], FwSizeType numDirs, Fw::FileNameString &stateFile, FwEnumStoreType memId, Fw::MemAllocator &allocator)
Configure the DpCatalog.
static const FwIndexType DP_MAX_FILES
DpCatalog(const char *const compName)
DpCatalog constructor.
~DpCatalog()
DpCatalog destructor.
friend class DpCatalogTester
PlatformIndexType FwIndexType
Send file response struct.
RateGroupDivider component implementation.
Defines a base class for a memory allocator for classes.