]> AND Private Git Repository - blast.git/blobdiff - AbstractInterface.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
add clk/rst to groups
[blast.git] / AbstractInterface.cpp
index c03cba9f082953cd6bf16cfbe8f468f73f173f36..1d1e41d15c4ffa4bce34c1e6f7e5764a573a4665 100644 (file)
@@ -18,7 +18,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;  
 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;
   width = _width;
   direction = _direction;
   purpose = _purpose;
@@ -29,7 +29,7 @@ AbstractInterface::AbstractInterface(AbstractBlock* _owner, const QString& _name
 
 AbstractInterface::AbstractInterface(AbstractInterface* other) {
   owner = NULL;
 
 AbstractInterface::AbstractInterface(AbstractInterface* other) {
   owner = NULL;
-  name = other->name;
+  name = AbstractBlock::normalizeName(other->name);
   type = other->type;
   width = other->width;
   direction = other->direction;
   type = other->type;
   width = other->width;
   direction = other->direction;
@@ -38,6 +38,10 @@ AbstractInterface::AbstractInterface(AbstractInterface* other) {
   associatedIface = NULL;
 }
 
   associatedIface = NULL;
 }
 
+void AbstractInterface::setName(const QString& _name) {
+  name = AbstractBlock::normalizeName(_name);
+}
+
 AbstractInterface::~AbstractInterface() {
 
 }
 AbstractInterface::~AbstractInterface() {
 
 }