2025-08-17 13:14:17 -04:00
|
|
|
#ifndef XPATHLINK_H
|
|
|
|
|
#define XPATHLINK_H
|
|
|
|
|
|
|
|
|
|
#include "xasset.h"
|
|
|
|
|
|
2025-09-05 18:35:17 -04:00
|
|
|
#include <QVector>
|
|
|
|
|
|
2025-08-17 13:14:17 -04:00
|
|
|
class XPathLink : public XAsset
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit XPathLink();
|
2025-09-05 18:35:17 -04:00
|
|
|
~XPathLink();
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
void ParseData(QDataStream *aStream) override;
|
2025-09-05 18:35:17 -04:00
|
|
|
void Clear() override;
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
float GetDist() const;
|
|
|
|
|
void SetDist(float dist);
|
|
|
|
|
|
|
|
|
|
unsigned short GetNodeNum() const;
|
|
|
|
|
void SetNodeNum(unsigned short num);
|
|
|
|
|
|
|
|
|
|
unsigned char GetDisconnectCount() const;
|
|
|
|
|
void SetDisconnectCount(unsigned char count);
|
|
|
|
|
|
|
|
|
|
unsigned char GetNegotiationLink() const;
|
|
|
|
|
void SetNegotiationLink(unsigned char link);
|
|
|
|
|
|
2025-09-05 18:35:17 -04:00
|
|
|
QVector<unsigned char> GetBadPlaceCount() const;
|
|
|
|
|
void SetBadPlaceCount(QVector<unsigned char> aCounts);
|
2025-08-17 13:14:17 -04:00
|
|
|
|
|
|
|
|
private:
|
2025-09-05 18:35:17 -04:00
|
|
|
float mDist;
|
|
|
|
|
unsigned short mNodeNum;
|
|
|
|
|
unsigned char mDisconnectCount;
|
|
|
|
|
unsigned char mNegotiationLink;
|
|
|
|
|
QVector<unsigned char> mBadPlaceCount;
|
2025-08-17 13:14:17 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // XPATHLINK_H
|