#include "AbstractInterface.h"
#include "BlockParameterPort.h"
#include "AbstractBlock.h"
+#include "Parameters.h"
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 = AbstractBlock::normalizeName(_name);
+ name = Parameters::normalizeName(_name);
width = _width;
direction = _direction;
purpose = _purpose;
AbstractInterface::AbstractInterface(AbstractInterface* other) {
owner = NULL;
- name = AbstractBlock::normalizeName(other->name);
+ name = Parameters::normalizeName(other->name);
type = other->type;
width = other->width;
direction = other->direction;
}
void AbstractInterface::setName(const QString& _name) {
- name = AbstractBlock::normalizeName(_name);
+ name = Parameters::normalizeName(_name);
}
AbstractInterface::~AbstractInterface() {