Namespaces | Functions
parse.h File Reference
#include <vector>
#include <sstream>
#include <pcl/pcl_macros.h>
Include dependency graph for parse.h:

Go to the source code of this file.

Namespaces

namespace  pcl
namespace  pcl::console

Functions

PCL_EXPORTS int pcl::console::find_argument (int argc, char **argv, const char *argument_name)
 Finds the position of the argument with name "argument_name" in the argument list "argv".
PCL_EXPORTS bool pcl::console::find_switch (int argc, char **argv, const char *argument_name)
 Finds whether the argument with name "argument_name" is in the argument list "argv". An example for a widely used switch argument is the "-r" flag for unix commands that indicates whether the command should run recursively or not.
template<typename Type >
int pcl::console::parse (int argc, char **argv, const char *argument_name, Type &value)
 Template version for parsing arguments. Template parameter needs to have input stream operator overloaded!
PCL_EXPORTS int pcl::console::parse_2x_arguments (int argc, char **argv, const char *str, float &f, float &s, bool debug=true)
 Parse for specific given command line arguments (2x values comma separated). Returns the values sent as doubles.
PCL_EXPORTS int pcl::console::parse_2x_arguments (int argc, char **argv, const char *str, double &f, double &s, bool debug=true)
 Parse for specific given command line arguments (2x values comma separated). Returns the values sent as doubles.
PCL_EXPORTS int pcl::console::parse_2x_arguments (int argc, char **argv, const char *str, int &f, int &s, bool debug=true)
 Parse for specific given command line arguments (2x values comma separated). Returns the values sent as ints.
PCL_EXPORTS int pcl::console::parse_3x_arguments (int argc, char **argv, const char *str, float &f, float &s, float &t, bool debug=true)
 Parse for specific given command line arguments (3x values comma separated). Returns the values sent as doubles.
PCL_EXPORTS int pcl::console::parse_3x_arguments (int argc, char **argv, const char *str, double &f, double &s, double &t, bool debug=true)
 Parse for specific given command line arguments (3x values comma separated). Returns the values sent as doubles.
PCL_EXPORTS int pcl::console::parse_3x_arguments (int argc, char **argv, const char *str, int &f, int &s, int &t, bool debug=true)
 Parse for specific given command line arguments (3x values comma separated). Returns the values sent as ints.
PCL_EXPORTS int pcl::console::parse_argument (int argc, char **argv, const char *str, std::string &val)
 Parse for a specific given command line argument. Returns the value sent as a string.
PCL_EXPORTS int pcl::console::parse_argument (int argc, char **argv, const char *str, bool &val)
 Parse for a specific given command line argument. Returns the value sent as a boolean.
PCL_EXPORTS int pcl::console::parse_argument (int argc, char **argv, const char *str, float &val)
 Parse for a specific given command line argument. Returns the value sent as a double.
PCL_EXPORTS int pcl::console::parse_argument (int argc, char **argv, const char *str, double &val)
 Parse for a specific given command line argument. Returns the value sent as a double.
PCL_EXPORTS int pcl::console::parse_argument (int argc, char **argv, const char *str, int &val)
 Parse for a specific given command line argument. Returns the value sent as an int.
PCL_EXPORTS int pcl::console::parse_argument (int argc, char **argv, const char *str, unsigned int &val)
 Parse for a specific given command line argument. Returns the value sent as an unsigned int.
PCL_EXPORTS int pcl::console::parse_argument (int argc, char **argv, const char *str, char &val)
 Parse for a specific given command line argument. Returns the value sent as an int.
PCL_EXPORTS std::vector< int > pcl::console::parse_file_extension_argument (int argc, char **argv, const std::string &ext)
 Parse command line arguments for file names. Returns a vector with file names indices.
PCL_EXPORTS bool pcl::console::parse_multiple_2x_arguments (int argc, char **argv, const char *str, std::vector< double > &values_f, std::vector< double > &values_s)
 Parse for specific given command line arguments (multiple occurances of 2x argument groups, separated by commas). Returns 2 vectors holding the given values.
PCL_EXPORTS bool pcl::console::parse_multiple_3x_arguments (int argc, char **argv, const char *str, std::vector< double > &values_f, std::vector< double > &values_s, std::vector< double > &values_t)
 Parse for specific given command line arguments (multiple occurances of 3x argument groups, separated by commas). Returns 3 vectors holding the given values.
PCL_EXPORTS bool pcl::console::parse_multiple_arguments (int argc, char **argv, const char *str, std::vector< int > &values)
 Parse for specific given command line arguments (multiple occurances of the same command line parameter). Returns the values sent as a vector.
PCL_EXPORTS bool pcl::console::parse_multiple_arguments (int argc, char **argv, const char *str, std::vector< float > &values)
 Parse for specific given command line arguments (multiple occurances of the same command line parameter). Returns the values sent as a vector.
PCL_EXPORTS bool pcl::console::parse_multiple_arguments (int argc, char **argv, const char *str, std::vector< double > &values)
 Parse for specific given command line arguments (multiple occurances of the same command line parameter). Returns the values sent as a vector.
PCL_EXPORTS bool pcl::console::parse_multiple_arguments (int argc, char **argv, const char *str, std::vector< std::string > &values)
 Parse for a specific given command line argument (multiple occurences of the same command line parameter). Returns the value sent as a vector.
PCL_EXPORTS int pcl::console::parse_x_arguments (int argc, char **argv, const char *str, std::vector< double > &v)
 Parse for specific given command line arguments (3x values comma separated). Returns the values sent as doubles.
PCL_EXPORTS int pcl::console::parse_x_arguments (int argc, char **argv, const char *str, std::vector< float > &v)
 Parse for specific given command line arguments (N values comma separated). Returns the values sent as ints.
PCL_EXPORTS int pcl::console::parse_x_arguments (int argc, char **argv, const char *str, std::vector< int > &v)
 Parse for specific given command line arguments (N values comma separated). Returns the values sent as ints.


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:47