X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/3fb762e7042d9b4a1cf78556ad9ed7f117cc53ba..a13795fc34cd1e74f94695d35253c3d00abec9bc:/AbstractBlock.h?ds=sidebyside diff --git a/AbstractBlock.h b/AbstractBlock.h index 8f09410..fad9b53 100644 --- a/AbstractBlock.h +++ b/AbstractBlock.h @@ -9,6 +9,7 @@ #include "AbstractInterface.h" class AbstractInterface; class BlockParameter; +class Graph; #define AB_TO_REF(ptr) ((ReferenceBlock*)ptr) #define AB_TO_FUN(ptr) ((FunctionalBlock*)ptr) @@ -26,7 +27,7 @@ public: enum SpecialType { NotSpecial = 0, Source = 1, Sink = 2, ClkConvert = 3 }; - AbstractBlock(); + AbstractBlock(Graph* _graph); //AbstractBlock(const QString& _name); virtual ~AbstractBlock(); @@ -35,6 +36,7 @@ public: inline int getSpecialType() { return specialType; } inline QString getVersion() { return version; } inline int nbParameters() { return params.size(); } + inline Graph* getGraph() { return graph; } inline QList getInputs() { return inputs; } inline QList getOutputs() { return outputs; } @@ -112,6 +114,7 @@ protected: QString name; int specialType; QString version; + Graph* graph; // parameters QList params;