添加CustomRule基础架构
This commit is contained in:
parent
ae67325332
commit
22b308d215
|
@ -535,9 +535,14 @@ bool BytesAsUnion::setOffsetSpan(int value)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void extract::BytesAsSubRule::setActualName(const QString& name)
|
||||||
|
{
|
||||||
|
this->_rules._actual_name = name;
|
||||||
|
}
|
||||||
|
|
||||||
QString BytesAsSubRule::name() const
|
QString BytesAsSubRule::name() const
|
||||||
{
|
{
|
||||||
return NAME(BytesAsSubRule);
|
return this->_rules._actual_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
DataType BytesAsSubRule::outType() const
|
DataType BytesAsSubRule::outType() const
|
||||||
|
|
|
@ -270,9 +270,13 @@ namespace extract {
|
||||||
struct __Private {
|
struct __Private {
|
||||||
int _byte_offset = 0, _byte_count = 1;
|
int _byte_offset = 0, _byte_count = 1;
|
||||||
QList<std::shared_ptr<ExtractUnit>> _sub_rules;
|
QList<std::shared_ptr<ExtractUnit>> _sub_rules;
|
||||||
|
|
||||||
|
QString _actual_name;
|
||||||
}_rules;
|
}_rules;
|
||||||
|
|
||||||
|
void setActualName(const QString &name);
|
||||||
|
|
||||||
|
public:
|
||||||
QString name() const override;
|
QString name() const override;
|
||||||
DataType outType() const override;
|
DataType outType() const override;
|
||||||
bool setOffsetSpan(int bytes) override;
|
bool setOffsetSpan(int bytes) override;
|
||||||
|
|
Loading…
Reference in New Issue