1
0
mirror of synced 2024-12-16 01:31:16 +01:00
ImHex/lib/libimhex/source/data_processor/attribute.cpp

16 lines
463 B
C++
Raw Normal View History

#include <hex/data_processor/attribute.hpp>
namespace hex::dp {
int Attribute::s_idCounter = 1;
Attribute::Attribute(IOType ioType, Type type, std::string unlocalizedName) : m_id(Attribute::s_idCounter++), m_ioType(ioType), m_type(type), m_unlocalizedName(std::move(unlocalizedName)) {
}
Attribute::~Attribute() {
for (auto &[linkId, attr] : this->getConnectedAttributes())
attr->removeConnectedAttribute(linkId);
}
}