SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
shore::opt_base Struct Referenceabstract

Helper for av_parser. More...

Inheritance diagram for shore::opt_base:
shore::opt_base1< bool > shore::opt_base1< std::pair< T, U > > shore::opt_base1< std::set< T > > shore::opt_base1< std::vector< std::vector< T > > > shore::opt_base1< std::vector< T > > shore::opt_base1< unary > shore::opt_base1< T > shore::opt_base2< bool > shore::av_option< std::pair< T, U > > shore::av_option< std::set< T > > shore::av_option< std::vector< std::vector< T > > > shore::av_option< std::vector< T > > shore::av_option< unary > shore::opt_base2< T > shore::av_option< bool > shore::av_option< T >

Public Member Functions

 opt_base (const char sh, const std::string &lo)
 
bool is_option () const
 
virtual void * ptr () const =0
 void pointer to the location the optarg gets stored at.
 
virtual void store_arg (const char *const sval, const bool clear_arg)=0
 Parse the option argument from a string.
 
virtual std::string argdefault_string () const =0
 Display the current setting of the argument.
 
virtual std::string arg_format () const =0
 Display the format hint for the argument.
 

Public Attributes

char shortopt
 Single character option.
 
std::string longopt
 Long option.
 
std::string id
 The option's id.
 
std::string label
 The option's label.
 
bool is_switch
 
bool multiple
 
OptionFlags arg_default
 
std::string info
 Option description.
 
std::string aux_info
 Additional option description.
 

Detailed Description

Helper for av_parser.


The documentation for this struct was generated from the following file: