X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/4cf57e6db08da791233d75237f62e74bc88dd427..c85843afb9bd492b46d6fe87a8287157097483f5:/AbstractInterface.cpp diff --git a/AbstractInterface.cpp b/AbstractInterface.cpp index c03cba9..a32f78e 100644 --- a/AbstractInterface.cpp +++ b/AbstractInterface.cpp @@ -1,6 +1,7 @@ #include "AbstractInterface.h" #include "BlockParameterPort.h" #include "AbstractBlock.h" +#include "Parameters.h" AbstractInterface::AbstractInterface(AbstractBlock* _owner) { @@ -18,7 +19,7 @@ AbstractInterface::AbstractInterface(AbstractBlock* _owner) { AbstractInterface::AbstractInterface(AbstractBlock* _owner, const QString& _name, int _direction, int _purpose, const QString& _type, const QString& _width, int _endianess) { owner = _owner; - name = _name; + name = Parameters::normalizeName(_name); width = _width; direction = _direction; purpose = _purpose; @@ -29,7 +30,7 @@ AbstractInterface::AbstractInterface(AbstractBlock* _owner, const QString& _name AbstractInterface::AbstractInterface(AbstractInterface* other) { owner = NULL; - name = other->name; + name = Parameters::normalizeName(other->name); type = other->type; width = other->width; direction = other->direction; @@ -38,6 +39,10 @@ AbstractInterface::AbstractInterface(AbstractInterface* other) { associatedIface = NULL; } +void AbstractInterface::setName(const QString& _name) { + name = Parameters::normalizeName(_name); +} + AbstractInterface::~AbstractInterface() { }