11 class FunctionalBlock;
12 class AbstractInterface;
25 inline GroupBlock* getTopGroup() { return topGroup; }
26 inline QList<GroupBlock*> getAllGroups() { return groups; }
28 // methods for group blocks
29 GroupBlock* createChildGroupBlock(GroupBlock* parent);
30 bool removeGroupBlock(GroupBlock *group);
31 GroupBlock* getGroupBlockByName(QString name);
33 // methods for functional blocks
34 FunctionalBlock* createFunctionalBlock(GroupBlock *group, ReferenceBlock *ref);
35 FunctionalBlock* duplicateFunctionalBlock(FunctionalBlock *block);
36 bool removeFunctionalBlock(FunctionalBlock* block);
37 FunctionalBlock* getFunctionalBlockByName(QString name, GroupBlock* parent = NULL); //! if parent = NULL, search in the whole graph
39 // methods for source blocks
40 FunctionalBlock* createSourceBlock(ReferenceBlock *ref);
41 FunctionalBlock* duplicateSourceBlock(FunctionalBlock *block);
42 FunctionalBlock* getSourceBlockByName(QString name);
43 bool removeSourceBlock(FunctionalBlock* block);
46 QList<AbstractInterface *> getOutsideInterfaces();
51 QList<GroupBlock *> groups; //! usefull to avoid recursive methods to find a particular group.
52 QList<FunctionalBlock*> sources; //! source for the top group