73 lines
998 B
C++
73 lines
998 B
C++
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "LogViewXdrElement.hpp"
|
|
|
|
namespace N_LogView
|
|
{
|
|
|
|
|
|
class LogViewXdrType final : public LogViewXdrElement
|
|
{
|
|
public:
|
|
|
|
|
|
|
|
LogViewXdrType(const QString& a_name, const QString& a_type, const uint16_t a_arraySize, const uint16_t a_dynArrayOffset, const E_ElementKind a_kind);
|
|
|
|
|
|
|
|
LogViewXdrType(const QString& a_name, const QString& a_type, const uint16_t a_arraySize, const uint16_t a_dynArrayOffset, const E_ElementKind a_kind, const int16_t a_firstBit, const int16_t a_lastBit, const bool a_isLast);
|
|
|
|
|
|
void dump() const override;
|
|
|
|
|
|
const QString& getType() const;
|
|
|
|
|
|
|
|
uint16_t getArraySize() const;
|
|
|
|
|
|
|
|
bool maskValue(uint32_t& a_value, const uint16_t a_size, QString& a_tooltip) const;
|
|
|
|
|
|
uint16_t getMaxArraySize() const;
|
|
|
|
protected:
|
|
|
|
QString m_Type;
|
|
|
|
|
|
uint16_t m_ArraySize;
|
|
|
|
|
|
uint16_t m_MaxArraySize;
|
|
|
|
|
|
int16_t m_FirstBit;
|
|
|
|
|
|
int16_t m_LastBit;
|
|
|
|
|
|
bool m_IsLast;
|
|
};
|
|
|
|
}
|
|
|