1991afb87b
* sys: Initial refactoring of the SharedData class * sys/pattern: More refactoring, make every provider have its own patterns * sys: Finished up refactoring. No more SharedData! * sys: Fixed compile on Unix * tests: Fixed unit tests * sys: Moved view and lang files * pattern: Added assignment operator support to for loops * tests: Fixed compile issue
16 lines
463 B
C++
16 lines
463 B
C++
#include <hex/data_processor/attribute.hpp>
|
|
|
|
|
|
namespace hex::dp {
|
|
|
|
u32 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);
|
|
}
|
|
|
|
} |