Logo Search packages:      
Sourcecode: fet version File versions

int Rules::searchRoom ( const QString &  roomName  ) 

Returns -1 if not found or the index in the rooms list if found.

Definition at line 1994 of file rules.cpp.

References Room::name, and roomsList.

Referenced by addRoom(), ConstraintActivityPreferredRooms::computeInternalStructure(), ConstraintActivityPreferredRoom::computeInternalStructure(), ConstraintTeacherRequiresRoom::computeInternalStructure(), ConstraintRoomNotAvailable::computeInternalStructure(), modifyRoom(), and removeRoom().

{
      int i;
      Room* rm;
      for(rm=this->roomsList.first(), i=0; rm; rm=this->roomsList.next(), i++)
            if(rm->name==roomName)
                  return i;
      return -1;
}


Generated by  Doxygen 1.6.0   Back to index