Logo Search packages:      
Sourcecode: fet version File versions

StudentsSet * Rules::searchStudentsSet ( const QString &  setName  ) 

Returns a pointer to the structure containing this student container (year, group or subgroup) or NULL.

Definition at line 846 of file rules.cpp.

References yearsList.

Referenced by Activity::Activity(), addYear(), ConstraintStudentsSetIntervalMaxDaysPerWeek::computeInternalStructure(), ConstraintStudentsSetNHoursDaily::computeInternalStructure(), ConstraintStudentsSetNoGaps::computeInternalStructure(), ConstraintStudentsSetNotAvailable::computeInternalStructure(), Activity::computeInternalStructure(), Activity::getDetailedDescription(), modifyGroup(), modifySubgroup(), modifyYear(), read(), removeGroup(), and removeSubgroup().

{
      for(StudentsYear* sty=this->yearsList.first(); sty; sty=this->yearsList.next()){
            if(sty->name==setName)
                  return sty;
            for(StudentsGroup* stg=sty->groupsList.first(); stg; stg=sty->groupsList.next()){
                  if(stg->name==setName)
                        return stg;
                  for(StudentsSubgroup* sts=stg->subgroupsList.first(); sts; sts=stg->subgroupsList.next())
                        if(sts->name==setName)
                              return sts;
            }
      }
      return NULL;
}


Generated by  Doxygen 1.6.0   Back to index