Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

shevek_args(3) [debian man page]

shevek::args(3) 					     Library Functions Manual						   shevek::args(3)

NAME
shevek::args - Commandline and configuration file parsing helper. SYNOPSIS
#include <args.hh> Classes class option Define an option which can be given to the program. Public Member Functions args (int &argc, char **&argv, int min_args, int max_args, Glib::ustring const &description, Glib::ustring const &copyright_years=COPYRIGHT_YEARS, Glib::ustring const &copyright_email=(COPYRIGHT_EMAIL[0]== ' '?PACKAGE_BUGREPORT:COPYRIGHT_EMAIL), Glib::ustring const &programmer=COPYRIGHT_AUTHOR, Glib::ustring const &email=PACKAGE_BUGREPORT, char const *programname=PACKAGE_NAME, char const *packagename=PACKAGE_TARNAME, char const *version=PACKAGE_VERSION) template<unsigned size_> args (int &argc, char **&argv, option(&o)[size_], int min_args, int max_args, Glib::ustring const &description) Parse the commandline providing a list of possible options. unsigned size () const The number of non-option arguments. std::string const & operator[] (unsigned idx) const Get the non-option arguments. std::vector< std::string > ::const_iterator begin () const " Iterate over the non-option arguments. std::vector< std::string > ::const_iterator end () const " Iterate over the non-option arguments. Detailed Description Commandline and configuration file parsing helper. Args is a commandline parsing helper. It allows giving the possible short and long options in a simple list and provides --help and --version output to the user of the program. Usage: create an array of shevek::args::option, containing the desired options. create an instance of args and pass it argc and argv on the constructor. It will call all the callbacks of the options from the constructor. size () and operator[] can be used to access the non- option arguments. Constructor &; Destructor Documentation shevek::args::args (int &argc, char **&argv, intmin_args, intmax_args, Glib::ustring const &description, Glib::ustring const &copyright_years = COPYRIGHT_YEARS, Glib::ustring const &copyright_email = (COPYRIGHT_EMAIL[0]== ' '?PACKAGE_BUGREPORT:COPYRIGHT_EMAIL), Glib::ustring const &programmer = COPYRIGHT_AUTHOR, Glib::ustring const &email = PACKAGE_BUGREPORT, char const *programname = PACKAGE_NAME, char const *packagename = PACKAGE_TARNAME, char const *version = PACKAGE_VERSION) Parse the commandline. Only the default arguments (--help, -h and --version) are understood. Author Generated automatically by Doxygen for libshevek from the source code. libshevek Fri May 11 2012 shevek::args(3)

Check Out this Related Man Page

shevek::rostring(3)					     Library Functions Manual					       shevek::rostring(3)

NAME
shevek::rostring - shevek::rostring is identical to shevek::ostring, but it uses std::string instead of Glib::ustring. SYNOPSIS
#include <iostring.hh> Public Member Functions operator std::string () const Use the result as a string. std::string operator+ (std::string const &that) const Use the result as a string. rostring (std::string const &fmt) Create a string with a constant format. template<typename T1 > rostring (std::string const &fmt, T1 const &a1) Create a string with one argument. template<typename T1 , typename T2 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2) Create a string with two arguments. template<typename T1 , typename T2 , typename T3 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3) Create a string with three arguments. template<typename T1 , typename T2 , typename T3 , typename T4 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4) Create a string with four arguments. template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5) Create a string with five arguments. template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5, T6 const &a6) Create a string with six arguments. template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5, T6 const &a6, T7 const &a7) Create a string with seven arguments. template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5, T6 const &a6, T7 const &a7, T8 const &a8) Create a string with eight arguments. template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 , typename T7 , typename T8 , typename T9 > rostring (std::string const &fmt, T1 const &a1, T2 const &a2, T3 const &a3, T4 const &a4, T5 const &a5, T6 const &a6, T7 const &a7, T8 const &a8, T9 const &a9) Create a string with nine arguments. Friends std::ostream & operator<< (std::ostream &s, rostring const &o) Send the result to an ostream. Detailed Description shevek::rostring is identical to shevek::ostring, but it uses std::string instead of Glib::ustring. Author Generated automatically by Doxygen for libshevek from the source code. libshevek Fri May 11 2012 shevek::rostring(3)
Man Page