YaDICs  V04.14.a
Yet another Digital Image Correlation software: platform dedicated to 2/3D Fluid and Solid kinematics field measurements.
 All Classes Files Functions Variables Pages
Code_info.h
1 /**********************************************************************
2  * Copyright (C) 2012, The YaDICs Project Developers.
3  * See the COPYRIGHT file at the top-level directory of this distribution ./COPYRIGHT.
4  * See ./COPYING file for copying and redistribution conditions.
5  *
6  * This file is part of YaDICs.
7  * YaDICs is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * YaDICs is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with YaDICs. If not, see <http://www.gnu.org/licenses/>.
19  *
20  * Information about how to use the software are provided at http://yadic.univ-lille1.fr/
21  **********************************************************************/
22 
23 
24 #ifndef CODE_INFO
25 #define CODE_INFO
26 
27 #include "Ccorrelation_factory.h"
28 #include "Cmesh_factory.h"
29 #include "Cfield_factory.h"
30 #include "Cpeak_factory.h"
31 #include "CshapeFunction_factory.h"
32 #include "Cimage_factory.h"
33 
34 //---------------------------------------------------------------
35 bool info(int argc, char *argv[]);
36 //---------------------------------------------------------------
37 
38 
39 #define Timg float
40 #define T float
41 
44  bool info(int argc, char *argv[])
45  {
46 
47  bool out(0);
48 
49  //help
50  const bool show_h = cimg_option("-h",false,NULL);//-h hidden option
51  bool show_help = cimg_option("--help",show_h,"help (or -h option)");show_help=show_h|show_help;//same --help or -h option
52  bool show_info = cimg_option("-I",false,NULL);//-I hidden option
53 
54  if(show_help)
55  {//help
56 
57  printf("\n\n\n.cdl requirements\n");
58 
59  Ccorrelation_factory<T,Timg> corInfo("correlator");
60  corInfo.info();
61 
62  Cmesh_factory<T,Timg> meshInfo("mesh");
63  meshInfo.info();
64 
65  Cpeak_factory<T> peakInfo("peak");
66  peakInfo.info();
67 
68  CshapeFunction_factory<T,Timg> shapeInfo("shape_function");
69  shapeInfo.info();
70 
71  Cfield_factory<T,Timg> fieldInfo("field");
72  fieldInfo.info();
73 
74  Cimage_factory<Timg> imageInfo("Image");
75  imageInfo.info();
76 
77  out = 0;
78  }
79 
80  if( cimg_option("--info",show_info,"show compilation options (or -I option)") )
81  {//info
82  cimg_library::cimg::info();
83  out = 1;
84  }
85 
86  return out;
87 
88  }
89 
90 #endif
This factory create a pointer toward the required ShapeFunction class. The pointer creation could onl...
Definition: CshapeFunction_factory.h:45
Definition: Cmesh_factory.h:42
It returns a pointer toward a specific correlation method according to a parameter.nc file. The parameter file is set by default or could be provide by command line. create function could be called using : int, string = type, CParameterNetCDF, and finally [argv,argc] !!!! The function to get parameters directly from command line doesn't work yet.
Definition: Ccorrelation_factory.h:61
Definition: Cpeak_factory.h:46
It returns a pointer toward a specific field container according to a parameter.nc file...
Definition: Cfield_factory.h:52
It returns a pointer toward a specific Image loader class according to a parameter.nc file. The parameter file is set by default or could be provide by command line. create function could be called using : int, string = type, CParameterNetCDF, and finally [argv,argc] !!!! The function to get parameters directly from command line doesn't work yet.
Definition: Cimage_factory.h:61