AbstractInterface::AbstractInterface(AbstractBlock* _owner, const QString& _name, int _direction, int _purpose, const QString& _type, const QString& _width, int _endianess) {
owner = _owner;
- name = _name;
+ name = AbstractBlock::normalizeName(_name);
width = _width;
direction = _direction;
purpose = _purpose;
AbstractInterface::AbstractInterface(AbstractInterface* other) {
owner = NULL;
- name = other->name;
+ name = AbstractBlock::normalizeName(other->name);
type = other->type;
width = other->width;
direction = other->direction;
associatedIface = NULL;
}
+void AbstractInterface::setName(const QString& _name) {
+ name = AbstractBlock::normalizeName(_name);
+}
+
AbstractInterface::~AbstractInterface() {
}