ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/applications/nanoparticleBuilder/nanoparticleBuilderCmd.h
Revision: 2352
Committed: Tue Oct 11 21:57:22 2005 UTC (18 years, 9 months ago) by chuckv
Content type: text/plain
File size: 2630 byte(s)
Log Message:
Added code for nanoparticle builder to cvs.

File Contents

# User Rev Content
1 chuckv 2352 /* nanoparticleBuilderCmd.h */
2    
3     /* File autogenerated by gengetopt version 2.13 */
4    
5     #ifndef NANOPARTICLEBUILDERCMD_H
6     #define NANOPARTICLEBUILDERCMD_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 "nanoparticleBuilder"
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 * latticetype_arg; /* Lattice type string. Valid types are fcc,hcp,bcc. (default='fcc'). */
29     double latticeCnst_arg; /* Lattice spacing in Angstroms for cubic lattice.. */
30     double radius_arg; /* Nanoparticle radius in Angstroms. */
31     double* ShellRadius_arg; /* Radius from the center of the particle to start a new shell in multi-component core-shell particle. Specified for each component > 1 in md file.. */
32     double* molFraction_arg; /* (Default) Builds a multi-component random mixed nanoparticle. Mole Fraction must be specified for each componet > 1 in MD file.. */
33     double vacancyPCT_arg; /* Percentage of vacancies to build. */
34     double* vacancyRadius_arg; /* Radius arround core-shell where vacancies should be located.. */
35    
36     int help_given ; /* Whether help was given. */
37     int version_given ; /* Whether version was given. */
38     int output_given ; /* Whether output was given. */
39     int latticetype_given ; /* Whether latticetype was given. */
40     int latticeCnst_given ; /* Whether latticeCnst was given. */
41     int radius_given ; /* Whether radius was given. */
42     unsigned int ShellRadius_given ; /* Whether ShellRadius was given. */
43     unsigned int molFraction_given ; /* Whether molFraction was given. */
44     int vacancyPCT_given ; /* Whether vacancyPCT was given. */
45     unsigned int vacancyRadius_given ; /* Whether vacancyRadius was given. */
46    
47     char **inputs ; /* unamed options */
48     unsigned inputs_num ; /* unamed options number */
49     } ;
50    
51     int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info);
52     int cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required);
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 /* NANOPARTICLEBUILDERCMD_H */