mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-25 14:25:25 +00:00
28 lines
580 B
C
28 lines
580 B
C
|
#ifndef BASICINSTRUCTIONHIGHLIGHTER_H
|
||
|
#define BASICINSTRUCTIONHIGHLIGHTER_H
|
||
|
|
||
|
#include "CutterCommon.h"
|
||
|
#include <map>
|
||
|
#include <QColor>
|
||
|
|
||
|
struct BasicInstruction {
|
||
|
RVA address;
|
||
|
RVA size;
|
||
|
QColor color;
|
||
|
};
|
||
|
|
||
|
typedef std::map<RVA, BasicInstruction>::iterator BasicInstructionIt;
|
||
|
|
||
|
class BasicInstructionHighlighter
|
||
|
{
|
||
|
public:
|
||
|
void clear(RVA address, RVA size);
|
||
|
void highlight(RVA address, RVA size, QColor color);
|
||
|
BasicInstruction *getBasicInstruction(RVA address);
|
||
|
|
||
|
private:
|
||
|
std::map<RVA, BasicInstruction> biMap;
|
||
|
};
|
||
|
|
||
|
#endif // BASICINSTRUCTIONHIGHLIGHTER_H
|