SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
shore::opt_base1< T > Struct Template Reference

Helper for av_parser. More...

Inheritance diagram for shore::opt_base1< T >:
shore::opt_base shore::opt_base2< T > shore::av_option< T >

Public Member Functions

 opt_base1 (const char sh, const std::string &lo, T *const ptr)
 
virtual void * ptr () const
 void pointer to the location the optarg gets stored at.
 
virtual std::string arg_format () const
 Display the format hint for the argument.
 
- Public Member Functions inherited from shore::opt_base
 opt_base (const char sh, const std::string &lo)
 
bool is_option () const
 
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.
 

Public Attributes

T * valueptr
 
- Public Attributes inherited from shore::opt_base
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

template<typename T>
struct shore::opt_base1< T >

Helper for av_parser.

Option base class for types where opt_base2 won't compile.


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