00001 /* 00002 * Copyright (c) 2007. The BATI team. All right reserved. 00003 * 00004 * This file is part of BATI library. 00005 * 00006 * BATI library is free software: you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation, either version 3 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * BATI library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with BATI library. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 #include <stdio.h> 00020 #include <math.h> 00021 00022 #include "vect_ima.h" 00023 00024 int main(int argc, char *argv[]){ 00025 00026 /* DECLARATIONS */ 00027 00028 00029 /* operateurs */ 00030 vector_t des; 00031 00032 /* main : variables et parametres propres au main*/ 00033 param par0, *ptp; /* tete et pointeur pour la chaine de parametres */ 00034 int iloc; 00035 float floc; 00036 char nomloc[200]; 00037 00038 00039 /* LECTURE PARAMETRES */ 00040 00041 /* debut: OBLIGATOIRE pour compatibilite avec les 3 modes de lecture de param */ 00042 param_debut(argc, argv, &par0); 00043 ptp = &par0; /* regle : ptp pointe sur la structure du parametre suivant */ 00044 00045 /* operateurs: ptp est passe en argument, return fournit la nouvelle position */ 00046 ptp =vector_lect(&des, ptp,""); 00047 00048 00049 /* fin: sauvegarde des parametres utilises en mode MANUEL ou FICHIER */ 00050 param_fin(argc, argv, &par0); 00051 00052 00053 /* INITIALISATION */ 00054 00055 /* operateur */ 00056 /*vector_init(&des);*/ 00057 /* main : en cas de variable a allouer/initialiser dans le main */ 00058 00059 00060 /* CALCUL */ 00061 vector_calc(&des); 00062 } 00063