OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
SequentialPropsCmd.hpp
Go to the documentation of this file.
1/** @file SequentialPropsCmd.hpp
2 * @brief The header file for the command line option parser
3 * generated by GNU Gengetopt version 2.22.6
4 * http://www.gnu.org/software/gengetopt.
5 * DO NOT modify this file, since it can be overwritten
6 * @author GNU Gengetopt by Lorenzo Bettini */
7
8#ifndef SEQUENTIALPROPSCMD_H
9#define SEQUENTIALPROPSCMD_H
10
11/* If we use autoconf. */
12#ifdef HAVE_CONFIG_H
13#include "config.h"
14#endif
15
16#include <stdio.h> /* for FILE */
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
22#ifndef CMDLINE_PARSER_PACKAGE
23/** @brief the program name (used for printing errors) */
24#define CMDLINE_PARSER_PACKAGE "SequentialProps"
25#endif
26
27#ifndef CMDLINE_PARSER_PACKAGE_NAME
28/** @brief the complete program name (used for help and version) */
29#define CMDLINE_PARSER_PACKAGE_NAME "SequentialProps"
30#endif
31
32#ifndef CMDLINE_PARSER_VERSION
33/** @brief the program version */
34#define CMDLINE_PARSER_VERSION ""
35#endif
36
37/** @brief Where the command line options are stored */
39{
40 const char *help_help; /**< @brief Print help and exit help description. */
41 const char *version_help; /**< @brief Print version and exit help description. */
42 char * input_arg; /**< @brief input dump file. */
43 char * input_orig; /**< @brief input dump file original value given at command line. */
44 const char *input_help; /**< @brief input dump file help description. */
45 char * output_arg; /**< @brief output file name. */
46 char * output_orig; /**< @brief output file name original value given at command line. */
47 const char *output_help; /**< @brief output file name help description. */
48 char * sele1_arg; /**< @brief select first stuntdouble set. */
49 char * sele1_orig; /**< @brief select first stuntdouble set original value given at command line. */
50 const char *sele1_help; /**< @brief select first stuntdouble set help description. */
51 char * sele2_arg; /**< @brief select second stuntdouble set (if sele2 is not set, use script from sele1). */
52 char * sele2_orig; /**< @brief select second stuntdouble set (if sele2 is not set, use script from sele1) original value given at command line. */
53 const char *sele2_help; /**< @brief select second stuntdouble set (if sele2 is not set, use script from sele1) help description. */
54 int nbins_arg; /**< @brief number of bins (general purpose) (default='100'). */
55 char * nbins_orig; /**< @brief number of bins (general purpose) original value given at command line. */
56 const char *nbins_help; /**< @brief number of bins (general purpose) help description. */
57 int nbins_z_arg; /**< @brief number of bins in z axis (default='100'). */
58 char * nbins_z_orig; /**< @brief number of bins in z axis original value given at command line. */
59 const char *nbins_z_help; /**< @brief number of bins in z axis help description. */
60 double centroidX_arg; /**< @brief Location of droplet centroid in x. */
61 char * centroidX_orig; /**< @brief Location of droplet centroid in x original value given at command line. */
62 const char *centroidX_help; /**< @brief Location of droplet centroid in x help description. */
63 double centroidY_arg; /**< @brief Location of droplet centroid in y. */
64 char * centroidY_orig; /**< @brief Location of droplet centroid in y original value given at command line. */
65 const char *centroidY_help; /**< @brief Location of droplet centroid in y help description. */
66 double referenceZ_arg; /**< @brief Reference z-height of solid surface. */
67 char * referenceZ_orig; /**< @brief Reference z-height of solid surface original value given at command line. */
68 const char *referenceZ_help; /**< @brief Reference z-height of solid surface help description. */
69 double dropletR_arg; /**< @brief Droplet radius in angstroms. */
70 char * dropletR_orig; /**< @brief Droplet radius in angstroms original value given at command line. */
71 const char *dropletR_help; /**< @brief Droplet radius in angstroms help description. */
72 double threshDens_arg; /**< @brief Threshold Density in g/cm^3. */
73 char * threshDens_orig; /**< @brief Threshold Density in g/cm^3 original value given at command line. */
74 const char *threshDens_help; /**< @brief Threshold Density in g/cm^3 help description. */
75 double bufferLength_arg; /**< @brief Buffer length in angstroms. */
76 char * bufferLength_orig; /**< @brief Buffer length in angstroms original value given at command line. */
77 const char *bufferLength_help; /**< @brief Buffer length in angstroms help description. */
78 double rcut_arg; /**< @brief cutoff radius (rcut). */
79 char * rcut_orig; /**< @brief cutoff radius (rcut) original value given at command line. */
80 const char *rcut_help; /**< @brief cutoff radius (rcut) help description. */
81 const char *com_help; /**< @brief selection center of mass help description. */
82 const char *comvel_help; /**< @brief selection center of mass velocity help description. */
83 const char *ca1_help; /**< @brief contact angle of selection (using center of mass) help description. */
84 const char *ca2_help; /**< @brief contact angle of selection (using density profile) help description. */
85 const char *gcn_help; /**< @brief Generalized Coordinate Number help description. */
86 const char *testequi_help; /**< @brief Temperature using all componets of linear and angular momentum help description. */
87
88 unsigned int help_given ; /**< @brief Whether help was given. */
89 unsigned int version_given ; /**< @brief Whether version was given. */
90 unsigned int input_given ; /**< @brief Whether input was given. */
91 unsigned int output_given ; /**< @brief Whether output was given. */
92 unsigned int sele1_given ; /**< @brief Whether sele1 was given. */
93 unsigned int sele2_given ; /**< @brief Whether sele2 was given. */
94 unsigned int nbins_given ; /**< @brief Whether nbins was given. */
95 unsigned int nbins_z_given ; /**< @brief Whether nbins_z was given. */
96 unsigned int centroidX_given ; /**< @brief Whether centroidX was given. */
97 unsigned int centroidY_given ; /**< @brief Whether centroidY was given. */
98 unsigned int referenceZ_given ; /**< @brief Whether referenceZ was given. */
99 unsigned int dropletR_given ; /**< @brief Whether dropletR was given. */
100 unsigned int threshDens_given ; /**< @brief Whether threshDens was given. */
101 unsigned int bufferLength_given ; /**< @brief Whether bufferLength was given. */
102 unsigned int rcut_given ; /**< @brief Whether rcut was given. */
103 unsigned int com_given ; /**< @brief Whether com was given. */
104 unsigned int comvel_given ; /**< @brief Whether comvel was given. */
105 unsigned int ca1_given ; /**< @brief Whether ca1 was given. */
106 unsigned int ca2_given ; /**< @brief Whether ca2 was given. */
107 unsigned int gcn_given ; /**< @brief Whether gcn was given. */
108 unsigned int testequi_given ; /**< @brief Whether testequi was given. */
109
110 char **inputs ; /**< @brief unamed options (options without names) */
111 unsigned inputs_num ; /**< @brief unamed options number */
112 int sequentialProps_group_counter; /**< @brief Counter for group sequentialProps */
113} ;
114
115/** @brief The additional parameters to pass to parser functions */
117{
118 int override; /**< @brief whether to override possibly already present options (default 0) */
119 int initialize; /**< @brief whether to initialize the option structure gengetopt_args_info (default 1) */
120 int check_required; /**< @brief whether to check that all required options were provided (default 1) */
121 int check_ambiguity; /**< @brief whether to check for options already specified in the option structure gengetopt_args_info (default 0) */
122 int print_errors; /**< @brief whether getopt_long should print an error message for a bad option (default 1) */
123} ;
124
125/** @brief the purpose string of the program */
126extern const char *gengetopt_args_info_purpose;
127/** @brief the usage string of the program */
128extern const char *gengetopt_args_info_usage;
129/** @brief the description string of the program */
130extern const char *gengetopt_args_info_description;
131/** @brief all the lines making the help output */
132extern const char *gengetopt_args_info_help[];
133
134/**
135 * The command line parser
136 * @param argc the number of command line options
137 * @param argv the command line options
138 * @param args_info the structure where option information will be stored
139 * @return 0 if everything went fine, NON 0 if an error took place
140 */
141int cmdline_parser (int argc, char **argv,
142 struct gengetopt_args_info *args_info);
143
144/**
145 * The command line parser (version with additional parameters - deprecated)
146 * @param argc the number of command line options
147 * @param argv the command line options
148 * @param args_info the structure where option information will be stored
149 * @param override whether to override possibly already present options
150 * @param initialize whether to initialize the option structure my_args_info
151 * @param check_required whether to check that all required options were provided
152 * @return 0 if everything went fine, NON 0 if an error took place
153 * @deprecated use cmdline_parser_ext() instead
154 */
155int cmdline_parser2 (int argc, char **argv,
156 struct gengetopt_args_info *args_info,
157 int override, int initialize, int check_required);
158
159/**
160 * The command line parser (version with additional parameters)
161 * @param argc the number of command line options
162 * @param argv the command line options
163 * @param args_info the structure where option information will be stored
164 * @param params additional parameters for the parser
165 * @return 0 if everything went fine, NON 0 if an error took place
166 */
167int cmdline_parser_ext (int argc, char **argv,
168 struct gengetopt_args_info *args_info,
169 struct cmdline_parser_params *params);
170
171/**
172 * Save the contents of the option struct into an already open FILE stream.
173 * @param outfile the stream where to dump options
174 * @param args_info the option struct to dump
175 * @return 0 if everything went fine, NON 0 if an error took place
176 */
177int cmdline_parser_dump(FILE *outfile,
178 struct gengetopt_args_info *args_info);
179
180/**
181 * Save the contents of the option struct into a (text) file.
182 * This file can be read by the config file parser (if generated by gengetopt)
183 * @param filename the file where to save
184 * @param args_info the option struct to save
185 * @return 0 if everything went fine, NON 0 if an error took place
186 */
187int cmdline_parser_file_save(const char *filename,
188 struct gengetopt_args_info *args_info);
189
190/**
191 * Print the help
192 */
194/**
195 * Print the version
196 */
198
199/**
200 * Initializes all the fields a cmdline_parser_params structure
201 * to their default values
202 * @param params the structure to initialize
203 */
205
206/**
207 * Allocates dynamically a cmdline_parser_params structure and initializes
208 * all its fields to their default values
209 * @return the created and initialized cmdline_parser_params structure
210 */
212
213/**
214 * Initializes the passed gengetopt_args_info structure's fields
215 * (also set default values for options that have a default)
216 * @param args_info the structure to initialize
217 */
218void cmdline_parser_init (struct gengetopt_args_info *args_info);
219/**
220 * Deallocates the string fields of the gengetopt_args_info structure
221 * (but does not deallocate the structure itself)
222 * @param args_info the structure to deallocate
223 */
224void cmdline_parser_free (struct gengetopt_args_info *args_info);
225
226/**
227 * Checks that all the required options were specified
228 * @param args_info the structure to check
229 * @param prog_name the name of the program that will be used to print
230 * possible errors
231 * @return
232 */
233int cmdline_parser_required (struct gengetopt_args_info *args_info,
234 const char *prog_name);
235
236
237#ifdef __cplusplus
238}
239#endif /* __cplusplus */
240#endif /* SEQUENTIALPROPSCMD_H */
int cmdline_parser_dump(FILE *outfile, struct gengetopt_args_info *args_info)
Save the contents of the option struct into an already open FILE stream.
int cmdline_parser(int argc, char **argv, struct gengetopt_args_info *args_info)
The command line parser.
int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info)
Save the contents of the option struct into a (text) file.
const char * gengetopt_args_info_purpose
the purpose string of the program
const char * gengetopt_args_info_help[]
all the lines making the help output
int cmdline_parser2(int argc, char **argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required)
The command line parser (version with additional parameters - deprecated)
int cmdline_parser_required(struct gengetopt_args_info *args_info, const char *prog_name)
Checks that all the required options were specified.
void cmdline_parser_print_version(void)
Print the version.
struct cmdline_parser_params * cmdline_parser_params_create(void)
Allocates dynamically a cmdline_parser_params structure and initializes all its fields to their defau...
const char * gengetopt_args_info_usage
the usage string of the program
int cmdline_parser_ext(int argc, char **argv, struct gengetopt_args_info *args_info, struct cmdline_parser_params *params)
The command line parser (version with additional parameters)
void cmdline_parser_init(struct gengetopt_args_info *args_info)
Initializes the passed gengetopt_args_info structure's fields (also set default values for options th...
const char * gengetopt_args_info_description
the description string of the program
void cmdline_parser_print_help(void)
Print the help.
void cmdline_parser_free(struct gengetopt_args_info *args_info)
Deallocates the string fields of the gengetopt_args_info structure (but does not deallocate the struc...
void cmdline_parser_params_init(struct cmdline_parser_params *params)
Initializes all the fields a cmdline_parser_params structure to their default values.
The additional parameters to pass to parser functions.
int print_errors
whether getopt_long should print an error message for a bad option (default 1)
int check_required
whether to check that all required options were provided (default 1)
int check_ambiguity
whether to check for options already specified in the option structure gengetopt_args_info (default 0...
int initialize
whether to initialize the option structure gengetopt_args_info (default 1)
Where the command line options are stored.
unsigned int comvel_given
Whether comvel was given.
char * sele2_arg
select second stuntdouble set (if sele2 is not set, use script from sele1).
char * nbins_orig
Number of bins original value given at command line.
const char * comvel_help
selection center of mass velocity help description.
unsigned int output_given
Whether output was given.
double centroidX_arg
Location of droplet centroid in x.
unsigned int referenceZ_given
Whether referenceZ was given.
const char * rcut_help
cutoff radius (angstroms) help description.
unsigned int dropletR_given
Whether dropletR was given.
unsigned int threshDens_given
Whether threshDens was given.
char * output_orig
output file name original value given at command line.
const char * output_help
output file name help description.
const char * nbins_help
Number of bins help description.
const char * ca1_help
contact angle of selection (using center of mass) help description.
double bufferLength_arg
Buffer length in angstroms.
char * referenceZ_orig
Reference z-height of solid surface original value given at command line.
const char * sele1_help
select first stuntdouble set help description.
char * bufferLength_orig
Buffer length in angstroms original value given at command line.
double referenceZ_arg
Reference z-height of solid surface.
const char * sele2_help
select second stuntdouble set (if sele2 is not set, use script from sele1) help description.
unsigned inputs_num
unamed options number
const char * gcn_help
Generalized Coordinate Number help description.
unsigned int ca2_given
Whether ca2 was given.
const char * ca2_help
contact angle of selection (using density profile) help description.
const char * referenceZ_help
Reference z-height of solid surface help description.
const char * help_help
Print help and exit help description.
char * threshDens_orig
Threshold Density in g/cm^3 original value given at command line.
char * output_arg
output file name.
unsigned int centroidY_given
Whether centroidY was given.
const char * centroidX_help
Location of droplet centroid in x help description.
const char * threshDens_help
Threshold Density in g/cm^3 help description.
char ** inputs
unamed options (options without names)
const char * centroidY_help
Location of droplet centroid in y help description.
const char * com_help
selection center of mass help description.
unsigned int testequi_given
Whether testequi was given.
char * input_arg
input dump file.
char * nbins_z_orig
number of bins in z axis original value given at command line.
int nbins_z_arg
number of bins in z axis (default='100').
unsigned int sele1_given
Whether sele1 was given.
unsigned int gcn_given
Whether gcn was given.
char * dropletR_orig
Droplet radius in angstroms original value given at command line.
unsigned int com_given
Whether com was given.
double rcut_arg
cutoff radius (angstroms).
int sequentialProps_group_counter
Counter for group sequentialProps.
char * sele2_orig
select second stuntdouble set (if sele2 is not set, use script from sele1) original value given at co...
char * sele1_orig
select first stuntdouble set original value given at command line.
unsigned int ca1_given
Whether ca1 was given.
char * centroidX_orig
Location of droplet centroid in x original value given at command line.
char * sele1_arg
select first stuntdouble set.
double centroidY_arg
Location of droplet centroid in y.
const char * bufferLength_help
Buffer length in angstroms help description.
unsigned int rcut_given
Whether rcut was given.
unsigned int bufferLength_given
Whether bufferLength was given.
unsigned int help_given
Whether help was given.
const char * dropletR_help
Droplet radius in angstroms help description.
double threshDens_arg
Threshold Density in g/cm^3.
unsigned int input_given
Whether input was given.
int nbins_arg
Number of bins (default='100').
const char * testequi_help
Temperature using all componets of linear and angular momentum help description.
unsigned int centroidX_given
Whether centroidX was given.
unsigned int version_given
Whether version was given.
unsigned int sele2_given
Whether sele2 was given.
const char * version_help
Print version and exit help description.
char * centroidY_orig
Location of droplet centroid in y original value given at command line.
char * input_orig
input dump file original value given at command line.
unsigned int nbins_given
Whether nbins was given.
const char * nbins_z_help
number of bins in z axis help description.
double dropletR_arg
Droplet radius in angstroms.
unsigned int nbins_z_given
Whether nbins_z was given.
char * rcut_orig
cutoff radius (angstroms) original value given at command line.
const char * input_help
input dump file help description.