X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..d111eaf49741a0a79d372445f97c314a637e331e:/AbstractBlock.h diff --git a/AbstractBlock.h b/AbstractBlock.h index 2c89cbf..a132bc8 100644 --- a/AbstractBlock.h +++ b/AbstractBlock.h @@ -25,6 +25,7 @@ public: // getters inline QString getName() { return name; } + inline int nbParameters() { return params.size(); } inline QList getParameters() { return params; } inline QList getInputs() { return inputs; } inline QList getOutputs() { return outputs; } @@ -42,6 +43,8 @@ public: virtual bool isReferenceBlock(); virtual bool isFunctionalBlock(); virtual bool isGroupBlock(); + virtual bool isSourceBlock(); + virtual bool isTopGroupBlock(); bool isWBConfigurable(); // others @@ -50,9 +53,11 @@ public: void addParameter(BlockParameter *param); void addInterface(AbstractInterface *inter); void removeInterface(AbstractInterface *inter); + void removeAllInterfaces(); void defineBlockParam(BlockParameter *param); - QList getInterfaces(); + QList getInterfaces(); //! return all interfaces + QList getDataInputs(); //! return all inputs of type data AbstractInterface* getIfaceFromName(QString name); BlockParameter* getParameterFromName(QString name);