Logo Search packages:      
Sourcecode: fet version File versions

bool Rules::addGroup ( const QString &  yearName,
StudentsGroup *  group 
)

Adds a new group in a certain year of study to the academic structure

Definition at line 1018 of file rules.cpp.

References internalStructureComputed, and yearsList.

Referenced by read().

{
      StudentsYear* sty;
      for(sty=this->yearsList.first(); sty; sty=this->yearsList.next())
            if(sty->name==yearName)
                  break;
      assert(sty);
      for(StudentsGroup* stg=sty->groupsList.first(); stg; stg=sty->groupsList.next())
            if(stg->name==group->name)
                  return false;
      sty->groupsList.append(group);

      this->internalStructureComputed=false;
      return true;
}


Generated by  Doxygen 1.6.0   Back to index