sgs_args.h (2283B)
1 /* Copyright (C) 2021-2023 Centre National de la Recherche Scientifique 2 * Copyright (C) 2021-2023 INSA Lyon 3 * Copyright (C) 2021-2023 Institut Mines Télécom Albi-Carmaux 4 * Copyright (C) 2021-2023 |Méso|Star> (contact@meso-star.com) 5 * Copyright (C) 2021-2023 Institut Pascal 6 * Copyright (C) 2021-2023 PhotonLyX (info@photonlyx.com) 7 * Copyright (C) 2021-2023 Université de Lorraine 8 * Copyright (C) 2021-2023 Université Paul Sabatier 9 * Copyright (C) 2021-2023 Université Toulouse - Jean Jaurès 10 * 11 * This program is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU General Public License as published by 13 * the Free Software Foundation, either version 3 of the License, or 14 * (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License 22 * along with this program. If not, see <http://www.gnu.org/licenses/>. */ 23 24 #ifndef SGS_ARGS_H 25 #define SGS_ARGS_H 26 27 #include "sgs_geometry.h" 28 #include <limits.h> 29 30 struct sgs_args { 31 struct sgs_geometry_box_args geom; /* The scene geometry */ 32 long nrealisations; 33 34 /* Miscellaneous parameters */ 35 unsigned nthreads; 36 int dump_geometry; 37 int quit; /* Stop the command */ 38 }; 39 40 #define SGS_ARGS_DEFAULT__ { \ 41 SGS_GEOMETRY_BOX_ARGS_DEFAULT, /* Scene geometry */ \ 42 10000, /* #realisations */ \ 43 \ 44 UINT_MAX, /* #threads */ \ 45 0, /* Dump geometry */ \ 46 0 /* Stop the command */ \ 47 } 48 static const struct sgs_args SGS_ARGS_DEFAULT = SGS_ARGS_DEFAULT__; 49 50 extern LOCAL_SYM res_T 51 sgs_args_init 52 (struct sgs_args* args, 53 int argc, 54 char** argv); 55 56 extern LOCAL_SYM void 57 sgs_args_release 58 (struct sgs_args* args); 59 60 #endif /* SGS_ARGS_H */