BearParser
Portable Executable parsing library (from PE-bear)
Loading...
Searching...
No Matches
WrappedValue.h
Go to the documentation of this file.
1#pragma once
2
3#include "win_hdrs/win_types.h"
4#include "CustomException.h"
6
7#include <QtCore>
8
9#include <iostream>
10#include <stdlib.h>
11
13public:
14
15 enum data_type {
16 NONE = 0,
22 };
23
26
28 : m_Type(type), m_Owner(owner), m_Offset(offset), m_Size(size) {}
29
31 QVariant getQVariant();
32 QString toQString();
33 bool isValid() { return (m_Size != 0); }
34
35protected:
36 virtual QString getIntFormat();
37
42};
uint32_t bufsize_t
const offset_t INVALID_ADDR
uint64_t offset_t
QVariant getQVariant()
Definition: WrappedValue.cpp:3
WrappedValue(AbstractByteBuffer *owner, offset_t offset, bufsize_t size, data_type type)
Definition: WrappedValue.h:27
data_type getDataType()
Definition: WrappedValue.h:30
bool isValid()
Definition: WrappedValue.h:33
AbstractByteBuffer * m_Owner
Definition: WrappedValue.h:39
offset_t m_Offset
Definition: WrappedValue.h:40
QString toQString()
bufsize_t m_Size
Definition: WrappedValue.h:41
virtual QString getIntFormat()
data_type m_Type
Definition: WrappedValue.h:38