HEVC Test Model (HM)  HM-16.18
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
df::program_options_lite::OptionFunc Struct Reference

#include <program_options_lite.h>

Inheritance diagram for df::program_options_lite::OptionFunc:
Inheritance graph
[legend]
Collaboration diagram for df::program_options_lite::OptionFunc:
Collaboration graph
[legend]

Public Types

typedef void( Func )(Options &, const std::string &, ErrorReporter &)
 

Public Member Functions

 OptionFunc (const std::string &name, Options &parent_, Func *func_, const std::string &desc)
 
void parse (const std::string &arg, ErrorReporter &error_reporter)
 
void setDefault ()
 
- Public Member Functions inherited from df::program_options_lite::OptionBase
 OptionBase (const std::string &name, const std::string &desc)
 
virtual ~OptionBase ()
 

Private Attributes

Optionsparent
 
Funcfunc
 

Additional Inherited Members

- Public Attributes inherited from df::program_options_lite::OptionBase
std::string opt_string
 
std::string opt_desc
 

Detailed Description

Option class for argument handling using a user provided function

Definition at line 148 of file program_options_lite.h.

Member Typedef Documentation

typedef void( df::program_options_lite::OptionFunc::Func)(Options &, const std::string &, ErrorReporter &)

Definition at line 150 of file program_options_lite.h.

Constructor & Destructor Documentation

df::program_options_lite::OptionFunc::OptionFunc ( const std::string &  name,
Options parent_,
Func func_,
const std::string &  desc 
)
inline

Definition at line 152 of file program_options_lite.h.

Member Function Documentation

void df::program_options_lite::OptionFunc::parse ( const std::string &  arg,
ErrorReporter error_reporter 
)
inlinevirtual

Implements df::program_options_lite::OptionBase.

Definition at line 156 of file program_options_lite.h.

void df::program_options_lite::OptionFunc::setDefault ( )
inlinevirtual

Implements df::program_options_lite::OptionBase.

Definition at line 161 of file program_options_lite.h.

Member Data Documentation

Func* df::program_options_lite::OptionFunc::func
private

Definition at line 168 of file program_options_lite.h.

Options& df::program_options_lite::OptionFunc::parent
private

Definition at line 167 of file program_options_lite.h.


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