7 #ifndef Svc_DpCatalog_HPP 8 #define Svc_DpCatalog_HPP 16 #include <config/DpCatalogCfg.hpp> 17 #include <config/DpCfg.hpp> 88 void START_XMIT_CATALOG_cmdHandler(
112 struct DpStateEntry {
118 struct DpDstateFileEntry {
139 bool insertEntry(DpStateEntry& entry);
143 void deleteEntry(DpStateEntry& entry);
153 CheckStat checkLeftRight(
bool condition, DpBtreeNode*& node,
const DpStateEntry& newEntry);
156 void resetBinaryTree();
162 void resetTreeStack();
165 void resetStateFileData();
169 void getFileState(DpStateEntry& entry);
172 void pruneAndWriteStateFile();
179 void appendFileState(
const DpStateEntry& entry);
184 bool allocateNode(DpBtreeNode*& newNode,
const DpStateEntry& newEntry);
187 void sendNextEntry();
192 DpBtreeNode* findNextTreeNode();
211 DpBtreeNode* m_dpTree;
212 DpBtreeNode* m_freeListHead;
213 DpBtreeNode* m_freeListFoot;
214 DpBtreeNode** m_traverseStack;
215 DpBtreeNode* m_currentNode;
216 DpBtreeNode* m_currentXmitNode;
226 DpDstateFileEntry* m_stateFileData;
234 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.