mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 21:47:40 -05:00
feat: Replace useless constants view with a constant search option in the Find view
This commit is contained in:
27
plugins/builtin/include/content/helpers/constants.hpp
Normal file
27
plugins/builtin/include/content/helpers/constants.hpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <hex/helpers/binary_pattern.hpp>
|
||||
|
||||
namespace hex::plugin::builtin {
|
||||
|
||||
struct Constant {
|
||||
std::string name;
|
||||
std::string description;
|
||||
BinaryPattern value;
|
||||
};
|
||||
|
||||
class ConstantGroup {
|
||||
public:
|
||||
explicit ConstantGroup(const std::fs::path &path);
|
||||
|
||||
[[nodiscard]] const std::string& getName() const { return m_name; }
|
||||
const std::vector<Constant>& getConstants() const { return m_constants; }
|
||||
private:
|
||||
std::string m_name;
|
||||
std::vector<Constant> m_constants;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user