campo-sirio/ha/ha3.cpp
luca 0cc89b3ed1 Patch level :
Files correlati     :
Ricompilazione Demo : [ ]
Commento            :


git-svn-id: svn://10.65.10.50/branches/R_10_00@21925 c028cbd2-c16b-5b4b-a496-9718f37d4682
2011-04-11 15:33:07 +00:00

22 lines
511 B
C++
Executable File

#include <xvt.h>
#include <checks.h>
#include "ha3.h"
#define usage "Error - usage : %s -{0|7|8}"
int main(int argc,char** argv)
{
int rt = -1 ;
const int r = (argc > 1) ? atoi(&argv[1][1]) : -1;
switch (r)
{
case 0: rt = ha3100(argc, argv); break; //Gestione giri
case 7: rt = ha3800(argc, argv); break; //Inserimento righe storico da documenti
case 8: rt = ha3900(argc, argv); break; //Gestione storico attrezzature
default: error_box(usage, argv[0]); break;
}
return rt;
}