ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/applications/simpleBuilder/simpleBuilderCmd.h
Revision: 3041
Committed: Tue Oct 10 18:34:12 2006 UTC (17 years, 9 months ago) by gezelter
Content type: text/plain
File size: 2294 byte(s)
Log Message:
fixing missing lattice arguments, adding a builder sample

File Contents

# Content
1 /* simpleBuilderCmd.h */
2
3 /* File autogenerated by gengetopt version 2.16 */
4
5 #ifndef SIMPLEBUILDERCMD_H
6 #define SIMPLEBUILDERCMD_H
7
8 /* If we use autoconf. */
9 #ifdef HAVE_CONFIG_H
10 #include "config.h"
11 #endif
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif /* __cplusplus */
16
17 #ifndef CMDLINE_PARSER_PACKAGE
18 #define CMDLINE_PARSER_PACKAGE "simpleBuilder"
19 #endif
20
21 #ifndef CMDLINE_PARSER_VERSION
22 #define CMDLINE_PARSER_VERSION "1.0"
23 #endif
24
25 struct gengetopt_args_info
26 {
27 char * output_arg; /* Output file name. */
28 char * output_orig; /* Output file name original value given at command line. */
29 double density_arg; /* density (g/cm^3). */
30 char * density_orig; /* density (g/cm^3) original value given at command line. */
31 int nx_arg; /* number of unit cells in x. */
32 char * nx_orig; /* number of unit cells in x original value given at command line. */
33 int ny_arg; /* number of unit cells in y. */
34 char * ny_orig; /* number of unit cells in y original value given at command line. */
35 int nz_arg; /* number of unit cells in z. */
36 char * nz_orig; /* number of unit cells in z original value given at command line. */
37
38 int help_given ; /* Whether help was given. */
39 int version_given ; /* Whether version was given. */
40 int output_given ; /* Whether output was given. */
41 int density_given ; /* Whether density was given. */
42 int nx_given ; /* Whether nx was given. */
43 int ny_given ; /* Whether ny was given. */
44 int nz_given ; /* Whether nz was given. */
45
46 char **inputs ; /* unamed options */
47 unsigned inputs_num ; /* unamed options number */
48 } ;
49
50 int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info);
51 int cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required);
52 int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info);
53
54 void cmdline_parser_print_help(void);
55 void cmdline_parser_print_version(void);
56
57 void cmdline_parser_init (struct gengetopt_args_info *args_info);
58 void cmdline_parser_free (struct gengetopt_args_info *args_info);
59
60 int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name);
61
62
63 #ifdef __cplusplus
64 }
65 #endif /* __cplusplus */
66 #endif /* SIMPLEBUILDERCMD_H */