public :
ConnectedInterface(AbstractBlock* _owner);
- ConnectedInterface(AbstractBlock* _owner, const QString& _name, const QString& _type, const QString& _width, int _direction, int _purpose);
+ ConnectedInterface(AbstractBlock* _owner, const QString& _name, int _direction, int _purpose, const QString& _type, const QString& _width);
+ ~ConnectedInterface();
+
// getters
inline QList<ConnectedInterface*> getConnectedTo() { return connectedTo;}
inline ConnectedInterface* getConnectedFrom() { return connectedFrom;}
+ inline QList<char>* getOutputPattern() { return outputPattern; }
// setters
+ void setOutputPattern(QList<char>* pattern);
// testers
inline bool isConnectedTo(){return connectedTo.length() != 0;}
ConnectedInterface* getConnectionFromParentGroup();
virtual AbstractInterface *clone() = 0;
- void removeConnectedTo(ConnectedInterface *inter);
+ //void removeConnectedTo(ConnectedInterface *inter);
virtual void clearConnectedTo();
inline void clearConnectedFrom() { connectedFrom = NULL; }
* this interface. connecteFrom references such an interface if it exists.
*/
ConnectedInterface* connectedFrom;
+
+ // patterns
+ QList<char>* outputPattern; //! only usefull for output interfaces
};