Back to index

fet  5.18.0
Public Member Functions | Public Attributes
Building Class Reference

This class represents a building. More...

#include <building.h>

List of all members.

Public Member Functions

 Building ()
 ~Building ()
void computeInternalStructure (Rules &r)
QString getXmlDescription ()
QString getDetailedDescription ()
QString getDetailedDescriptionWithConstraints (Rules &r)

Public Attributes

QString name

Detailed Description

This class represents a building.

Author:
Liviu Lalescu

Definition at line 39 of file building.h.


Constructor & Destructor Documentation

Definition at line 21 of file building.cpp.

{
}

Definition at line 25 of file building.cpp.

{
}

Member Function Documentation

Definition at line 29 of file building.cpp.

{
       Q_UNUSED(r);
}

Here is the caller graph for this function:

Definition at line 42 of file building.cpp.

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

       return s;
}

Here is the caller graph for this function:

Definition at line 61 of file building.cpp.

{
       Q_UNUSED(r);

       QString s=this->getDetailedDescription();

       /*s+="--------------------------------------------------\n";
       s+=tr("Space constraints directly related to this building:");
       s+="\n";
       for(int i=0; i<r.spaceConstraintsList.size(); i++){
              SpaceConstraint* c=r.spaceConstraintsList[i];
              if(c->isRelatedToBuilding(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 52 of file building.cpp.

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

       return s;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

QString Building::name

Definition at line 43 of file building.h.


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