1 /***************************************************************************
3 * Main.cpp Copyright (C) 2008 by Jon Rumble *
4 * j.w.rumble@reading.ac.uk *
6 * This file is part of HECS, *
8 * HECS is free software: you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation, either version 2 of the License, or *
11 * (at your option) any later version. *
13 * HECS is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
18 * You should have received a copy of the GNU General Public License *
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
20 ***************************************************************************/
24 int main(int argc
, char *argv
[])
26 QApplication
app(argc
, argv
);
36 QString
filename (app
.argv()[1]);
37 //Sanity Check for file....
38 if (checkFiles() != 0)
41 hecsModel
= new RdSap(filename
);
42 hecsModel
->buildBoilerList();
44 //hecsGui = new HecsUI (hecsModel);
51 //hecsGui.setModel(hecsModel);
55 std::cout
<< "Bye !!" << std::endl
;
64 QFile file (fp.filePath("table13"));
67 qWarning("Can't Find Table13 file !!");
71 /* filePath = "data/table12";
72 if (!filePath.exists())
74 qWarning("Can't Find Table12 file !!");
78 filePath = "data/table10";
79 if (!filePath.exists())
81 qWarning("Can't Find Table10 file !!");
85 filePath = "data/table6e";
86 if (!filePath.exists())
88 qWarning("Can't Find Table6e file !!");
96 std::cout
<< "\nUsage: HECS <filename>\n\n" << std::endl
;