X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..0d3590739ff5a4ca9e87c052ac142f5d1d3a68ab:/AbstractBlock.h?ds=sidebyside diff --git a/AbstractBlock.h b/AbstractBlock.h index 2c89cbf..28e8b7a 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; } @@ -50,9 +51,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);