mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
build: More repo cleanup, move libimhex and external libs to /lib folder
This commit is contained in:
16
lib/libimhex/source/data_processor/attribute.cpp
Normal file
16
lib/libimhex/source/data_processor/attribute.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <hex/data_processor/attribute.hpp>
|
||||
|
||||
#include <hex/helpers/shared_data.hpp>
|
||||
|
||||
namespace hex::dp {
|
||||
|
||||
Attribute::Attribute(IOType ioType, Type type, std::string unlocalizedName) : m_id(SharedData::dataProcessorAttrIdCounter++), m_ioType(ioType), m_type(type), m_unlocalizedName(std::move(unlocalizedName)) {
|
||||
|
||||
}
|
||||
|
||||
Attribute::~Attribute() {
|
||||
for (auto &[linkId, attr] : this->getConnectedAttributes())
|
||||
attr->removeConnectedAttribute(linkId);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user