MCA Logo
MCA Online Reference Documentation
Main Index

2.5. Inherit from groups

If groups have to be expanded within different projects, they may be reused by inheriting them.

The derived class then has the possibility to add other modules before the level based structure is created. Therefore the base group must not call the FixIt() function.

All modules and groups should have a fixit parameter of type bool. As default this value is set to true, what means that the group calls the FixIt() function at the end of its constructor. If the parameter is set to false, the base class assume that the derived class will call it after finishing the IO definition and module and edge creation. The call of the FixIt() function at the end of a group should happen as already explained for simple modules:

  .
  :
  if (fixit) FixIt();
 } // end of constructor