2021-08-29 14:18:45 +02:00
|
|
|
#include <hex/data_processor/attribute.hpp>
|
|
|
|
|
|
|
|
#include <hex/helpers/shared_data.hpp>
|
|
|
|
|
|
|
|
namespace hex::dp {
|
|
|
|
|
2021-09-08 15:18:24 +02:00
|
|
|
Attribute::Attribute(IOType ioType, Type type, std::string unlocalizedName) : m_id(SharedData::dataProcessorAttrIdCounter++), m_ioType(ioType), m_type(type), m_unlocalizedName(std::move(unlocalizedName)) {
|
2021-08-29 14:18:45 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Attribute::~Attribute() {
|
|
|
|
for (auto &[linkId, attr] : this->getConnectedAttributes())
|
|
|
|
attr->removeConnectedAttribute(linkId);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|