59 find_switch (
int argc,
const char *
const * argv,
const char * argument_name);
68 find_argument (
int argc,
const char *
const * argv,
const char * argument_name);
77 template<
typename Type>
int
78 parse (
int argc,
const char *
const * argv,
const char * argument_name, Type& value)
82 if (index > 0 && index < argc)
84 std::istringstream stream;
86 stream.str (argv[index]);
101 parse_argument (
int argc,
const char *
const * argv,
const char * str, std::string &val);
111 parse_argument (
int argc,
const char *
const * argv,
const char * str,
bool &val);
121 parse_argument (
int argc,
const char *
const * argv,
const char * str,
float &val);
131 parse_argument (
int argc,
const char *
const * argv,
const char * str,
double &val);
141 parse_argument (
int argc,
const char *
const * argv,
const char * str,
int &val);
151 parse_argument (
int argc,
const char *
const * argv,
const char * str,
unsigned int &val);
161 parse_argument (
int argc,
const char *
const * argv,
const char * str,
long int &val) noexcept;
171 parse_argument (
int argc,
const char *
const * argv,
const char * str,
char &val);
184 parse_2x_arguments (
int argc,
const char *
const * argv,
const char * str,
float &f,
float &s,
bool debug =
true);
197 parse_2x_arguments (
int argc,
const char *
const * argv,
const char * str,
double &f,
double &s,
bool debug =
true);
210 parse_2x_arguments (
int argc,
const char *
const * argv,
const char * str,
int &f,
int &s,
bool debug =
true);
224 parse_3x_arguments (
int argc,
const char *
const * argv,
const char * str,
float &f,
float &s,
float &t,
bool debug =
true);
238 parse_3x_arguments (
int argc,
const char *
const * argv,
const char * str,
double &f,
double &s,
double &t,
bool debug =
true);
252 parse_3x_arguments (
int argc,
const char *
const * argv,
const char * str,
int &f,
int &s,
int &t,
bool debug =
true);
263 parse_x_arguments (
int argc,
const char *
const * argv,
const char * str, std::vector<double>& v);
274 parse_x_arguments (
int argc,
const char *
const * argv,
const char * str, std::vector<float>& v);
342 std::vector<double> &values_f,
343 std::vector<double> &values_s);
357 std::vector<double> &values_f,
358 std::vector<double> &values_s,
359 std::vector<double> &values_t);
369 const std::vector<std::string> &extensions);
PCL_EXPORTS int parse_argument(int argc, const char *const *argv, const char *str, std::string &val)
Parse for a specific given command line argument.
PCL_EXPORTS int parse_x_arguments(int argc, const char *const *argv, const char *str, std::vector< double > &v)
Parse for specific given command line arguments (3x values comma separated).
PCL_EXPORTS int parse_3x_arguments(int argc, const char *const *argv, const char *str, float &f, float &s, float &t, bool debug=true)
Parse for specific given command line arguments (3x values comma separated).
PCL_EXPORTS bool parse_multiple_3x_arguments(int argc, const char *const *argv, const char *str, std::vector< double > &values_f, std::vector< double > &values_s, std::vector< double > &values_t)
Parse command line arguments for file names with given extension (multiple occurrences of 3x argument...
PCL_EXPORTS bool find_switch(int argc, const char *const *argv, const char *argument_name)
Finds whether the argument with name "argument_name" is in the argument list "argv".
PCL_EXPORTS bool parse_multiple_2x_arguments(int argc, const char *const *argv, const char *str, std::vector< double > &values_f, std::vector< double > &values_s)
Parse command line arguments for file names with given extension (multiple occurrences of 2x argument...
PCL_EXPORTS int parse_2x_arguments(int argc, const char *const *argv, const char *str, float &f, float &s, bool debug=true)
Parse for specific given command line arguments (2x values comma separated).
PCL_EXPORTS std::vector< int > parse_file_extension_argument(int argc, const char *const *argv, const std::vector< std::string > &extensions)
Parse command line arguments for file names with given extension vector.
int parse(int argc, const char *const *argv, const char *argument_name, Type &value)
Template version for parsing arguments.
PCL_EXPORTS int find_argument(int argc, const char *const *argv, const char *argument_name)
Finds the position of the argument with name "argument_name" in the argument list "argv".
PCL_EXPORTS bool parse_multiple_arguments(int argc, const char *const *argv, const char *str, std::vector< int > &values)
Parse for specific given command line arguments (multiple occurrences of the same command line parame...
Defines all the PCL and non-PCL macros used.