XALM  1.0
 Vše Třídy Prostory jmen Soubory Funkce Proměnné Výčty Hodnoty výčtu Friends Definice maker
xalmtest.cpp
Zobrazit dokumentaci tohoto souboru.
1 
6 #include "strut_xalm.h"
7 #include "librw.h"
8 #include "gelib.h"
9 
10 
11 
12 using namespace xalm;
13 
14 void help (void);
15 
16 #define VERSION 0.01
17 
21 int main (int argc, char *argv[])
22 {
23  // version
24  if (AP_find_option (argc, argv, "--version")) { fprintf (stdout, "%.2f\n", VERSION); return 0; }
25 
26  // help
27  if (AP_find_option (argc, argv, "--help")) { help(); return 0; }
28 
29  // detection of paramaters
30  if (argc != 1) {
31  _warningg("unsupported paramater(s)");
32  help();
33  }
34 
36  XALM_interface *xi = new XALM_interface();
37 
38  xi->mtlb();
39  xi->solve();
40 
42  if (xi) delete xi;
43 
44  return 0;
45 }
46 // *** END OF MAIN ***
47 
48 
50 void help (void)
51 {
52  fprintf (stdout,
53  " Test of XALM library of nonlinear solver \n"
54  " Copyright (C) 2013-2014 Ladislav Svoboda \n"
55  " \n"
56  " SYNTAX xalmtest [--help|--version] \n"
57  " \n"
58  " DESCRIPTION \n"
59  " \n"
60  " --help ... print this help \n"
61  " --version ... print this help \n"
62  " \n\n");
63 }
#define _warningg(_1)
Definition: gelib.h:163
int main(int argc, char *argv[])
*** *** *** *** MAIN *** *** *** ***
Definition: xalmtest.cpp:21
General functions.
Input / output function.
Definition: xalm.cpp:9
int solve(void)
Funkce solve je hlavní, a jediná, výkonná funkce knihovny XALM.
Definition: xalm.cpp:76
#define VERSION
Definition: xalmtest.cpp:16
long AP_find_option(int argc, char *argv[], const char *s)
*** *** *** *** ARGUMENTS PROCESSING *** *** *** *** terminology: tar -cz -f archiv.tgz archiv/ /// fce name | arguments /// fce name | options | parameters /// fce name | opt | opt | opt argum.
Definition: librw.cpp:97
Interface to library XALM.
void help(void)
prints help / syntax
Definition: xalmtest.cpp:50