2025-08-17 13:14:17 -04:00
|
|
|
#ifndef XPATHDATA_H
|
|
|
|
|
#define XPATHDATA_H
|
|
|
|
|
|
|
|
|
|
#include "xasset.h"
|
|
|
|
|
#include "xpathnode.h"
|
|
|
|
|
#include "xpathbasenode.h"
|
|
|
|
|
#include "xpathnodetree.h"
|
|
|
|
|
|
|
|
|
|
class XPathData : public XAsset
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit XPathData();
|
|
|
|
|
|
2025-09-10 21:58:26 -04:00
|
|
|
void ParseData(XDataStream *aStream) override;
|
2025-08-17 13:14:17 -04:00
|
|
|
|
2025-09-07 12:36:08 -04:00
|
|
|
quint32 GetNodeCount() const;
|
|
|
|
|
void SetNodeCount(quint32 count);
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
private:
|
2025-09-07 12:36:08 -04:00
|
|
|
quint32 mNodeCount = 0;
|
2025-08-17 13:14:17 -04:00
|
|
|
// Using our new classes instead of raw pointers to structures
|
|
|
|
|
QVector<XPathNode> mNodes; // Vector for automatic memory management
|
|
|
|
|
QVector<XPathBaseNode> mBaseNodes;
|
2025-09-07 12:36:08 -04:00
|
|
|
quint32 mChainNodeCount = 0;
|
2025-08-17 13:14:17 -04:00
|
|
|
QVector<unsigned short> mChainNodeForNode;
|
|
|
|
|
QVector<unsigned short> mNodeForChainNode;
|
|
|
|
|
int mVisBytes = 0;
|
|
|
|
|
QByteArray mPathVis; // Using QByteArray for automatic memory management
|
|
|
|
|
int mNodeTreeCount = 0;
|
|
|
|
|
QVector<XPathNodeTree> mNodeTrees;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // XPATHDATA_H
|