1 #ifndef __REFERENCEINTERFACE_H__
2 #define __REFERENCEINTERFACE_H__
9 #include "AbstractInterface.h"
11 #include "Exception.h"
17 class ReferenceInterface : public AbstractInterface {
21 ReferenceInterface(AbstractBlock *_owner) throw(Exception);
22 ReferenceInterface(AbstractBlock* _owner, const QString& _name, const QString& _type, const QString& _width, int _direction, int _purpose, int _multiplicity=1) throw (Exception);
25 inline int getMultiplicity() { return multiplicity; }
27 void setMultiplicity(int _multiplicity);
30 bool isReferenceInterface();
34 static int translatePurpose(const QString& txt);
35 static int translateMultiplicity(const QString& txt);
37 inline AbstractInterface *clone(){ return NULL; }
41 int multiplicity; // -1 means infinite multiplicity, and X>1, the max. number of instances
46 #endif // __REFERENCEINTERFACE_H__