Back to index

fet  5.18.0
Public Member Functions | Public Attributes
Teacher Class Reference

#include <teacher.h>

List of all members.

Public Member Functions

 Teacher ()
 ~Teacher ()
QString getXmlDescription ()
QString getDetailedDescription ()
QString getDetailedDescriptionWithConstraints (Rules &r)

Public Attributes

QList< qint16 > activitiesForTeacher
QString name

Detailed Description

Author:
Liviu Lalescu

Definition at line 38 of file teacher.h.


Constructor & Destructor Documentation

Definition at line 21 of file teacher.cpp.

{
}

Definition at line 25 of file teacher.cpp.

{
}

Member Function Documentation

Definition at line 38 of file teacher.cpp.

{
       QString s=tr("Teacher");
       s+="\n";
       s+=tr("Name=%1", "The name of the teacher").arg(this->name);
       s+="\n";

       return s;
}

Here is the caller graph for this function:

Definition at line 48 of file teacher.cpp.

{
       QString s=this->getDetailedDescription();

       s+="--------------------------------------------------\n";
       s+=tr("Time constraints directly related to this teacher:");
       s+="\n";
       for(int i=0; i<r.timeConstraintsList.size(); i++){
              TimeConstraint* c=r.timeConstraintsList[i];
              if(c->isRelatedToTeacher(this)){
                     s+="\n";
                     s+=c->getDetailedDescription(r);
              }
       }

       s+="--------------------------------------------------\n";
       s+=tr("Space constraints directly related to this teacher:");
       s+="\n";
       for(int i=0; i<r.spaceConstraintsList.size(); i++){
              SpaceConstraint* c=r.spaceConstraintsList[i];
              if(c->isRelatedToTeacher(this)){
                     s+="\n";
                     s+=c->getDetailedDescription(r);
              }
       }
       s+="--------------------------------------------------\n";

       return s;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 29 of file teacher.cpp.

{
       QString s="<Teacher>\n";
       s+="   <Name>"+protect(this->name)+"</Name>\n";
       s+="</Teacher>\n";

       return s;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 43 of file teacher.h.

QString Teacher::name

Definition at line 45 of file teacher.h.


The documentation for this class was generated from the following files: