To build the project you can use the script
$ ./build.sh
This will create a build
directory with the migration_office
executable.
- -p, --people people_file
People file - -a, --alerts alerts_file
Alerts file - -f, --fugitives fugitives_file
Fugitive ids file - -s, --stampers stampers_number
(Optional) Default stampers quantity is 5 - -b, --booths booths_number
(Optional) Default booths quantity is 10 - -d, --debug
(Optional) Debug mode - -l, --log log_file
(Optional) Choose a file to log, default log file is log located in the same dir as the office's executable
$ ./migration_office -p ../resources/people.txt\
-a ../resources/alerts.txt\
-f ../resources/fugitives.txt
$ ./migration_office -p ../resources/people.txt\
-a ../resources/alerts.txt\
-f ../resources/fugitives.txt\
-d
$ ./migration_office -p ../resources/people.txt\
-a ../resources/alerts.txt\
-f ../resources/fugitives.txt\
-b 4 -s 1\
-d -l logex3
Ask for statistics (allowed residents, detained residents, allowed foreigners, deported foreigners) or just exit.
> allowed residents
1
> allowed foreigners
0
> deported
Invalid command, try again
> exit
- People file
timestamp,resident,id,passport_id,features
5,1,38464269,,tez blanca,ojos oscuros
2,0,1234567,PORTOÑOL123,tez blanca,ojos verdes,barbudo
- Alerts file
timestamp,del_timestamp,features
1,8,petiso,orejudo
4,9,gatuno
0,5,sombrero cónico
- Fugitives file
id
13641107
38464269
GNU General Public License v3.0