OpenMD 3.0
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
elasticConstantsCmd.hpp
Go to the documentation of this file.
1/** @file elasticConstantsCmd.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 ELASTICCONSTANTSCMD_H
9#define ELASTICCONSTANTSCMD_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 "elasticConstants"
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 "elasticConstants"
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 file name. */
43 char * input_orig; /**< @brief Input file name original value given at command line. */
44 const char *input_help; /**< @brief Input file name help description. */
45 int box_flag; /**< @brief Optimize box geometry before performing calculation (default=off). */
46 const char *box_help; /**< @brief Optimize box geometry before performing calculation help description. */
47 char * method_arg; /**< @brief Calculation Method. */
48 char * method_orig; /**< @brief Calculation Method original value given at command line. */
49 const char *method_help; /**< @brief Calculation Method help description. */
50 int npoints_arg; /**< @brief number of points for fitting
51 stress-strain relationship (default='25'). */
52 char * npoints_orig; /**< @brief number of points for fitting
53 stress-strain relationship original value given at command line. */
54 const char *npoints_help; /**< @brief number of points for fitting
55 stress-strain relationship help description. */
56 double delta_arg; /**< @brief size of relative volume changes for strains. */
57 char * delta_orig; /**< @brief size of relative volume changes for strains original value given at command line. */
58 const char *delta_help; /**< @brief size of relative volume changes for strains help description. */
59
60 unsigned int help_given ; /**< @brief Whether help was given. */
61 unsigned int version_given ; /**< @brief Whether version was given. */
62 unsigned int input_given ; /**< @brief Whether input was given. */
63 unsigned int box_given ; /**< @brief Whether box was given. */
64 unsigned int method_given ; /**< @brief Whether method was given. */
65 unsigned int npoints_given ; /**< @brief Whether npoints was given. */
66 unsigned int delta_given ; /**< @brief Whether delta was given. */
67
68 char **inputs ; /**< @brief unamed options (options without names) */
69 unsigned inputs_num ; /**< @brief unamed options number */
70} ;
71
72/** @brief The additional parameters to pass to parser functions */
74{
75 int override; /**< @brief whether to override possibly already present options (default 0) */
76 int initialize; /**< @brief whether to initialize the option structure gengetopt_args_info (default 1) */
77 int check_required; /**< @brief whether to check that all required options were provided (default 1) */
78 int check_ambiguity; /**< @brief whether to check for options already specified in the option structure gengetopt_args_info (default 0) */
79 int print_errors; /**< @brief whether getopt_long should print an error message for a bad option (default 1) */
80} ;
81
82/** @brief the purpose string of the program */
83extern const char *gengetopt_args_info_purpose;
84/** @brief the usage string of the program */
85extern const char *gengetopt_args_info_usage;
86/** @brief the description string of the program */
87extern const char *gengetopt_args_info_description;
88/** @brief all the lines making the help output */
89extern const char *gengetopt_args_info_help[];
90
91/**
92 * The command line parser
93 * @param argc the number of command line options
94 * @param argv the command line options
95 * @param args_info the structure where option information will be stored
96 * @return 0 if everything went fine, NON 0 if an error took place
97 */
98int cmdline_parser (int argc, char **argv,
99 struct gengetopt_args_info *args_info);
100
101/**
102 * The command line parser (version with additional parameters - deprecated)
103 * @param argc the number of command line options
104 * @param argv the command line options
105 * @param args_info the structure where option information will be stored
106 * @param override whether to override possibly already present options
107 * @param initialize whether to initialize the option structure my_args_info
108 * @param check_required whether to check that all required options were provided
109 * @return 0 if everything went fine, NON 0 if an error took place
110 * @deprecated use cmdline_parser_ext() instead
111 */
112int cmdline_parser2 (int argc, char **argv,
113 struct gengetopt_args_info *args_info,
114 int override, int initialize, int check_required);
115
116/**
117 * The command line parser (version with additional parameters)
118 * @param argc the number of command line options
119 * @param argv the command line options
120 * @param args_info the structure where option information will be stored
121 * @param params additional parameters for the parser
122 * @return 0 if everything went fine, NON 0 if an error took place
123 */
124int cmdline_parser_ext (int argc, char **argv,
125 struct gengetopt_args_info *args_info,
126 struct cmdline_parser_params *params);
127
128/**
129 * Save the contents of the option struct into an already open FILE stream.
130 * @param outfile the stream where to dump options
131 * @param args_info the option struct to dump
132 * @return 0 if everything went fine, NON 0 if an error took place
133 */
134int cmdline_parser_dump(FILE *outfile,
135 struct gengetopt_args_info *args_info);
136
137/**
138 * Save the contents of the option struct into a (text) file.
139 * This file can be read by the config file parser (if generated by gengetopt)
140 * @param filename the file where to save
141 * @param args_info the option struct to save
142 * @return 0 if everything went fine, NON 0 if an error took place
143 */
144int cmdline_parser_file_save(const char *filename,
145 struct gengetopt_args_info *args_info);
146
147/**
148 * Print the help
149 */
151/**
152 * Print the version
153 */
155
156/**
157 * Initializes all the fields a cmdline_parser_params structure
158 * to their default values
159 * @param params the structure to initialize
160 */
162
163/**
164 * Allocates dynamically a cmdline_parser_params structure and initializes
165 * all its fields to their default values
166 * @return the created and initialized cmdline_parser_params structure
167 */
169
170/**
171 * Initializes the passed gengetopt_args_info structure's fields
172 * (also set default values for options that have a default)
173 * @param args_info the structure to initialize
174 */
175void cmdline_parser_init (struct gengetopt_args_info *args_info);
176/**
177 * Deallocates the string fields of the gengetopt_args_info structure
178 * (but does not deallocate the structure itself)
179 * @param args_info the structure to deallocate
180 */
181void cmdline_parser_free (struct gengetopt_args_info *args_info);
182
183/**
184 * Checks that all the required options were specified
185 * @param args_info the structure to check
186 * @param prog_name the name of the program that will be used to print
187 * possible errors
188 * @return
189 */
190int cmdline_parser_required (struct gengetopt_args_info *args_info,
191 const char *prog_name);
192
193extern const char *cmdline_parser_method_values[]; /**< @brief Possible values for method. */
194
195
196#ifdef __cplusplus
197}
198#endif /* __cplusplus */
199#endif /* ELASTICCONSTANTSCMD_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.
const char * cmdline_parser_method_values[]
Possible values for method.
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 npoints_given
Whether npoints was given.
char * npoints_orig
number of points for fitting stress-strain relationship original value given at command line.
unsigned inputs_num
unamed options number
unsigned int box_given
Whether box was given.
const char * help_help
Print help and exit help description.
char ** inputs
unamed options (options without names)
char * input_arg
input dump file.
unsigned int method_given
Whether method was given.
const char * method_help
Calculation Method help description.
int npoints_arg
number of points for fitting stress-strain relationship (default='25').
const char * delta_help
size of relative volume changes for strains help description.
char * delta_orig
size of relative volume changes for strains original value given at command line.
unsigned int delta_given
Whether delta was given.
double delta_arg
size of relative volume changes for strains.
char * method_orig
Calculation Method original value given at command line.
unsigned int help_given
Whether help was given.
int box_flag
Optimize box geometry before performing calculation (default=off).
unsigned int input_given
Whether input was given.
unsigned int version_given
Whether version was given.
const char * npoints_help
number of points for fitting stress-strain relationship help description.
const char * version_help
Print version and exit help description.
char * input_orig
input dump file original value given at command line.
const char * box_help
Optimize box geometry before performing calculation help description.
char * method_arg
Calculation Method.
const char * input_help
input dump file help description.