Back to index

fet  5.18.0
building.h
Go to the documentation of this file.
00001 //
00002 //
00003 // Description: This file is part of FET
00004 //
00005 //
00006 // Author: Liviu Lalescu <Please see http://lalescu.ro/liviu/ for details about contacting Liviu Lalescu (in particular, you can find here the e-mail address)>
00007 // Copyright (C) 2005 Liviu Lalescu <http://lalescu.ro/liviu/>
00008 //
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef BUILDING_H
00019 #define BUILDING_H
00020 
00021 #include <QCoreApplication>
00022 
00023 #include "timetable_defs.h"
00024 
00025 #include <QString>
00026 #include <QList>
00027 #include <QStringList>
00028 
00029 class Building;
00030 class Rules;
00031 
00032 typedef QList<Building*> BuildingsList;
00033 
00039 class Building{
00040        Q_DECLARE_TR_FUNCTIONS(Building)
00041 
00042 public:
00043        QString name;
00044 
00045        Building();
00046        ~Building();
00047        
00048        void computeInternalStructure(Rules& r);
00049        
00050        QString getXmlDescription();
00051        //QString getDescription();
00052        QString getDetailedDescription();
00053        QString getDetailedDescriptionWithConstraints(Rules& r);
00054 };
00055 
00056 int buildingsAscending(const Building* b1, const Building* b2);
00057 
00058 #endif