9 #ifndef IMPBASE_FLAGS_H
10 #define IMPBASE_FLAGS_H
12 #include <IMP/base/base_config.h>
13 #include <boost/cstdint.hpp>
17 IMPBASE_BEGIN_NAMESPACE
41 std::string description);
52 std::string description);
68 std::string positional_description,
int num_positional);
78 std::string description);
93 std::string positional_description,
int num_positional);
100 std::string *storage);
105 IMPBASEEXPORT
void add_string_flag(std::string name, std::string default_value,
106 std::string description);
114 AddIntFlag(std::string name, std::string description,
115 boost::int64_t *storage);
120 IMPBASEEXPORT
void add_int_flag(std::string name,
size_t default_value,
121 std::string description);
129 AddBoolFlag(std::string name, std::string description,
bool *storage);
134 IMPBASEEXPORT
void add_bool_flag(std::string name, std::string description);
142 AddFloatFlag(std::string name, std::string description,
double *storage);
147 IMPBASEEXPORT
void add_float_flag(std::string name,
double default_value,
148 std::string description);
155 IMPBASEEXPORT
void write_help(std::ostream &out = std::cerr);
163 IMPBASE_END_NAMESPACE
size_t get_int_flag(std::string name)
double get_float_flag(std::string name)
void add_float_flag(std::string name, double default_value, std::string description)
bool get_bool_flag(std::string name)
IMP::base::Vector< String > Strings
Standard way to pass a bunch of String values.
std::string get_string_flag(std::string name)
void add_bool_flag(std::string name, std::string description)
void add_string_flag(std::string name, std::string default_value, std::string description)
void write_help(std::ostream &out=std::cerr)
void add_int_flag(std::string name, size_t default_value, std::string description)
Strings setup_from_argv_allowing_unknown(int argc, char **argv, std::string description)
void setup_from_argv(int argc, char **argv, std::string description)
std::string get_executable_name()