1 #ifndef __GROUPBLOCK_H__
2 #define __GROUPBLOCK_H__
8 #include "AbstractBlock.h"
10 #include "Exception.h"
17 class GroupBlock : public AbstractBlock {
20 GroupBlock(GroupBlock* _parent) throw(Exception);
21 virtual ~GroupBlock();
26 void setParent(AbstractBlock *_parent);
30 inline bool isTop() { return topGroup; }
33 inline void addBlock(AbstractBlock* block) { blocks.append(block); }
34 void removeBlock(AbstractBlock* block);
35 void parametersValidation(QList<AbstractBlock *> *checkedBlocks, QList<AbstractBlock*>* blocksToConfigure);
36 void addGenericParameter(QString name, QString type, QString value);
37 void removeGenericParameter(QString name);
43 QList<AbstractBlock*> blocks; // contains instances of FunctionalBlock or GroupBlock
47 #endif // __GROUPBLOCK_H__