FET Forum

FET Support (English) => Programming Help => Topic started by: Michael on September 29, 2009, 07:21:03 PM

Title: FET Data Format: Documented?
Post by: Michael on September 29, 2009, 07:21:03 PM
Is the FET File-Format documented anywhere?

Although the XML-Notation is quite straightforward, most Sample-Files incorporate only a small part of the features of FET.

thanks
Michael
Title: Re: FET Data Format: Documented?
Post by: Liviu Lalescu on September 29, 2009, 07:39:46 PM
QuoteIs the FET File-Format documented anywhere?

Although the XML-Notation is quite straightforward, most Sample-Files incorporate only a small part of the features of FET.

thanks
Michael

Unfortunately, it is not documented  :-[

You can read the file src/engine/rules.cpp, function Rules::read for details.

You can add institution name, comments, days per week, hours per day, subjects, activity tags, teachers, students years, groups, subgroups, activities, rooms, buildings, time constraints, space constraints. This is all the data.
Title: Re: FET Data Format: Documented?
Post by: Volker Dirr on September 29, 2009, 07:40:25 PM
There is no special documentation.

So you can do 2 things:
1. generate a sample file that contain each constraint one time and just check the file yourself.

or, if you need it more detailed:
2. have a look into /src/engine/rules.cpp

first of all read function bool Rules::write(const QString& filename)
so you can see the order/structure of the xml file.
then maybe also read function bool Rules::read(const QString& filename) to get some more detailes.
Title: Re: FET Data Format: Documented?
Post by: Michael on September 29, 2009, 07:46:13 PM
All right. I will show up again when I don't understand anything (or everything ;))

thank you for the fast information!
Title: Re: FET Data Format: Documented?
Post by: senoritanx on November 05, 2009, 06:59:28 AM
i do not find any src/engine/rules.cpp file on my computer.

please let me know where it will be resided
Title: Re: FET Data Format: Documented?
Post by: Liviu Lalescu on November 05, 2009, 07:13:22 AM
Quotei do not find any src/engine/rules.cpp file on my computer.

please let me know where it will be resided

It is not present in the Windows exe archive. You need to download the sources tar.bz2 and unpack.
Title: Re: FET Data Format: Documented?
Post by: Volker Dirr on November 05, 2009, 07:20:40 PM
Get this tool if you can't unpack:
http://www.7-zip.org/